Skip to content
StackDecode
GraphsExplained

Strongly Connected Components

Maximal groups of nodes that can all reach each other.

Time

O(V + E)

Extra space

O(V)

Use it for

Condensing a directed graph.

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.