pub fn scc_kosaraju(adj: &CsrMatrix) -> Result<Vec<ComponentId>>Expand description
Kosaraju’s SCC algorithm.
Two-pass algorithm:
- DFS on original graph, record finish order
- DFS on transposed graph in reverse finish order
More parallelizable than Tarjan’s.