|
SOLUTIONS
|
COMBINATORICA PACKAGE SYMBOL
TopologicalSort
TopologicalSort[g]
gives a permutation of the vertices of the directed acyclic graph
such that an edge
implies that vertex
appears before vertex
.
DetailsDetails
- To use
, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
