Skip to content

Commit 84c97da

Browse files
author
Ajmera, Mahita SI/HZR-IDSA
committed
removing blank lines from print statement
1 parent d486240 commit 84c97da

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

graphs/graphs_floyd_warshall.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def _print_dist(dist, v):
9-
print("\nThe shortest path matrix using Floyd Warshall algorithm\n")
9+
print("The shortest path matrix using Floyd Warshall algorithm")
1010
for i in range(v):
1111
for j in range(v):
1212
if dist[i][j] != float("inf"):
@@ -46,9 +46,7 @@ def floyd_warshall(graph, v):
4646
... [float('inf'), float('inf'), 0]
4747
... ]
4848
>>> dist, _ = floyd_warshall(graph, num_vertices)
49-
<BLANKLINE>
5049
The shortest path matrix using Floyd Warshall algorithm
51-
<BLANKLINE>
5250
0 2 INF
5351
1 0 INF
5452
INF INF 0

0 commit comments

Comments
 (0)