close
Image TOPICS
Image
Search

Perfectly Hamiltonian Graph


A k-factor of a graph is a spanning k-regular subgraph of the original graph. The special case of a 1-factor is precisely a perfect matching. A 1-factorization of a graph is a partition of its edge set into 1-factors. A pair of 1-factors whose union forms a Hamiltonian cycle is said to be a perfect set of 1-factors, and a 1-factorization is said to be perfect if all pairs of its 1-factors are perfect.

A regular graph of vertex degree d is then called a perfectly Hamiltonian graph if it admits a perfect 1-factorization. Equivalently, an r-regular graph is perfectly Hamiltonian if its edges can be r-colored in such a way that all (r; 2) pairs of colors yield Hamiltonian cycles (Knuth 2025, solution to Problem 24). Perfectly Hamiltonian graphs therefore automatically admit a Hamilton decomposition.

The term "perfectly Hamiltonian" was suggested by D. Knuth (pers. comm. to van Cleemput and Zamfirescu, Sep. 2019; Knuth 2025). Kotzig and Labelle (1979) called such graphs "fortement hamiltonien" (van Cleemput and Zamfirescu 2022).

Every cubic graph containing exactly three Hamiltonian cycles is perfectly Hamiltonian (van Cleemput and Zamfirescu 2022). However, planar cubic perfectly Hamiltonian graphs with more than three Hamiltonian cycles also exist, an example of which is the dodecahedral graph (van Cleemput and Zamfirescu 2022).

D. Knuth (pers. comm., Jul. 22, 2025) asked whether sextic graphs having many Hamiltonian cycles are necessarily perfectly Hamiltonian. A theorem due to Kotzig (1958) gives a general obstruction in the bipartite case: no bipartite r-regular graph with bipartition classes of even cardinality and r>=3 can be perfectly Hamiltonian (Kotzig 1958, Kotzig and Labelle 1979). To see this, let the two bipartition classes be X and Y, with |X|=|Y|=n, and identify every 1-factor M with the corresponding bijection pi_M:X->Y. For two 1-factors M and N, the alternating cycles in M union N correspond to the cycles of the permutation pi_N^(-1)pi_M on X; hence M union N is a Hamiltonian cycle iff pi_N^(-1)pi_M is a single n-cycle. After fixing orderings of X and Y, if n is even, such a cycle is an odd permutation, so every pair of 1-factors in a perfect 1-factorization would have to have opposite permutation parity. This is impossible for r>=3, since there are only two parities.

Note that this obstruction does not apply to all sextic graphs. For example, the 16-cell graph is sextic and perfectly Hamiltonian, but it has only 744 Hamiltonian cycles.


See also

Cameron Graph, Hamilton Decomposition, Hamiltonian Cycle, Perfect Matching

Explore with Wolfram|Alpha

References

Knuth, D. E. Problem 24 in "Hamiltonian Paths and Cycles." Volume 4, Pre-Fascicle 8A in The Art of Computer Programming. Draft, pp. 27 and 42-43. Aug. 19, 2025. https://www-cs-faculty.stanford.edu/~knuth/fasc8a.ps.gz.Kotzig, A. "Poznámka k rozkladom konečných párnych pravidelných grafov na lineárne faktory." Časopis pro pestování matematiky 83, 348-354, 1958.Kotzig, A. and Labelle, J. "Quelques problèmes ouverts concernant les graphes fortement hamiltoniens." Ann. Sc. Math. Québec III, 95-106, 1979.van Cleemput, N. and Zamfirescu, C. T. "Hamiltonian Cycles and 1-Factors in 5-Regular Graphs." 24 Apr 2022. https://arxiv.org/abs/2008.03173.

Cite this as:

Weisstein, Eric W. "Perfectly Hamiltonian Graph." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/PerfectlyHamiltonianGraph.html

Subject classifications