public static final class DistributionGenerator.Builder extends AbstractGenerator.AbstractGeneratorBuilder<DistributionGenerator.Builder>
edgeProcessor, label, seedSupplier, vertexProcessor
Modifier and Type | Method and Description |
---|---|
void |
allowLoops(boolean allowLoops)
Sets whether loops, i.e.
|
DistributionGenerator |
create() |
DistributionGenerator.Builder |
expectedNumEdges(int expectedNumEdges) |
DistributionGenerator.Builder |
inDistribution(Distribution distribution)
Sets the distribution to be used to generate the out-degrees of vertices.
|
DistributionGenerator.Builder |
inVertices(Iterable<Vertex> vertices) |
DistributionGenerator.Builder |
outDistribution(Distribution distribution)
Sets the distribution to be used to generate the sizes of communities.
|
DistributionGenerator.Builder |
outVertices(Iterable<Vertex> vertices) |
edgeProcessor, label, seedGenerator, vertexProcessor
public DistributionGenerator.Builder inVertices(Iterable<Vertex> vertices)
public DistributionGenerator.Builder outVertices(Iterable<Vertex> vertices)
public DistributionGenerator.Builder expectedNumEdges(int expectedNumEdges)
public void allowLoops(boolean allowLoops)
public DistributionGenerator.Builder outDistribution(Distribution distribution)
public DistributionGenerator.Builder inDistribution(Distribution distribution)
public DistributionGenerator create()
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.