TopologicalSort finished.