FindHamiltonianPath
FindHamiltonianPath[g] finds a Hamiltonian path in the graph g with the smallest total length.
FindHamiltonianPath[g,s,t] finds a Hamiltonian path with the smallest total length from s to t.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.