Kahn's Algorithm (BFS Topo Sort) — Interactive Visualizer

Computes a Topological Sort of a DAG using BFS by systematically removing nodes with 0 incoming edges. Unreachable nodes indicate a cycle.