Strongly Connected Component
Strong connected component | Wikipedia
Definition A strongly connected component of a directed graph
is a maximal set of vertices such that for every pair of vertices , both and , i.e. reachable from each other.
- Component graph: , with the “contraction” technique.
- Component graph is acyclic!
- Procedures for computing
- Call DFS on to compute finish times for each vertex
- Create
- Call DFS of , but in the main loop consider vertices in order of decreasing
- Output vertices of each tree