mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 09:10:16 +00:00
fixing doctest
This commit is contained in:
parent
8be7753175
commit
f01de409de
|
@ -44,7 +44,7 @@ def floyd_warshall(graph, v):
|
||||||
... [2, 0, float('inf')],
|
... [2, 0, float('inf')],
|
||||||
... [9, 7, 0]
|
... [9, 7, 0]
|
||||||
... ]
|
... ]
|
||||||
>>> dist, _ = floyd_warshall(graph, num_vertices)
|
>>> dist, _ = floyd_warshall(graph, 3)
|
||||||
>>> dist == expected
|
>>> dist == expected
|
||||||
True
|
True
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user