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

HamiltonianCycle

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