Skip to content
StackDecode
GraphsExplained

Hierholzer's Algorithm

Build an Euler circuit by splicing together cycles.

Time

O(E)

Extra space

O(E)

Use it for

Constructing Eulerian circuits.

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.