public class CommunityGenerator extends AbstractGenerator
Modifier and Type | Class and Description |
---|---|
static class |
CommunityGenerator.Builder |
AbstractGenerator.AbstractGeneratorBuilder<T extends AbstractGenerator.AbstractGeneratorBuilder>
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_CROSS_COMMUNITY_PERCENTAGE |
static int |
DEFAULT_NUMBER_OF_COMMUNITIES |
g, seedSupplier
Modifier and Type | Method and Description |
---|---|
static CommunityGenerator.Builder |
build(Graph g) |
int |
generate()
Generates a synthetic network for provided vertices in the given graph such that the provided expected number
of communities are generated with the specified expected number of edges.
|
addEdge, processVertex
public static final double DEFAULT_CROSS_COMMUNITY_PERCENTAGE
public static final int DEFAULT_NUMBER_OF_COMMUNITIES
public int generate()
public static CommunityGenerator.Builder build(Graph g)
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.