Papers
Topics
Authors
Recent
Search
2000 character limit reached

Total Perfect Code in Graphs

Updated 6 July 2026
  • Total perfect code is defined as a subset of vertices in a graph where every vertex, including those in the code, is adjacent to exactly one vertex from the subset, ensuring the induced subgraph forms a matching.
  • It imposes strict arithmetic and spectral conditions in structured graphs such as Cayley and cubelike graphs, often leading to algebraic factorizations like |C| = |V|/d in d-regular graphs.
  • The concept refines ordinary perfect codes by focusing on open neighborhoods, with existence characterized by congruence criteria, transversal conditions, and unique matching structures.

Searching arXiv for recent and foundational papers on total perfect codes to ground the article. A total perfect code in a graph Γ\Gamma is a subset CC of vertices such that every vertex of Γ\Gamma is adjacent to exactly one vertex in CC. In the terminology used across the literature, this is the open-neighborhood analogue of a perfect code, and it is also called an efficient open dominating set (Wang et al., 2021, Zhang, 2022, Wang et al., 21 Mar 2026). The defining feature is the use of open neighborhoods rather than closed neighborhoods: vertices of the code must themselves have exactly one code-neighbor, so the induced subgraph on the code is a matching, and in particular the code has even cardinality (Wang et al., 2021, Parveen et al., 21 Apr 2025, Wang et al., 21 Mar 2026, Huang et al., 2016). Research on total perfect codes spans general graph theory, Cayley graphs, coset graphs, subgroup sum graphs, non-cyclic graphs of finite groups, Cayley sum graphs, and generalized Petersen graphs, with several papers giving exact classifications in highly structured families (Wang et al., 2021, Ma et al., 2024, Cameron et al., 16 Jul 2025, &&&10&&&, Wang et al., 21 Mar 2026).

1. Definition and distinction from ordinary perfect codes

A perfect code in a graph Γ\Gamma is usually defined as an independent set CC such that every vertex outside CC is adjacent to exactly one vertex in CC (Wang et al., 2021, Zhang, 2022, Parveen et al., 21 Apr 2025). By contrast, a total perfect code is a set CC such that every vertex of Γ\Gamma is adjacent to exactly one vertex in CC0 (Wang et al., 2021, Parveen et al., 21 Apr 2025, Wang et al., 21 Mar 2026, Huang et al., 2016). The distinction is structural: for a perfect code, vertices in CC1 are not required to have neighbors in CC2, indeed CC3 must be independent, whereas for a total perfect code, every vertex in CC4 must also have exactly one neighbor in CC5, so CC6 is a matching (Wang et al., 2021, Parveen et al., 21 Apr 2025, Wang et al., 21 Mar 2026).

This open-neighborhood formulation is the central conceptual difference. In graph-theoretic language, perfect codes correspond to exact covering by closed neighborhoods, while total perfect codes correspond to exact covering by open neighborhoods (Parveen et al., 21 Apr 2025, Huang et al., 2016). Several papers make this contrast explicit. In the coset-graph framework, a total perfect code is described as an “open-neighborhood” analogue of a perfect code (Wang et al., 2021). In Cayley sum graphs, the term efficient open dominating set is used explicitly for total perfect codes (Zhang, 2022). In generalized Petersen graphs, the same distinction is emphasized again: perfect codes are efficient dominating sets, while total perfect codes are efficient open dominating sets (Wang et al., 21 Mar 2026).

A recurrent source of confusion in adjacent literature is the use of the phrase “perfect code” for domination by closed neighborhoods in settings where total perfect codes are not studied. For example, work on generalized Fibonacci cubes concerns only standard perfect codes, explicitly not total perfect codes, and its notion is based on closed neighborhoods CC7, not open neighborhoods CC8 (Mollard, 2018). The same exclusion is stated in work on 2-valent Cayley digraphs on abelian groups, where domination uses closed out-neighborhoods CC9, not open-neighborhood exact domination (Yu et al., 2023). This suggests that precise neighborhood conventions are essential when comparing results across graph families.

2. General structural consequences

The most basic consequence of the definition is that a total perfect code induces a matching (Wang et al., 2021, Parveen et al., 21 Apr 2025, Wang et al., 21 Mar 2026, Huang et al., 2016). In the non-cyclic graph of a finite group, this is stated in the form: if Γ\Gamma0 admits a total perfect code, then the induced subgraph Γ\Gamma1 is a matching (Parveen et al., 21 Apr 2025). In generalized Petersen graphs the same point is used to derive parity restrictions, since a total perfect code must have even size (Wang et al., 21 Mar 2026). In Cayley graphs, the open-neighborhood partition viewpoint implies exact covering equations that behave like graph factorizations (Cameron et al., 16 Jul 2025, Huang et al., 2016).

For regular graphs, the definition yields a counting condition. If Γ\Gamma2 is Γ\Gamma3-regular and admits a total perfect code Γ\Gamma4, then Γ\Gamma5 (Zhou, 2016). This is used repeatedly in structured settings. In a 2-valent Cayley digraph with ordinary perfect codes, the analogous closed-neighborhood count is Γ\Gamma6 (Yu et al., 2023); for total perfect codes, one expects a different equation because self-domination is excluded, and the cited paper explicitly warns against conflating the two notions (Yu et al., 2023). In Cayley graphs of abelian groups, the factorization identity for total perfect codes gives Γ\Gamma7, where Γ\Gamma8 is the connection set (Cameron et al., 16 Jul 2025). In Cayley sum graphs of cyclic groups, the corresponding factorization likewise implies Γ\Gamma9 (Koohestani et al., 23 Oct 2025).

Another general consequence is spectral. In a CC0-regular graph, if CC1 is a total perfect code, then the adjacency operator satisfies CC2, and one consequence is that CC3 must be an eigenvalue of the graph if CC4 (Zhou, 2016). In abelian Cayley graphs this becomes a multiplicity condition: the multiplicity of CC5 as an eigenvalue must be at least CC6 (Zhou, 2016). This suggests that total perfect codes are constrained not only combinatorially but also by the representation-theoretic structure of the graph.

3. Cayley graphs and factorization principles

A major strand of the literature treats total perfect codes in Cayley graphs through group factorizations. If CC7 is a finite group and CC8 satisfies CC9, then Γ\Gamma0 has a total perfect code Γ\Gamma1 precisely when every group element has a unique representation relative to Γ\Gamma2 and Γ\Gamma3 (Cameron et al., 16 Jul 2025). In the abelian notation used there, Γ\Gamma4 is a total perfect code if and only if Γ\Gamma5 is a factorization of Γ\Gamma6, equivalently

Γ\Gamma7

This means every Γ\Gamma8 has a unique expression Γ\Gamma9 with CC0 and CC1 (Cameron et al., 16 Jul 2025). The corresponding necessary condition is

CC2

and a practical uniqueness criterion is

CC3

(Cameron et al., 16 Jul 2025).

The same philosophy appears in Cayley sum graphs, but with the graph operation changed from differences to sums. In CC4, vertices CC5 are adjacent when CC6 and CC7, and a total perfect code is equivalent to the factorization

CC8

(Koohestani et al., 23 Oct 2025). The paper establishes this correspondence first and then derives periodic, aperiodic, and square-free criteria from it (Koohestani et al., 23 Oct 2025). A similar factorization criterion is also developed for subgroup total perfect codes in Cayley sum graphs of arbitrary finite groups, where existence is characterized by a normal left transversal whose unique point in the subgroup is a nonsquare of the subgroup (Zhang, 2022).

In ordinary Cayley graphs, subgroup total perfect codes are governed by inverse-closed transversals. A subgroup CC9 is a total perfect code in CC0 if and only if CC1 is a left transversal of CC2 in CC3 (Huang et al., 2016). For normal subgroups, this leads to an exact criterion: CC4 is a total perfect code of CC5 if and only if CC6 is even and

CC7

(Huang et al., 2016). In abelian groups the problem reduces to the Sylow CC8-subgroup, and when CC9 is cyclic there is an exact projection criterion (Huang et al., 2016). For cyclic groups this simplifies completely: CC0 (Huang et al., 2016).

4. Vertex-transitive and coset-graph formulations

Every vertex-transitive graph can be represented as a coset graph, and this provides a broader setting for subgroup total perfect codes beyond ordinary Cayley graphs (Wang et al., 2021). For a finite group CC1, a subgroup CC2, and a union CC3 of double cosets satisfying CC4 and CC5, the coset graph

CC6

has vertex set CC7, with adjacency CC8 iff CC9 (Wang et al., 2021). In this framework, a subgroup CC0 with CC1 is a subgroup total perfect code of the pair CC2 if CC3 is a total perfect code in some such coset graph (Wang et al., 2021).

The key result is a two-part characterization. First, total perfect codehood is equivalent to perfect codehood plus an internal involution-type element: CC4 if and only if

CC5

(Wang et al., 2021). Second, there is a direct transversal form: CC6 if and only if there exists a left transversal CC7 of CC8 in CC9 such that

Γ\Gamma0

and Γ\Gamma1 contains an element of Γ\Gamma2 (Wang et al., 2021). This extra element in Γ\Gamma3 encodes the matching required inside the code.

This coset-graph perspective makes explicit that total perfect codes are a refinement of subgroup perfect codes rather than a completely separate object. Theorems on heredity to intermediate subgroups and transfer across semidirect-product-type decompositions further show that total-perfect-code status behaves functorially in the pair Γ\Gamma4 (Wang et al., 2021). A plausible implication is that many existence questions can be reduced to quotient or transversal data rather than studied directly on the graph.

5. Total perfect codes in Cayley sum graphs and subgroup sum graphs

Cayley sum graphs provide a distinct open-neighborhood geometry. For a finite group Γ\Gamma5 and a normal subset Γ\Gamma6, Γ\Gamma7 has vertex set Γ\Gamma8, with Γ\Gamma9 iff CC00 and CC01 (Zhang, 2022). In this setting, a subgroup CC02 is a total perfect code exactly when there exists a normal left transversal CC03 of CC04 in CC05 such that the unique common element of CC06 and CC07 is a nonsquare of CC08 (Zhang, 2022). For normal subgroups, there is a sharp reduction: CC09 is a total perfect code of some Cayley sum graph of CC10 if and only if CC11 is a perfect code of some Cayley sum graph of CC12 and CC13 contains a nonsquare of CC14 (Zhang, 2022).

This theory becomes especially explicit in several group families. Every even-order subgroup of an abelian group is a total perfect code of some Cayley sum graph (Zhang, 2022). Connected dihedral Cayley sum graphs admitting subgroup total perfect codes are completely classified by explicit examples (Zhang, 2022). For CC15, subgroup total perfect codes in Cayley sum graphs are classified exactly by a family constructed from transversals in a Frobenius complement, with the extra requirement that a distinguished representative be a nonsquare in the subgroup (Zhang, 2022).

A separate graph family is given by subgroup sum graphs CC16 and extended subgroup sum graphs CC17, defined from a finite group CC18 and a normal subgroup CC19 by adjacency conditions CC20 and CC21, respectively (Ma et al., 2024). Here the total-perfect-code problem is completely solved. For CC22, a total perfect code exists if and only if either CC23 and every CC24 with CC25 is an involution, or

CC26

for some CC27 (Ma et al., 2024). For abelian groups this becomes a full structural classification (Ma et al., 2024). For the extended subgroup sum graph, the criterion is even simpler: CC28 (Ma et al., 2024). This suggests that the open-neighborhood requirement is extremely rigid in subgroup-sum settings.

6. Cyclic and abelian cases: congruence criteria

In cyclic and abelian Cayley-type graphs, many total-perfect-code existence theorems reduce to residue conditions. For ordinary Cayley graphs of finite abelian groups, the factorization program yields exact criteria when CC29 or CC30 and the relevant prime divides exactly one cyclic factor. If

CC31

and CC32 is an odd prime dividing exactly one CC33, then CC34 admits a total perfect code if and only if, for distinct elements of CC35, the CC36-th coordinates are pairwise distinct modulo CC37 (Cameron et al., 16 Jul 2025). The same statement holds with CC38 in place of CC39, requiring distinctness modulo CC40 (Cameron et al., 16 Jul 2025). In cyclic groups, this specializes to the practical condition

CC41

which is exact in many major cases, including prime and prime-power degrees, CC42-size connection sets under appropriate hypotheses, and the good-family orders listed in the paper (Cameron et al., 16 Jul 2025).

For Cayley sum graphs of cyclic groups, the picture is similar but the graph operation is addition rather than subtraction. The paper "Total perfect codes in Cayley sum graphs of cyclic groups" (Koohestani et al., 23 Oct 2025) proves that CC43 is a total perfect code in CC44 if and only if

CC45

and then derives several necessary and sufficient conditions when CC46 is periodic, aperiodic, or square-free (Koohestani et al., 23 Oct 2025). In many cyclic cases the same residue condition

CC47

for distinct CC48 is again the governing criterion (Koohestani et al., 23 Oct 2025).

The earlier paper "Perfect codes in circulant graphs" (Feng et al., 2017) gives analogous exact theorems directly for total perfect codes in undirected circulants CC49. If the degree is CC50, where CC51 is an odd prime, then a connected circulant admits a total perfect code if and only if

CC52

(Feng et al., 2017). More generally, if the degree is CC53, where CC54 is the largest power of CC55 dividing CC56, then a total perfect code exists if and only if

CC57

(Feng et al., 2017). These results are exact open-neighborhood analogues of the paper’s perfect-code theorems, with CC58 replacing CC59 in the generating-polynomial argument (Feng et al., 2017).

7. Nonexistence phenomena in non-cyclic graphs of groups

A striking contrast between perfect codes and total perfect codes appears in the non-cyclic graph CC60 of a finite group CC61, whose vertices are CC62 and where CC63 iff CC64 is not cyclic (Parveen et al., 21 Apr 2025). The paper proves a complete characterization of perfect-code existence: CC65 (Parveen et al., 21 Apr 2025). In this situation, any perfect code must be a singleton consisting of an involution (Parveen et al., 21 Apr 2025).

For total perfect codes the result is much more restrictive. If CC66 is a finite non-cyclic nilpotent group, then CC67 does not admit a total perfect code (Parveen et al., 21 Apr 2025). The proof uses two nilpotent-group features: the existence of a non-cyclic Sylow CC68-subgroup containing at least CC69 subgroups of order CC70, and the fact that elements of coprime orders commute (Parveen et al., 21 Apr 2025). Together these create unavoidable double-adjacency obstructions to the uniqueness requirement. This establishes an explicit class where perfect codes may exist but total perfect codes do not.

This suggests a general principle: total perfect codes are often far more fragile than perfect codes in graphs whose adjacency reflects deep algebraic overlap, because open-neighborhood uniqueness is sensitive to local multiplicities that closed-neighborhood domination can tolerate.

8. Classification in generalized Petersen graphs

The 2026 paper "Classification of perfect and total perfect codes in generalized Petersen graphs" (Wang et al., 21 Mar 2026) gives one of the cleanest modern classifications in a classical graph family. The generalized Petersen graph CC71 has vertex set

CC72

with edges

CC73

(Wang et al., 21 Mar 2026). Total perfect codes are completely classified, and they occur in exactly two forms.

The first family exists when

CC74

and the code is

CC75

(Wang et al., 21 Mar 2026). Here the code edges are spokes CC76, appearing every third position.

The second family exists when

CC77

and the code is

CC78

(Wang et al., 21 Mar 2026). In this case, the matching lies on the outer and inner cycles rather than on spokes.

The proof combines a global counting identity,

CC79

with a structural lemma showing that if a total perfect code contains even one outer-cycle code edge, then it contains no spoke code edge (Wang et al., 21 Mar 2026). This forces the two-family dichotomy. A plausible implication is that periodicity modulo CC80 and CC81 is not accidental but arises from the cubic local geometry of generalized Petersen graphs under the matching constraint.

9. Cubelike graphs and degree constraints

The paper "Total perfect codes in Cayley graphs" (Zhou, 2016) gives a sharp classification for connected cubelike graphs, that is, Cayley graphs on CC82. A connected cubelike graph admits a total perfect code if and only if its degree is a power of CC83 (Zhou, 2016). The proof uses the abelian criterion

CC84

together with a linear-algebraic construction of a subgroup CC85 as the null space of a matrix CC86 whose syndrome values separate the elements of the connection set (Zhou, 2016). In particular, for the hypercube CC87, a total perfect code exists if and only if

CC88

for some integer CC89 (Zhou, 2016).

This result is notable because it converts a domination problem into a coding-theoretic linear-syndrome construction. It also shows that, unlike in general Cayley graphs, the characteristic CC90 setting is unusually favorable: every subgroup is normal, every element is its own inverse, and the condition on CC91 is naturally linearized (Zhou, 2016).

10. Directions not covered by total perfect code theory in adjacent perfect-code literature

A number of papers in the broader perfect-code literature are relevant mainly as contrast cases. Work on generalized Fibonacci cubes proves existence of standard perfect codes in CC92 for

CC93

but explicitly does not study total perfect codes (Mollard, 2018). Work on perfect codes in 2-valent Cayley digraphs on abelian groups gives a complete classification for domination by closed out-neighborhoods, again not total perfect codes (Yu et al., 2023). Several coding-theoretic papers on binary, CC94-additive, or CC95-linear perfect codes also concern only ordinary radius-1 perfect codes, not efficient open domination (Borges et al., 2015, 0710.0198, Etzion et al., 12 May 2026).

This repeated boundary suggests that total perfect codes remain a distinctly graph-theoretic object even when studied in algebraic graph families. A plausible implication is that techniques from perfect-code theory transfer only partially: counting and factorization often survive, but independence-based arguments do not.

11. Synthesis

Across the literature, a total perfect code is best understood as an exact open-neighborhood partition, equivalently a matching-structured efficient open dominating set (Wang et al., 2021, Zhang, 2022, Wang et al., 21 Mar 2026, Huang et al., 2016, Zhou, 2016). In highly symmetric graphs, especially Cayley, coset, and sum-graph settings, this condition translates into algebraic factorizations, transversal conditions, or residue constraints (Wang et al., 2021, Zhang, 2022, Cameron et al., 16 Jul 2025, Koohestani et al., 23 Oct 2025). The strongest general patterns are these: total perfect codes are strictly more rigid than perfect codes; subgroup total perfect codes often require involution-type structure; in abelian settings they are frequently governed by congruence classes modulo the degree; and in many structured families complete classifications reduce existence to a small number of arithmetic possibilities (Huang et al., 2016, Feng et al., 2017, Ma et al., 2024, Wang et al., 21 Mar 2026).

At the same time, nonexistence results are prominent. Finite non-cyclic nilpotent groups have no total perfect codes in their non-cyclic graphs (Parveen et al., 21 Apr 2025). Many graph families studied for perfect codes have not yet been systematically treated in the total-perfect setting (Mollard, 2018, Yu et al., 2023). This suggests that the theory is both mature in selected algebraic families and still incomplete as a general theory of open-neighborhood exact domination.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Total Perfect Code.