Math 2.0

Combinatorics Definition

Hamiltonian path

Builds on GraphPath

Definition

Let GG be a finite graph. A Hamiltonian path in GG is a path in GG that contains every vertex of GG.

Remarks

Since a path visits each vertex at most once, a Hamiltonian path of a graph with nn vertices visits each vertex exactly once and has length n−1n - 1. 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 C4C_4 with vertices 1,2,3,41, 2, 3, 4 in cyclic order, the path (1,2,3,4)(1, 2, 3, 4) contains all four vertices, so it is a Hamiltonian path. Non-example: the star K1,3K_{1,3} with centre cc and leaves a,b,da, b, d has no Hamiltonian path. Each edge contains cc, so a path alternates between cc and leaves, and since it visits cc 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
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Graph definition
  2. Walk definition
  3. Path definition
  4. Hamiltonian path definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Hamiltonian_path
About this page
TagAT8GWPWQWT
URIm2://AT8GWPWQWT
Kinddefinition
WritingW0 stub
MSC05C45
DefinesHamiltonian path
UsesGraph, Path
Changed2 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.