Hamiltonian path
Definition
Let be a finite graph. A Hamiltonian path in is a path in that contains every vertex of .
Remarks
Since a path visits each vertex at most once, a Hamiltonian path of a graph with vertices visits each vertex exactly once and has length . Deleting one edge from a Hamiltonian cycle gives a Hamiltonian path, so every Hamiltonian graph has one. The converse fails: the Petersen graph has a Hamiltonian path but no Hamiltonian cycle. Example: in the cycle graph with vertices in cyclic order, the path contains all four vertices, so it is a Hamiltonian path. Non-example: the star with centre and leaves has no Hamiltonian path. Each edge contains , so a path alternates between and leaves, and since it visits at most once, it contains at most two leaves. A graph with a Hamiltonian path is connected.
Reading path
To understand this page from the ground up, read these 4 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Graph definition
- Walk definition
- Path definition
- Hamiltonian path definition
Further reading
About this page
| Tag | AT8GWPWQWT |
|---|---|
| URI | m2://AT8GWPWQWT |
| Kind | definition |
| Writing | W0 stub |
| MSC | 05C45 |
| Defines | Hamiltonian path |
| Uses | Graph, Path |
| Changed | 2 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.