public abstract class AbstractCentrality extends Object implements Algorithm
computeCentrality() method where centrality values will be stored in
data.| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractCentrality.NormalizationMode |
| Modifier and Type | Method and Description |
|---|---|
void |
compute()
Run the algorithm.
|
void |
copyValuesTo(String attribute)
Copy values previously computed to a specific attribute.
|
void |
copyValuesTo(String attribute,
AbstractCentrality.NormalizationMode normalize)
Copy values previously computed to a specific attribute.
|
String |
getCentralityAttribute()
Getter for
centralityAttribute. |
AbstractCentrality.NormalizationMode |
getNormalizationMode()
Getter for
normalize. |
void |
init(org.graphstream.graph.Graph graph)
Initialization of the algorithm.
|
void |
setCentralityAttribute(String centralityAttribute)
Setter for
centralityAttribute. |
void |
setNormalizationMode(AbstractCentrality.NormalizationMode normalize)
Setter for
normalize. |
public void init(org.graphstream.graph.Graph graph)
AlgorithmAlgorithm.compute() method to initialize or reset the algorithm according
to the new given graph.public void compute()
AlgorithmAlgorithm.init(Graph) method has to be called
before computing.compute in interface AlgorithmAlgorithm.init(Graph)public void copyValuesTo(String attribute)
compute() method needs to have been call before calling this
one.attribute - destination attribute where values of centrality will be
storedpublic void copyValuesTo(String attribute, AbstractCentrality.NormalizationMode normalize)
compute() method needs to have been call before calling this
one.attribute - destination attribute where values of centrality will be
storednormalize - defines the way that values have to be normalizedpublic String getCentralityAttribute()
centralityAttribute.centralityAttributepublic void setCentralityAttribute(String centralityAttribute)
centralityAttribute.centralityAttribute - new value of centralityAttributepublic AbstractCentrality.NormalizationMode getNormalizationMode()
normalize.normalizepublic void setNormalizationMode(AbstractCentrality.NormalizationMode normalize)
normalize.normalize - new value of normalizeCopyright © 2015. All rights reserved.