public class CommunityDistribution extends CommunityMeasure
Modifier and Type | Field and Description |
---|---|
protected float |
avgSize
Average size of the currently generated communities.
|
protected Object |
biggestCommunity
Biggest community currently generated.
|
protected Object |
smallestCommunity
Smallest community currently generated.
|
protected float |
stdevSize
Standard deviation of the size of currently generated communities.
|
communities, graph, graphChanged, M, marker
Constructor and Description |
---|
CommunityDistribution(String marker)
New size distribution measure using the specified marker as attribute
name for the community assignment.
|
Modifier and Type | Method and Description |
---|---|
float |
average()
Compute the average community size
|
Object |
biggestCommunity()
Get the biggest generated community
|
void |
compute()
Run the algorithm.
|
int |
maxCommunitySize()
Get the maximum community size
|
int |
minCommunitySize()
Get the minimum community size
|
int |
number()
Get the number of communities
|
Object |
smallestCommunity()
Get the smallest generated community
|
float |
stdev()
Compute the standard deviation of the community size
|
String |
toString()
Updates the distribution information and returns a string for an easy
display of the results.
|
assignNode, edgeAdded, edgeRemoved, getLastComputedValue, getMeasure, graphCleared, init, initialize, nodeAdded, nodeAttributeAdded, nodeAttributeChanged, nodeRemoved, terminate, unassignNode
edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, nodeAttributeRemoved, stepBegins
protected Object biggestCommunity
protected Object smallestCommunity
protected float avgSize
protected float stdevSize
public CommunityDistribution(String marker)
marker
- Attribute name for the community assignment.public void compute()
Algorithm
Algorithm.init(Graph)
method has to be called
before computing.compute
in interface Algorithm
compute
in class CommunityMeasure
Algorithm.init(Graph)
public int number()
public Object biggestCommunity()
public Object smallestCommunity()
public int maxCommunitySize()
public int minCommunitySize()
public float average()
public float stdev()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses