This commit is contained in:
Eric Mertens 2023-02-02 07:57:37 -08:00
parent 57004e1a79
commit 1dee5072ff

View File

@ -63,7 +63,7 @@ auto ShortestDistances(distance_array<T> & dist) -> void
for (auto const j : range) { for (auto const j : range) {
auto const d_ikj = dist[i][k] + dist[k][j]; auto const d_ikj = dist[i][k] + dist[k][j];
auto & d_ij = dist[i][j]; auto & d_ij = dist[i][j];
if (d_ij > d_ikj) d_ij = d_ijk; if (d_ij > d_ikj) d_ij = d_ikj;
} }
} }
} }