mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-11 00:59:49 +00:00
editing doctest
This commit is contained in:
parent
199db30829
commit
d486240774
@ -46,8 +46,9 @@ def floyd_warshall(graph, v):
|
|||||||
... [float('inf'), float('inf'), 0]
|
... [float('inf'), float('inf'), 0]
|
||||||
... ]
|
... ]
|
||||||
>>> dist, _ = floyd_warshall(graph, num_vertices)
|
>>> dist, _ = floyd_warshall(graph, num_vertices)
|
||||||
|
<BLANKLINE>
|
||||||
The shortest path matrix using Floyd Warshall algorithm
|
The shortest path matrix using Floyd Warshall algorithm
|
||||||
|
<BLANKLINE>
|
||||||
0 2 INF
|
0 2 INF
|
||||||
1 0 INF
|
1 0 INF
|
||||||
INF INF 0
|
INF INF 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user