Graph class can generate Vertices and Edges