Skip to content

Add Graph Algorithm- hamiltonian cycle #14

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

soundaryasenthil02
Copy link

@soundaryasenthil02 soundaryasenthil02 commented Oct 21, 2021

I have added the code for the Hamiltonian cycle with test cases.
Issue : Adding graph algorithm- Hamiltonian cycle #12

A Hamiltonian cycle (or Hamiltonian circuit) is a Hamiltonian Path such that there is an edge (in the graph) from the last vertex to the first vertex of the Hamiltonian Path. This algorithm determines whether a given graph contains the Hamiltonian Cycle or not.

Please review and approve my code.

Copy link

@AdithyaS99 AdithyaS99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code works fine.

@soundaryasenthil02 soundaryasenthil02 changed the title Added hamiltonian cycle Add Graph Algorithm- hamiltonian cycle Oct 22, 2021
@armaanm22
Copy link

armaanm22 commented Oct 22, 2021

Would be helpful if you could also add the code for finding Hamiltonian Paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants