Total Perfect Code in Graphs
- 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 is a subset of vertices such that every vertex of is adjacent to exactly one vertex in . 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 is usually defined as an independent set such that every vertex outside is adjacent to exactly one vertex in (Wang et al., 2021, Zhang, 2022, Parveen et al., 21 Apr 2025). By contrast, a total perfect code is a set such that every vertex of is adjacent to exactly one vertex in 0 (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 1 are not required to have neighbors in 2, indeed 3 must be independent, whereas for a total perfect code, every vertex in 4 must also have exactly one neighbor in 5, so 6 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 7, not open neighborhoods 8 (Mollard, 2018). The same exclusion is stated in work on 2-valent Cayley digraphs on abelian groups, where domination uses closed out-neighborhoods 9, 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 0 admits a total perfect code, then the induced subgraph 1 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 2 is 3-regular and admits a total perfect code 4, then 5 (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 6 (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 7, where 8 is the connection set (Cameron et al., 16 Jul 2025). In Cayley sum graphs of cyclic groups, the corresponding factorization likewise implies 9 (Koohestani et al., 23 Oct 2025).
Another general consequence is spectral. In a 0-regular graph, if 1 is a total perfect code, then the adjacency operator satisfies 2, and one consequence is that 3 must be an eigenvalue of the graph if 4 (Zhou, 2016). In abelian Cayley graphs this becomes a multiplicity condition: the multiplicity of 5 as an eigenvalue must be at least 6 (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 7 is a finite group and 8 satisfies 9, then 0 has a total perfect code 1 precisely when every group element has a unique representation relative to 2 and 3 (Cameron et al., 16 Jul 2025). In the abelian notation used there, 4 is a total perfect code if and only if 5 is a factorization of 6, equivalently
7
This means every 8 has a unique expression 9 with 0 and 1 (Cameron et al., 16 Jul 2025). The corresponding necessary condition is
2
and a practical uniqueness criterion is
3
(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 4, vertices 5 are adjacent when 6 and 7, and a total perfect code is equivalent to the factorization
8
(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 9 is a total perfect code in 0 if and only if 1 is a left transversal of 2 in 3 (Huang et al., 2016). For normal subgroups, this leads to an exact criterion: 4 is a total perfect code of 5 if and only if 6 is even and
7
(Huang et al., 2016). In abelian groups the problem reduces to the Sylow 8-subgroup, and when 9 is cyclic there is an exact projection criterion (Huang et al., 2016). For cyclic groups this simplifies completely: 0 (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 1, a subgroup 2, and a union 3 of double cosets satisfying 4 and 5, the coset graph
6
has vertex set 7, with adjacency 8 iff 9 (Wang et al., 2021). In this framework, a subgroup 0 with 1 is a subgroup total perfect code of the pair 2 if 3 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: 4 if and only if
5
(Wang et al., 2021). Second, there is a direct transversal form: 6 if and only if there exists a left transversal 7 of 8 in 9 such that
0
and 1 contains an element of 2 (Wang et al., 2021). This extra element in 3 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 4 (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 5 and a normal subset 6, 7 has vertex set 8, with 9 iff 00 and 01 (Zhang, 2022). In this setting, a subgroup 02 is a total perfect code exactly when there exists a normal left transversal 03 of 04 in 05 such that the unique common element of 06 and 07 is a nonsquare of 08 (Zhang, 2022). For normal subgroups, there is a sharp reduction: 09 is a total perfect code of some Cayley sum graph of 10 if and only if 11 is a perfect code of some Cayley sum graph of 12 and 13 contains a nonsquare of 14 (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 15, 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 16 and extended subgroup sum graphs 17, defined from a finite group 18 and a normal subgroup 19 by adjacency conditions 20 and 21, respectively (Ma et al., 2024). Here the total-perfect-code problem is completely solved. For 22, a total perfect code exists if and only if either 23 and every 24 with 25 is an involution, or
26
for some 27 (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: 28 (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 29 or 30 and the relevant prime divides exactly one cyclic factor. If
31
and 32 is an odd prime dividing exactly one 33, then 34 admits a total perfect code if and only if, for distinct elements of 35, the 36-th coordinates are pairwise distinct modulo 37 (Cameron et al., 16 Jul 2025). The same statement holds with 38 in place of 39, requiring distinctness modulo 40 (Cameron et al., 16 Jul 2025). In cyclic groups, this specializes to the practical condition
41
which is exact in many major cases, including prime and prime-power degrees, 42-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 43 is a total perfect code in 44 if and only if
45
and then derives several necessary and sufficient conditions when 46 is periodic, aperiodic, or square-free (Koohestani et al., 23 Oct 2025). In many cyclic cases the same residue condition
47
for distinct 48 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 49. If the degree is 50, where 51 is an odd prime, then a connected circulant admits a total perfect code if and only if
52
(Feng et al., 2017). More generally, if the degree is 53, where 54 is the largest power of 55 dividing 56, then a total perfect code exists if and only if
57
(Feng et al., 2017). These results are exact open-neighborhood analogues of the paper’s perfect-code theorems, with 58 replacing 59 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 60 of a finite group 61, whose vertices are 62 and where 63 iff 64 is not cyclic (Parveen et al., 21 Apr 2025). The paper proves a complete characterization of perfect-code existence: 65 (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 66 is a finite non-cyclic nilpotent group, then 67 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 68-subgroup containing at least 69 subgroups of order 70, 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 71 has vertex set
72
with edges
73
(Wang et al., 21 Mar 2026). Total perfect codes are completely classified, and they occur in exactly two forms.
The first family exists when
74
and the code is
75
(Wang et al., 21 Mar 2026). Here the code edges are spokes 76, appearing every third position.
The second family exists when
77
and the code is
78
(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,
79
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 80 and 81 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 82. A connected cubelike graph admits a total perfect code if and only if its degree is a power of 83 (Zhou, 2016). The proof uses the abelian criterion
84
together with a linear-algebraic construction of a subgroup 85 as the null space of a matrix 86 whose syndrome values separate the elements of the connection set (Zhou, 2016). In particular, for the hypercube 87, a total perfect code exists if and only if
88
for some integer 89 (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 90 setting is unusually favorable: every subgroup is normal, every element is its own inverse, and the condition on 91 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 92 for
93
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, 94-additive, or 95-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.