add getter funcs for vertices and edges