[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-28 03:07:05 +00:00
parent f9bf655086
commit 39fdc021ab

View File

@ -90,9 +90,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("#")
self.edges = [