Workspace Lab Dependency Dispatch
0d
Back to questionsDSA Visualizers: 388 Coding Questions

Topological sort visualizer

Launch modules in prerequisite order in a network of dependencies.

Dependency dispatch

Select any module with no unfinished incoming dependencies. The arrows point from prerequisite to dependent.

Launched0/4
Ready1
Operations0
M11 pending
M21 pending
M31 pending
M40 pending

Edges: M4 → M1 · M4 → M3 · M3 → M2

Launch order

Step 0 · Launch every module after its prerequisites.

Kahn’s topological sort removes zero-indegree vertices. With adjacency lists and a queue it costs O(V + E).

Play this game

Continue learning

Practice related DSA questions in the same topic.