Topological Sort Visualization

Topological sorting is used for directed acyclic graphs (DAGs) to create a linear ordering of vertices where for each directed edge (u, v), vertex u comes before vertex v in the ordering.

This visualization shows a step-by-step process of topological sorting on a sample graph, highlighting how vertices are processed in order [0, 1, 2, 3, 4, 5].

Step: 0 of 6
Starting topological sort...