@Override
    public int hashCode() {
        int result = Objects.hash(super.hashCode(), returnClass);
        if (ids != null) {
            for (Object id : ids) {
                result = 31 * result + Objects.hashCode(id);
            }
        }
        return result;
    }
Gets the ids associated with this step as literal values rather than {@link GValue} objects.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/GraphStep.java