How to find Strongly Connected Components in a Graph?
问题 I am trying self-study Graph Theory, and now trying to understand how to find SCC in a graph. I have read several different questions/answers on SO (e.g., 1,2,3,4,5,6,7,8), but I cant find one with a complete step-by-step example I could follow. According to CORMEN (Introduction to Algorithms), one method is: Call DFS(G) to compute finishing times f[u] for each vertex u Compute Transpose(G) Call DFS(Transpose(G)), but in the main loop of DFS, consider the vertices in order of decreasing f[u]