@Override compareTo
Refined addVertex
hashCode and equals override