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