Modify MSTAlgorithm to require a weighted graph