Completed Prim min spanning tree.