Algolib
Data structures
Graphs
Data structures
Algorithms
Bellman Ford
BFS
Dijkstra
Edmonds-Karp
Floyd-Warshall
FloydWarshall
Kosaraju
Kruskal
Min-Cut
Prim
Tarjan
To Bipartite
Topological sort
Geometry
Mathematics
Optimization
Sorting
Strings
Trees
Simplex
Two-SAT
JSON
Constants
Shortcuts
Utility
Algolib
Graphs
Algorithms
Floyd-Warshall
View page source
Floyd-Warshall
template
<
class
G
>
class
FloydWarshall
Public Functions
inline
FloydWarshall
(
const
G
&
g
)
inline
Weight
dist
(
const
int
vertex1
,
const
int
vertex2
)
const
Private Types
typedef
G
::
Weight
Weight
Private Members
std
::
vector
<
std
::
vector
<
Weight
>
>
m_dists