|
SOLUTIONS
|
GRAPH UTILITIES PACKAGE SYMBOL
GraphDistanceMatrix
GraphDistanceMatrix[g]
gives a matrix in which the ![]()
entry is the length of a shortest path in g between vertices i and j.
returns a three-dimensional matrix in which the ![]()
entry is the length of a shortest path from i to j and the ![]()
entry is the predecessor of j in a shortest path from i to j.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




