All-Pairs Shortest Paths (APSP)

The shortest path problem is the problem of finding a path between two vertices (or nodes) in a graph such that the sum of the weights of the edges along the path is minimized. The goal of the all-pairs shortest path problem is to find such a shortest-path between all pairs of vertices in a given graph.