You are on page 1of 1

Kruskals MST algorithm

MST-Kruskal(G)
1 for each v G.V
2
Make-Set(v)
3 for each (u,v) by weight
4
if Find-Set(u) Find-Set(v)
5
Union(u,v)
6
(u,v).inMST = True

You might also like