added minimum spanning tree