Class DegreeCentrality
java.lang.Object
org.graphstream.algorithm.measure.AbstractCentrality
org.graphstream.algorithm.measure.DegreeCentrality
- All Implemented Interfaces:
Algorithm
public class DegreeCentrality extends AbstractCentrality
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DegreeCentrality.Mode
Nested classes/interfaces inherited from class org.graphstream.algorithm.measure.AbstractCentrality
AbstractCentrality.NormalizationMode
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ATTRIBUTE_KEY
-
Constructor Summary
Constructors Constructor Description DegreeCentrality()
DegreeCentrality(String attribute, AbstractCentrality.NormalizationMode normalize)
Constructor allowing configuration of centrality attribute and normalization flag.DegreeCentrality(String attribute, AbstractCentrality.NormalizationMode normalize, DegreeCentrality.Mode mode)
Same asDegreeCentrality(String, NormalizationMode)
but allows to configure the mode. -
Method Summary
Methods inherited from class org.graphstream.algorithm.measure.AbstractCentrality
compute, copyValuesTo, copyValuesTo, defaultMessage, getCentralityAttribute, getNormalizationMode, init, setCentralityAttribute, setNormalizationMode
-
Field Details
-
DEFAULT_ATTRIBUTE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Details
-
DegreeCentrality
public DegreeCentrality() -
DegreeCentrality
Constructor allowing configuration of centrality attribute and normalization flag. Mode will beDegreeCentrality.Mode.INOUT
.- Parameters:
attribute
- name of the attribute where centrality values will be storednormalize
- defines the normalization mode
-
DegreeCentrality
public DegreeCentrality(String attribute, AbstractCentrality.NormalizationMode normalize, DegreeCentrality.Mode mode)Same asDegreeCentrality(String, NormalizationMode)
but allows to configure the mode.- Parameters:
attribute
- name of the attribute where centrality values will be storednormalize
- defines the normalization modemode
- set which degree should be used (in degree, out degree or both)
-