Removes Dijkstra. Adds topological sort.
Commenting code