From 4a6fbdecd25c2d9a931a3f6926211cf52f3e485b Mon Sep 17 00:00:00 2001 From: "Ajmera, Mahita SI/HZR-IDSA" Date: Thu, 17 Oct 2024 10:26:29 +0200 Subject: [PATCH] editing doctest --- graphs/graphs_floyd_warshall.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/graphs/graphs_floyd_warshall.py b/graphs/graphs_floyd_warshall.py index 1e50dde28..c2259eee7 100644 --- a/graphs/graphs_floyd_warshall.py +++ b/graphs/graphs_floyd_warshall.py @@ -50,6 +50,12 @@ def floyd_warshall(graph, v): ... ] >>> dist, _ = floyd_warshall(graph, num_vertices) >>> dist == expected + + The shortest path matrix using Floyd Warshall algorithm + + 0 2 INF + 1 0 INF + INF INF 0 True """