updating getVertices; addVertex; isVertex; degree