public abstract class CommunityRelativeMeasure extends CommunityMeasure
| Constructor and Description |
|---|
CommunityRelativeMeasure(String marker) |
CommunityRelativeMeasure(String marker,
String referenceMarker)
New comparative measure using "marker" as attribute name for each node
current community assignment and "referenceMarker" as attribute name for
each node reference assignment.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
compute()
Run the algorithm.
|
void |
nodeAdded(String graphId,
long timeId,
String nodeId) |
void |
nodeAttributeChanged(String graphId,
long timeId,
String nodeId,
String attribute,
Object oldValue,
Object newValue) |
void |
nodeRemoved(String graphId,
long timeId,
String nodeId) |
edgeAdded, edgeRemoved, getLastComputedValue, getMeasure, graphCleared, init, nodeAttributeAdded, terminatepublic CommunityRelativeMeasure(String marker)
public CommunityRelativeMeasure(String marker, String referenceMarker)
marker - Current community assignment attribute namereferenceMarker - Reference community assignment attribute namepublic abstract void compute()
AlgorithmAlgorithm.init(Graph) method has to be called
before computing.compute in interface Algorithmcompute in class CommunityMeasureAlgorithm.init(Graph)public void nodeAdded(String graphId, long timeId, String nodeId)
nodeAdded in interface org.graphstream.stream.ElementSinknodeAdded in class CommunityMeasurepublic void nodeRemoved(String graphId, long timeId, String nodeId)
nodeRemoved in interface org.graphstream.stream.ElementSinknodeRemoved in class CommunityMeasurepublic void nodeAttributeChanged(String graphId, long timeId, String nodeId, String attribute, Object oldValue, Object newValue)
nodeAttributeChanged in interface org.graphstream.stream.AttributeSinknodeAttributeChanged in class CommunityMeasureCopyright © 2015. All rights reserved.