I need to find the shortest paths between all pairs in a Graph G
. I'm using the Floyd–Warshall algorithm to compute the solution.
I need to know if there is a better option to find all the shortest paths given these facts about G
:
G
is an undirected graph.- The numbers of vertices and the edges is the same.
- All edge weights are positive.
Is there a better solution than Floyd–Warshall given these facts?
The numbers of vertices and the edges is the same
- Does it mean that graph is very sparse? – MBo