Modified addEdge() method of Graph class, to also create the Vertex if it does not exist