@Override
    public boolean equals(final Object other) {
        return other instanceof LoopTraversal
                && ((LoopTraversal) other).maxLoops == this.maxLoops;
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/lambda/LoopTraversal.java