editing doctest

This commit is contained in:
Ajmera, Mahita SI/HZR-IDSA 2024-10-17 10:26:29 +02:00
parent 650f3cf6e1
commit 4a6fbdecd2

View File

@ -50,6 +50,12 @@ def floyd_warshall(graph, v):
... ] ... ]
>>> dist, _ = floyd_warshall(graph, num_vertices) >>> dist, _ = floyd_warshall(graph, num_vertices)
>>> dist == expected >>> dist == expected
The shortest path matrix using Floyd Warshall algorithm
0 2 INF
1 0 INF
INF INF 0
True True
""" """