Bellman-Ford graph shortest path algorithm
Floyd-Warshall all pairs shortest paths in a graph