Skip to content

Commit d103325

Browse files
author
Ajmera, Mahita SI/HZR-IDSA
committed
chagning tab to double space for doctest
1 parent 05e81d5 commit d103325

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

graphs/graphs_floyd_warshall.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def _print_dist(dist, v):
99
print("The shortest path matrix using Floyd Warshall algorithm\n")
1010
for i in range(v):
1111
for j in range(v):
12-
end_char = "" if j == v - 1 else "\t"
12+
end_char = "" if j == v - 1 else " "
1313
if dist[i][j] != float("inf"):
1414
print(int(dist[i][j]), end=end_char)
1515
else:
@@ -48,9 +48,9 @@ def floyd_warshall(graph, v):
4848
>>> dist, _ = floyd_warshall(graph, 3)
4949
The shortest path matrix using Floyd Warshall algorithm
5050
<BLANKLINE>
51-
0 3 INF
52-
2 0 INF
53-
9 7 0
51+
0 3 INF
52+
2 0 INF
53+
9 7 0
5454
>>> dist == expected
5555
True
5656
"""

0 commit comments

Comments
 (0)