Term
Topological sort
Listing the vertices of a directed graph so that for every edge u→v, u comes before v. It can only be done in directed graphs with no cycles.
Listing the vertices of a directed graph so that for every edge u→v, u comes before v. It can only be done in directed graphs with no cycles.