Class CommunityGenerator.Builder
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.algorithm.generator.AbstractGenerator.AbstractGeneratorBuilder<CommunityGenerator.Builder>
- 
- org.apache.tinkerpop.gremlin.algorithm.generator.CommunityGenerator.Builder
 
 
- 
- Enclosing class:
- CommunityGenerator
 
 public static final class CommunityGenerator.Builder extends AbstractGenerator.AbstractGeneratorBuilder<CommunityGenerator.Builder> 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tinkerpop.gremlin.algorithm.generator.AbstractGenerator.AbstractGeneratorBuilderedgeProcessor, label, seedSupplier, vertexProcessor
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CommunityGenerator.BuildercommunityDistribution(Distribution community)Sets the distribution to be used to generate the sizes of communities.CommunityGeneratorcreate()CommunityGenerator.BuildercrossCommunityPercentage(double percentage)Sets the percentage of edges that cross a community, i.e.CommunityGenerator.BuilderdegreeDistribution(Distribution degree)Sets the distribution to be used to generate the out-degrees of vertices.CommunityGenerator.BuilderexpectedNumCommunities(int expectedNumCommunities)CommunityGenerator.BuilderexpectedNumEdges(int expectedNumEdges)CommunityGenerator.BuilderverticesToGenerateEdgesFor(Iterable<Vertex> vertices)- 
Methods inherited from class org.apache.tinkerpop.gremlin.algorithm.generator.AbstractGenerator.AbstractGeneratorBuilderedgeProcessor, label, seedGenerator, vertexProcessor
 
- 
 
- 
- 
- 
Method Detail- 
verticesToGenerateEdgesForpublic CommunityGenerator.Builder verticesToGenerateEdgesFor(Iterable<Vertex> vertices) 
 - 
expectedNumCommunitiespublic CommunityGenerator.Builder expectedNumCommunities(int expectedNumCommunities) 
 - 
expectedNumEdgespublic CommunityGenerator.Builder expectedNumEdges(int expectedNumEdges) 
 - 
communityDistributionpublic CommunityGenerator.Builder communityDistribution(Distribution community) Sets the distribution to be used to generate the sizes of communities.
 - 
degreeDistributionpublic CommunityGenerator.Builder degreeDistribution(Distribution degree) Sets the distribution to be used to generate the out-degrees of vertices.
 - 
crossCommunityPercentagepublic CommunityGenerator.Builder crossCommunityPercentage(double percentage) 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.- Parameters:
- percentage- Percentage of community crossing edges. Must be in [0,1]
 
 - 
createpublic CommunityGenerator create() 
 
- 
 
-