New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To find a Hamiltonian circuit in a graph #1422
Comments
|
@MridulS Thanks for pointing that out. At least it is there already. |
Implementing "a way" is easy. Implementing "a good way" is hard. |
@ysitu So, I think a way exist here
But I can't figure out how can someone make use of it. It's under tests. |
@OrkoHunter You do realise that the hamiltonian path problem is a NP-Complete problem. As @ysitu pointed out it will be a hard to implement it in a "good way" . |
Closed due to inactivity. |
I was wondering if there's a way to find if a graph whether directed or undirected has a Hamiltonian path or not i.e. a path visiting each vertex exactly once. For graphs with small number of nodes, it can be done easily, but it won't be easy for bigger graphs with more branches. I was thinking to implement a way to find the Hamiltonian circuit in such graphs.
Any suggestions?
The text was updated successfully, but these errors were encountered: