Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
def
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
kruskal
Function · 0.85
split
Method · 0.80
append
Method · 0.45
Tested by
no test coverage detected