YUNOVA · Data Structures & Algorithms · Module 12: Advanced graphs
Strongly connected components: Kosaraju
Strongly connected components: Kosaraju
Key points
- In a strongly connected component every vertex can reach every other vertex.
- Kosaraju runs DFS to get finish order, then DFS on the reversed graph in that order.
- It runs in O(V + E).