public class DegreeCentrality extends AbstractCentrality
| Modifier and Type | Class and Description |
|---|---|
static class |
DegreeCentrality.Mode |
AbstractCentrality.NormalizationMode| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ATTRIBUTE_KEY |
| Constructor and 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 as
#DegreeCentrality(String, boolean) but allows to
configure the mode. |
compute, copyValuesTo, copyValuesTo, getCentralityAttribute, getNormalizationMode, init, setCentralityAttribute, setNormalizationModepublic static final String DEFAULT_ATTRIBUTE_KEY
public DegreeCentrality()
public DegreeCentrality(String attribute, AbstractCentrality.NormalizationMode normalize)
DegreeCentrality.Mode.INOUT.attribute - name of the attribute where centrality values will be storednormalize - defines the normalization modepublic DegreeCentrality(String attribute, AbstractCentrality.NormalizationMode normalize, DegreeCentrality.Mode mode)
#DegreeCentrality(String, boolean) 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)Copyright © 2015. All rights reserved.