renders minimum spanning tree