MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / minimum_spanning_tree_kruskal.py

File minimum_spanning_tree_kruskal.py

graphs/minimum_spanning_tree_kruskal.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1def kruskal(
2 num_nodes: int, edges: list[tuple[int, int, int]]
3) -> list[tuple[int, int, int]]:
4 """

Callers

nothing calls this directly

Calls 3

kruskalFunction · 0.85
splitMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected