In a Directed Acyclic Graph, vertices have a 'partial' order:
- if A → B, then A < B. If A → B → C
- then we know that A < B, B < C
- and therefore, A < C
A Topological Sort is a list of the vertices in partial order.
In a Directed Acyclic Graph, vertices have a 'partial' order:
A Topological Sort is a list of the vertices in partial order.