Implement the invariant “is hamiltonian” which checks if the graph is Hamiltonian (boolean). If possible, also implement “path hamiltonian” which lists a Hamiltonian path in the graph.
This invariant is not available on networkx, but I found this library on github.
Implement the invariant “is hamiltonian” which checks if the graph is Hamiltonian (boolean). If possible, also implement “path hamiltonian” which lists a Hamiltonian path in the graph.
This invariant is not available on networkx, but I found this library on github.