Skip to content

Commit d6dd098

Browse files
committed
fix static method without static decorator
1 parent 90d31e8 commit d6dd098

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graphs/minimum_spanning_tree_boruvka.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def union(self, item1, item2):
146146
self.parent[root2] = root1
147147
return root1
148148

149+
@staticmethod
149150
def boruvka_mst(graph):
150151
"""
151152
Implementation of Boruvka's algorithm

0 commit comments

Comments
 (0)