From 3e623c14763b34aa27cb406285b56b811299cf31 Mon Sep 17 00:00:00 2001 From: "Ajmera, Mahita SI/HZR-IDSA" Date: Thu, 17 Oct 2024 11:45:49 +0200 Subject: [PATCH] changing tab to double spaces to capture in doctest --- graphs/graphs_floyd_warshall.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/graphs/graphs_floyd_warshall.py b/graphs/graphs_floyd_warshall.py index 0199ccc59..629da37af 100644 --- a/graphs/graphs_floyd_warshall.py +++ b/graphs/graphs_floyd_warshall.py @@ -10,9 +10,9 @@ def _print_dist(dist, v): for i in range(v): for j in range(v): if dist[i][j] != float("inf"): - print(int(dist[i][j]), end="\t") + print(int(dist[i][j]), end=" ") else: - print("INF", end="\t") + print("INF", end=" ") print() @@ -47,9 +47,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 """