Improved ClusterGraph implementation and MaxSpanningTreePrims implementation.