Minimum Spanning tree for weighted graph.