Prim algorithm objects