Added some code to add vertexes and edges to the graph