From d103325a63fb6e35035a6b440e4b6488cd81bb9f Mon Sep 17 00:00:00 2001 From: "Ajmera, Mahita SI/HZR-IDSA" Date: Thu, 17 Oct 2024 12:07:11 +0200 Subject: [PATCH] chagning tab to double space for doctest --- graphs/graphs_floyd_warshall.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/graphs/graphs_floyd_warshall.py b/graphs/graphs_floyd_warshall.py index 9a5c88943..c14053e7a 100644 --- a/graphs/graphs_floyd_warshall.py +++ b/graphs/graphs_floyd_warshall.py @@ -9,7 +9,7 @@ def _print_dist(dist, v): print("The shortest path matrix using Floyd Warshall algorithm\n") for i in range(v): for j in range(v): - end_char = "" if j == v - 1 else "\t" + end_char = "" if j == v - 1 else " " if dist[i][j] != float("inf"): print(int(dist[i][j]), end=end_char) else: @@ -48,9 +48,9 @@ def floyd_warshall(graph, v): >>> dist, _ = floyd_warshall(graph, 3) The shortest path matrix using Floyd Warshall algorithm - 0 3 INF - 2 0 INF - 9 7 0 + 0 3 INF + 2 0 INF + 9 7 0 >>> dist == expected True """