Combinatorics • Topic 28
Paths and Cycles
Connectivity is defined by the existence of paths.
Definitions
- Walk: A sequence of vertices where is an edge.
- Path: A walk with no repeated vertices.
- Cycle: A walk with no repeated vertices except .
Eulerian vs. Hamiltonian
Eulerian Circuit
A trail that visits every edge exactly once and returns to the start.
Theorem (Euler's Theorem)
A connected graph has an Eulerian circuit if and only if every vertex has an even degree.
Hamiltonian Cycle
A cycle that visits every vertex exactly once.- No simple necessary/sufficient condition exists (NP-complete problem).
- Dirac's Theorem: If and for all , then has a Hamiltonian cycle.
Practice Problems
Exercise (Problem 1)
Can you draw a continuous line that crosses every segment of the figure below exactly once? (Bridges of Königsberg).
Exercise (Problem 2)
Prove that a graph with vertices and edges must contain a cycle.
Exercise (Problem 3)
If a graph contains a cycle of length , prove it contains a path of length at least .