Detect a Hamiltonian cycle in a un-directed graph.