Implements Floyd-Warshall algorithm.
More...
#include <FloydWarshall.hpp>
Implements Floyd-Warshall algorithm.
- Parameters
-
| control | exception throwing when a negative cycle is detected |
- Exceptions
-
| by | default std::runtime_error when a negative cycle has been detected |
- See also
- "The Floyd–Warshall algorithm on graphs with negative cycles" (Stefan Hougardy, 2010)
◆ allShortestPaths()
- Parameters
-
| graph | The graph to search on |
| edgeWeightFunction | function that allows retrieving the weight of an edge |
| detectNegativeCycle | whether to throw as soon as a negative cycle has been detected |
The documentation for this class was generated from the following files:
- /build/rock-master-22.06-tools-graph-analysis-0.20210908/src/algorithms/FloydWarshall.hpp
- /build/rock-master-22.06-tools-graph-analysis-0.20210908/src/algorithms/FloydWarshall.cpp