Add minimal spanning tree model