Shortest Path
Shortest Path
vertices (or nodes) such that the sum of the weights of its constituent edges is minimized.
An example is finding the quickest way to get from one location to another on a road
map; in this case, the vertices represent locations and the edges represent segments of
road and are weighted by the time needed to travel that segment.
Floyd–Warshall algorithm
A single execution of the algorithm will find the lengths (summed weights) of the
shortest paths between all pairs of vertices though it does not return details of the paths
themselves.