finds a shortest path between vertices start and end in graph g.
This defines a small directed graph:
This finds the shortest path from vertex 1 to vertex 3:
This finds the shortest path from vertex 1 to vertex 3, ignoring the edge weights:
GraphDistance GraphDistanceMatrix
400+ new features, including the new Wolfram Predictive Interface, social network analysis, enterprise CDF deployment, and more »