public class CommunityDistribution extends CommunityMeasure
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.
|
edgeAdded, edgeRemoved, getLastComputedValue, getMeasure, graphCleared, init, nodeAdded, nodeAttributeAdded, nodeAttributeChanged, nodeRemoved, terminate
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()
public String toString()
Copyright © 2015. All rights reserved.