Loading algorithms…
Loading visualizer…
Order the vertices of a directed acyclic graph so every edge points forward. Kahn's in-degree peeling and DFS-based post-order, side by side.
Compute every vertex's in-degree (incoming edge count): A=0, B=1, C=1, D=1, E=2, F=2, G=1.
Click a node to set the DFS start vertex · Drag to rearrange · Step with Space / ← → / Home End / R
Order the vertices of a directed acyclic graph so every edge points forward. Kahn's in-degree peeling and DFS-based post-order, side by side.