public CommunityGenerator create() {
            if (null == communitySize)
                throw new IllegalStateException("Need to initialize community size distribution");
            if (null == edgeDegree) throw new IllegalStateException("Need to initialize degree distribution");
            return new CommunityGenerator(this.g, this.label, this.edgeProcessor, this.vertexProcessor, this.seedSupplier,
                    this.communitySize, this.edgeDegree, crossCommunityPercentage, vertices,
                    expectedNumCommunities, expectedNumEdges);
        }
Sets the percentage of edges that cross a community, i.e. connect a vertex to a vertex in
another community. The lower this value, the higher the modularity of the generated communities.

@param percentage Percentage of community crossing edges. Must be in [0,1]
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/algorithm/generator/CommunityGenerator.java