williamfiset / Algorithms

A collection of algorithms and data structures
MIT License
17.18k stars 4.34k forks source link

added hamiltonian cycle #287

Open soundaryasenthil02 opened 2 years ago

soundaryasenthil02 commented 2 years ago

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.