Class DistributionGenerator.Builder
java.lang.Object
org.apache.tinkerpop.gremlin.algorithm.generator.AbstractGenerator.AbstractGeneratorBuilder<DistributionGenerator.Builder>
org.apache.tinkerpop.gremlin.algorithm.generator.DistributionGenerator.Builder
- Enclosing class:
- DistributionGenerator
public static final class DistributionGenerator.Builder
extends AbstractGenerator.AbstractGeneratorBuilder<DistributionGenerator.Builder>
-
Field Summary
Fields inherited from class org.apache.tinkerpop.gremlin.algorithm.generator.AbstractGenerator.AbstractGeneratorBuilder
edgeProcessor, label, seedSupplier, vertexProcessor -
Method Summary
Modifier and TypeMethodDescriptionvoidallowLoops(boolean allowLoops) Sets whether loops, i.e. edges with the same start and end vertex, are allowed to be generated.create()expectedNumEdges(int expectedNumEdges) inDistribution(Distribution distribution) Sets the distribution to be used to generate the out-degrees of vertices.inVertices(Iterable<Vertex> vertices) outDistribution(Distribution distribution) Sets the distribution to be used to generate the sizes of communities.outVertices(Iterable<Vertex> vertices) Methods inherited from class org.apache.tinkerpop.gremlin.algorithm.generator.AbstractGenerator.AbstractGeneratorBuilder
edgeProcessor, label, seedGenerator, vertexProcessor
-
Method Details
-
inVertices
-
outVertices
-
expectedNumEdges
-
allowLoops
public void allowLoops(boolean allowLoops) Sets whether loops, i.e. edges with the same start and end vertex, are allowed to be generated. -
outDistribution
Sets the distribution to be used to generate the sizes of communities. -
inDistribution
Sets the distribution to be used to generate the out-degrees of vertices. -
create
-