This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

HamiltonianCycle

HamiltonianCycle[g]
finds a Hamiltonian cycle in graph g if one exists.
HamiltonianCycle[g, All]
gives all Hamiltonian cycles of graph g.