application of minimum spanning tree