public void allowLoops(final boolean allowLoops) {
            this.allowLoops = allowLoops;
        }
Sets whether loops, i.e. edges with the same start and end vertex, are allowed to be generated.
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/algorithm/generator/DistributionGenerator.java