Skip to content

Commit 4154353

Browse files
resolved pre commit checks for test_edmonds_blossom_algorithm.py and edmonds_blossom_algorithm.py
1 parent b8571bc commit 4154353

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

graphs/edmonds_blossom_algorithm.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,9 @@ class BlossomData:
241241
BlossomData class with reduced parameters.
242242
"""
243243

244-
def __init__(self, aux_data: BlossomAuxData, vertex_u: int,
245-
vertex_v: int, lca: int) -> None:
244+
def __init__(
245+
self, aux_data: BlossomAuxData, vertex_u: int, vertex_v: int, lca: int
246+
) -> None:
246247
"""
247248
Initialize BlossomData with auxiliary data, two vertices,
248249
and the lowest common ancestor.
@@ -256,4 +257,3 @@ def __init__(self, aux_data: BlossomAuxData, vertex_u: int,
256257
self.vertex_u = vertex_u
257258
self.vertex_v = vertex_v
258259
self.lca = lca
259-

graphs/tests/test_edmonds_blossom_algorithm.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class TestEdmondsBlossomAlgorithm(unittest.TestCase):
13-
1413
def test_maximum_matching(self):
1514
# Test case: Basic matching in a simple graph
1615
edges = [(0, 1), (1, 2), (2, 3)]
@@ -68,5 +67,5 @@ def test_contract_blossom(self):
6867
assert aux_data.in_queue[1]
6968

7069

71-
if __name__ == '__main__':
70+
if __name__ == "__main__":
7271
unittest.main()

0 commit comments

Comments
 (0)