Overview
Hierholzer's algorithm follows unused edges until a cycle closes, then expands the route from vertices that still have unused edges.
Builds an Eulerian path or circuit by splicing cycles that consume every edge once.
Compact metadata for implementation and discovery.
Hierholzer's algorithm follows unused edges until a cycle closes, then expands the route from vertices that still have unused edges.
Quick facts
Runtime and memory behavior at a glance.
Best
O(E)
Average
O(E)
Worst
O(E)
Space
O(E)
Highlight active nodes, discovered edges, and the graph structure produced by each step.
Hierholzer's Algorithm should be used with the assumptions and tradeoffs of eulerian Traversal in mind.
What each reference supports for this entry.
Textbook support for Hierholzer's Algorithm's standard algorithm design, invariants, and complexity analysis.
Open sourceAlgorithm catalog support for Hierholzer's Algorithm's problem context, known alternatives, and practical selection tradeoffs.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Graph Traversal · Core
Fleury's Algorithm uses Hierholzer's Algorithm as a subroutine, representation, or supporting idea while walking unused edges while avoiding bridges unless no alternative remains.
Compare with thisEuler tour construction assumes the relevant graph component is connected after ignoring isolated vertices.