A topological sort of a Directed Acyclic Graph is an ordered list of vertices , such that:

All the arrows point ‘downstream’ from to .