Kruskal's minimum spanning tree algorithm on an undirected graph.
(&self, weights: &[i64])
source not stored for this graph (policy: none)