Separated prim and bellmanford main file