hashCode() method added for Vertex classes in WayNodeGraph