|
||||||||||
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.Modularity
public class Modularity
Computes and updates the modularity of a given graph as it evolves.
Constructor Summary | |
---|---|
Modularity()
New modularity algorithm using the default marker for communities and no weight on edges. |
|
Modularity(String marker)
New modularity algorithm with a given marker for communities and no weight on edges. |
|
Modularity(String marker,
String weightMarker)
New weighted modularity algorithm with a given marker for communities and the given weightMarker for edge weights. |
Method Summary | |
---|---|
void |
compute()
Run the algorithm. |
void |
setWeightMarker(String weightMarker)
Enables weighted extension of the modularity using the given weightMarker for edge weights. |
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, toString, wait, wait, wait |
Constructor Detail |
---|
public Modularity()
public Modularity(String marker)
marker
- name of the attribute marking the communities.public Modularity(String marker, String weightMarker)
marker
- name of the attribute marking the communities.weightMarker
- name of the attribute marking the weight of edges.Method Detail |
---|
public void setWeightMarker(String weightMarker)
weightMarker
- name of the attribute marking the weight of edges.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |