Skip to content

Hamiltonian Cycle #1930

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

Merged
merged 10 commits into from
May 2, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add skeleton code
  • Loading branch information
CSenshi committed May 2, 2020
commit 0258a68fb669463021cfa70f18be0d063de121bf
12 changes: 12 additions & 0 deletions backtracking/hamiltonian_cycle.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""
A Hamiltonian cycle (Hamiltonian circuit) is a graph cycle
through a graph that visits each node exactly once.
Determining whether such paths and cycles exist in graphs
is the 'Hamiltonian path problem', which is NP-complete.

Wikipedia: https://en.wikipedia.org/wiki/Hamiltonian_path
"""


def hamilton_cycle(graph):
pass