Visit node, not just key
Visit node, not just key
Implement topsort using dfs