Skip to content
StackDecode
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.

An animated walkthrough for this algorithm isn’t built yet. The summary above explains the idea; see the related animated algorithms below to practise the same technique.