Perl script to decide where or not a graph is Hamiltonian.