Finish PrimsMST