Graphs Advanced Checkpoint

Topological sorting and shortest paths.


1. In Kahn's algorithm, when do you enqueue a node?
2. Dijkstra's algorithm requires all edge weights to be:
3. If a graph has a cycle, a topological ordering: