Updated MSTAlgorithm.