Takes in a weighted graph and finds the weight of the minimum spanning tree of the graph