← Labs

Topological Sort & DAG

Click to add nodes. Click two nodes to add an edge. Run Kahn's algorithm step by step. Cycle detection highlights the invalid edge.

Click canvas to add nodes. Then switch to Add Edge mode.