Finding a lot of minimum spanning trees with the help of Kruskal and Depth first search