TopologicalSort

TopologicalSort[g]
gives a list of vertices of g in topologically sorted order for a directed acyclic graph g.

DetailsDetails

  • A list of vertices is topologically sorted if u precedes v for each edge .
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »