Does Tarjan's SCC algorithm give a topological sort of the SCC?
问题 I've been studying SCC and algorithms about them, and I've seen that people almost always mention that Kosaraju's algorithm finds the SCC and also gives them ordered in a (reversed) topological sort. My question is: doesn't Tarjan's algorithm also find a (reversed) topological sort? I've found that it isn't mentioned (at least from where I've read, except wikipedia). I've been thinking about it and make perfect sense. When tarjans_dfs is called on some node u, all SCCs that are reachable from