Shortest Path (Directed Graphs)

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.