Replace variable minimum_spanning_tree with mst