The built-in FindShortestPath
and GraphDistance
functions find the shortest path between two particular vertices in a graph.
I can't think of a simple way to finding all shortest paths between two vertices. Any ideas?
MotivationMy graph has weighted edges and the weights are arbitrarily large, so I'm dead against mapping weighted edges to many unweighted edges.
Motivation: I have a graph of city traffic routes from point A to point B. I'd like to take the union of shortest paths from A to B to get a subgraph that, I posit, contains (many of) the most frequented intersections.
EDIT: My apologies for not already mentioning this, but my graph has weighted edges. The weights are arbitrarily large, so I'm dead against mapping weighted edges to many unweighted edges.