Skip to content

Commit 2245fd9

Browse files
committed
remove whitespace from blank line
1 parent d64df51 commit 2245fd9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

graphs/basic_graphs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,14 +288,12 @@ def floyd_warshall(a_and_n):
288288
(a, n) = a_and_n
289289
dist = [row[:] for row in a] # create a deep copy of matrix a
290290
path = [[0] * n for i in range(n)]
291-
292291
for k in range(n):
293292
for i in range(n):
294293
for j in range(n):
295294
if dist[i][j] > dist[i][k] + dist[k][j]:
296295
dist[i][j] = dist[i][k] + dist[k][j]
297296
path[i][k] = k # possible error
298-
299297
print(dist)
300298

301299

0 commit comments

Comments
 (0)