implemented getVertices
implemented edge methods