Find all the shortest paths between every pair of vertices in a graph.

Can be used to find the diameter of a graph.

Related to Single Source Shortest Path

Approaches/Algorithms

ImplementationsRunning Time
Dijkstra’s on every pair of vertices
Floyd-Warshall