zn algorithm used to find SCC
https://invidious.yoshixi.net/watch?v=QlGuaHT1lzA
Computing SCCs
- DFS on
- Visit all vertices
- Store all finish times
- Accumulate node in reverse finish-time order (shortest finish time on top)
- Compute Adjacency List of
- Setup a global visited list
- For each node in the stack: