GraphsExplained
Eulerian Path Algorithm
A path that uses every edge exactly once; exists if 0 or 2 nodes have odd degree.
Time
O(V + E)
Extra space
O(V)
Use it for
Route inspection, the Königsberg bridges.
A path that uses every edge exactly once; exists if 0 or 2 nodes have odd degree.
Time
O(V + E)
Extra space
O(V)
Use it for
Route inspection, the Königsberg bridges.