Added equals methods to Edge and Vertex classes