Topological Sort (DAG), Tarjan SCC & Bridges Visualizer
Arrange directed graphs into clean left-to-right dependency columns with the Topological DAG layout engine, trace Kahn's in-degree queue, or color Strongly Connected Components using Tarjan's algorithm.
Connectivity Algorithms Compared
| Algorithm | Complexity | Directed / Undirected | What It Detects |
|---|---|---|---|
| Kahn's Topological Sort | O(V + E) |
Directed (DAG) | Valid topological dependency order or directed cycle obstruction |
| Tarjan's SCC | O(V + E) |
Directed | Maximal Strongly Connected Components via disc[] & low[] |
| Bridges & Cut Vertices | O(V + E) |
Undirected | Critical edges & articulation vertices whose removal disconnects components |
Sample Input (SCC 1-2-3 Feeding DAG 3 → 4 → 5 → 6)
# Toggle Directed mode (D) 1 2 2 3 3 1 3 4 4 5 5 6 4 6
Frequently Asked Questions
Does crowded in-degree / out-degree arrowheads overlap?
No. CP Graph Editor distributes incident directed edges symmetrically around node rims so multi-edge and high-degree arrowheads remain clear and readable.
Can I inspect exact in-degree and out-degree for any vertex?
Yes — clicking any node opens the Node Tracer panel showing live total degree, in-degree, out-degree, and clickable neighbor edges.