mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-31 06:33:44 +00:00
Added doctests
This commit is contained in:
commit
3d4acaaefb
|
@ -139,9 +139,11 @@ class JohnsonGraph:
|
||||||
vertex_b,
|
vertex_b,
|
||||||
weight + hash_path[vertex_a] - hash_path[vertex_b],
|
weight + hash_path[vertex_a] - hash_path[vertex_b],
|
||||||
)
|
)
|
||||||
self.edges[i] = (vertex_a,
|
self.edges[i] = (
|
||||||
|
vertex_a,
|
||||||
vertex_b,
|
vertex_b,
|
||||||
weight + hash_path[vertex_a] - hash_path[vertex_b])
|
weight + hash_path[vertex_a] - hash_path[vertex_b],
|
||||||
|
)
|
||||||
|
|
||||||
self.graph.pop("#")
|
self.graph.pop("#")
|
||||||
filtered_edges = []
|
filtered_edges = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user