Skip to content

Commit d64df51

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1ce00e0 commit d64df51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

graphs/basic_graphs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,16 +286,16 @@ def floyd_warshall(a_and_n):
286286
"""
287287

288288
(a, n) = a_and_n
289-
dist = [row[:] for row in a] # create a deep copy of matrix a
289+
dist = [row[:] for row in a] # create a deep copy of matrix a
290290
path = [[0] * n for i in range(n)]
291-
291+
292292
for k in range(n):
293293
for i in range(n):
294294
for j in range(n):
295295
if dist[i][j] > dist[i][k] + dist[k][j]:
296296
dist[i][j] = dist[i][k] + dist[k][j]
297-
path[i][k] = k # possible error
298-
297+
path[i][k] = k # possible error
298+
299299
print(dist)
300300

301301

0 commit comments

Comments
 (0)