From d486240774c4267f275930f2d214f4d5b7e94786 Mon Sep 17 00:00:00 2001 From: "Ajmera, Mahita SI/HZR-IDSA" Date: Thu, 17 Oct 2024 10:57:46 +0200 Subject: [PATCH] editing doctest --- graphs/graphs_floyd_warshall.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphs/graphs_floyd_warshall.py b/graphs/graphs_floyd_warshall.py index 926d37c59..2aa111cc2 100644 --- a/graphs/graphs_floyd_warshall.py +++ b/graphs/graphs_floyd_warshall.py @@ -46,8 +46,9 @@ def floyd_warshall(graph, v): ... [float('inf'), float('inf'), 0] ... ] >>> dist, _ = floyd_warshall(graph, num_vertices) + The shortest path matrix using Floyd Warshall algorithm - + 0 2 INF 1 0 INF INF INF 0