Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
Find a path that traverses every edge exactly once. Hierholzer's Algorithm efficiently discovers these trails by finding sub-cycles and merging them.
The algorithm uses a stack to build a path until it gets stuck, then backtracks and appends nodes to the circuit as it returns.
A circuit exists if all nodes have even degrees. A path exists if exactly two nodes have odd degrees (start and end).