MSTEdges function

Minimum spanning tree