Adjusted minimum spanning tree