public static final class CommunityGenerator.Builder extends AbstractGenerator.AbstractGeneratorBuilder<CommunityGenerator.Builder>
edgeProcessor, label, seedSupplier, vertexProcessor
Modifier and Type | Method and Description |
---|---|
CommunityGenerator.Builder |
communityDistribution(Distribution community)
Sets the distribution to be used to generate the sizes of communities.
|
CommunityGenerator |
create() |
CommunityGenerator.Builder |
crossCommunityPercentage(double percentage)
Sets the percentage of edges that cross a community, i.e.
|
CommunityGenerator.Builder |
degreeDistribution(Distribution degree)
Sets the distribution to be used to generate the out-degrees of vertices.
|
CommunityGenerator.Builder |
expectedNumCommunities(int expectedNumCommunities) |
CommunityGenerator.Builder |
expectedNumEdges(int expectedNumEdges) |
CommunityGenerator.Builder |
verticesToGenerateEdgesFor(Iterable<Vertex> vertices) |
edgeProcessor, label, seedGenerator, vertexProcessor
public CommunityGenerator.Builder verticesToGenerateEdgesFor(Iterable<Vertex> vertices)
public CommunityGenerator.Builder expectedNumCommunities(int expectedNumCommunities)
public CommunityGenerator.Builder expectedNumEdges(int expectedNumEdges)
public CommunityGenerator.Builder communityDistribution(Distribution community)
public CommunityGenerator.Builder degreeDistribution(Distribution degree)
public CommunityGenerator.Builder crossCommunityPercentage(double percentage)
percentage
- Percentage of community crossing edges. Must be in [0,1]public CommunityGenerator create()
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.