Find Eulerian paths and circuits in graphs. Determine if a graph has an Eulerian trail or cycle using graph theory algorithms.
Eulerian Graph Theory: An Eulerian path visits every edge exactly once. An Eulerian circuit is an Eulerian path that starts and ends at the same vertex.
In graph theory, an Eulerian trail (or Eulerian path) is a trail in a finite graph that visits every edge exactly once. An Eulerian circuit (or Eulerian cycle) is an Eulerian trail that starts and ends on the same vertex.
Historical Context: The concept originates from the Seven Bridges of Königsberg problem, solved by Leonhard Euler in 1736, which laid the foundations of graph theory.
For Undirected Graphs:
For Directed Graphs:
Hierholzer's Algorithm (1873):
Time complexity: O(|E|) where E is the number of edges.
Fleury's Algorithm (1883):
Time complexity: O(|E|²) where E is the number of edges.
Calculator Features:
Seven Bridges of Königsberg: The original problem that started graph theory in 1736.
Euler's Formula: For planar graphs: V - E + F = 2
Fleury vs Hierholzer: Published 10 years apart (1883 vs 1873)
Applications: Used in DNA sequencing and circuit design