Extract AddVertexMethod class from Graph.addVertex()
Extract AddEdgeMethod class from Graph.addVertex()