Concept Flow - Topological Sort Using DFS
Start DFS at unvisited node
Mark node as visited
For each neighbor
If neighbor unvisited
Recursive DFS on neighbor
After all neighbors visited
Push node to stack
Repeat for all nodes
Pop all nodes from stack for topological order
Start DFS from each unvisited node, visit all neighbors recursively, then push the node to a stack. Finally, pop nodes from the stack to get topological order.