Tarjan's Algorithm

Find strongly connected components: groups of nodes where every node can reach every other node by following the arrows.

Directed graph for Tarjan's algorithm

Teal ring: current node · Gold: active edge · Filled colors: completed components.

NodeIndexLow-linkOn stack