working on prim use graph