Add boolean flag to print all vertices of a graph, or only new vertices