|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
TopologicalSort
TopologicalSort[g]
gives a list of vertices of g in topologically sorted order for a directed acyclic graph g.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
Find the topological order of vertices:
| In[1]:= |
| Out[1]= |
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

