Implement more accurate distance measuring when removing connections.
Remove unnecessary variables in the Edge class
Use Edge class to represent vertex connections