kruskal-prim-walk Algorithm that runs the RandomKruskal, RandomPrim or RandomWalk algorithms given a graph with n vertex