Eulerian
Building on the graph theory foundations, we now study two classical problems about traversing a graph: Can we traverse every edge exactly once? Can we visit every vertex exactly once? These seemingly similar questions turn out to have vastly different computational complexities - a theme that connects directly to the theory of computation.
A graph is called Eulerian if it contains an Eulerian cycle (also called an Euler tour) - a closed walk that traverses every edge exactly once, though vertices may be revisited. This concept originates from Leonhard Euler's groundbreaking work on the Seven Bridges of Königsberg (1736), which is widely considered the birth of graph theory.
The PATH problem asks whether a directed path exists from vertex \(s\) to vertex \(t\). In this section, we explore key path-related concepts that bridge computer science and mathematics.
A graph is called Eulerian if it contains an Eulerian cycle (Euler tour) - a closed walk that traverses every edge exactly once allowing for revisiting vertices. This idea originates from Leonhard Euler's groundbreaking work on the Seven Bridges of Königsberg, which laid the foundations of graph theory.
A connected graph is Eulerian if and only if every vertex has even degree.
A graph is Eulerian if it contains an Eulerian cycle — a closed walk that traverses every edge exactly once.
A graph is semi-Eulerian if it contains an Eulerian path (also called an Eulerian trail) - a walk that traverses every edge exactly once but may start and end at different vertices.
- Graph 1 is Eulerian since every vertex has degree 2.
- Graph 2 is semi-Eulerian since it has an Eulerian path but not an Eulerian cycle.
- Graph 3 is Eulerian since vertex \(A\) has degree 4 and all other vertices have degree 2.
In Graph 3, vertex \(A\) must be revisited in any Eulerian cycle. In Graph 1, no vertex is revisited (except the starting vertex, which is visited twice to close the cycle). This distinction highlights that an Eulerian cycle is a closed walk, not necessarily a cycle in the graph-theoretic sense.