refactoring names of model classes to Edge and Vertex