Class ShortestPathAllPairsFloydWarshall

java.lang.Object
com.jgalgo.alg.shortestpath.ShortestPathAllPairsAbstract
com.jgalgo.alg.shortestpath.ShortestPathAllPairsFloydWarshall
All Implemented Interfaces:
ShortestPathAllPairs

public class ShortestPathAllPairsFloydWarshall extends ShortestPathAllPairsAbstract
The Floyd Warshall algorithm for all pairs shortest path.

Calculate the shortest path between each pair of vertices in a graph in \(O(n^3)\) time using \(O(n^2)\) space. Negative weights are supported.

Author:
Barak Ugav