Topological Sort - Topological Ordering
- is a linear ordering of a directed graph’s vertices such that for every directed edge 𝑢𝑣 from vertex 𝑢 to vertex 𝑣, 𝑢 comes before 𝑣 in the ordering
Examples
|
The graph shown to the left has many valid topological sorts, including:
|
|
