Combinatorica`
Combinatorica`

ParentsToPaths

As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. >>

ParentsToPaths[l,i,j]

takes a list of parents l and returns the path from i to j encoded in the parent list.

ParentsToPaths[l,i]

returns the paths from i to all vertices.

Details

See Also

AllPairsShortestPath  BreadthFirstTraversal

Tutorials