|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.stream.SinkAdapter
org.graphstream.algorithm.measure.CommunityMeasure
org.graphstream.algorithm.measure.CommunityDistribution
public class CommunityDistribution
Provides some statistical information on the size of current community assignment on the specified graph as it evolves.
Constructor Summary | |
---|---|
CommunityDistribution(String marker)
New size distribution measure using the specified marker as attribute name for the community assignment. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.graphstream.algorithm.measure.CommunityMeasure |
---|
edgeAdded, edgeRemoved, getLastComputedValue, getMeasure, graphCleared, init, nodeAdded, nodeAttributeAdded, nodeAttributeChanged, nodeRemoved, terminate |
Methods inherited from class org.graphstream.stream.SinkAdapter |
---|
edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, nodeAttributeRemoved, stepBegins |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommunityDistribution(String marker)
marker
- Attribute name for the community assignment.Method Detail |
---|
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()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |