public class DegreeCentrality extends AbstractCentrality
Modifier and Type | Class and Description |
---|---|
static class |
DegreeCentrality.Mode |
AbstractCentrality.NormalizationMode
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ATTRIBUTE_KEY |
Constructor and Description |
---|
DegreeCentrality() |
DegreeCentrality(java.lang.String attribute,
AbstractCentrality.NormalizationMode normalize)
Constructor allowing configuration of centrality attribute and
normalization flag.
|
DegreeCentrality(java.lang.String attribute,
AbstractCentrality.NormalizationMode normalize,
DegreeCentrality.Mode mode)
Same as
#DegreeCentrality(String, NormalizationMode) but allows to
configure the mode. |
compute, copyValuesTo, copyValuesTo, defaultMessage, getCentralityAttribute, getNormalizationMode, init, setCentralityAttribute, setNormalizationMode
public static final java.lang.String DEFAULT_ATTRIBUTE_KEY
public DegreeCentrality()
public DegreeCentrality(java.lang.String attribute, AbstractCentrality.NormalizationMode normalize)
DegreeCentrality.Mode.INOUT
.attribute
- name of the attribute where centrality values will be storednormalize
- defines the normalization modepublic DegreeCentrality(java.lang.String attribute, AbstractCentrality.NormalizationMode normalize, DegreeCentrality.Mode mode)
#DegreeCentrality(String, NormalizationMode)
but allows to
configure the mode.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)