org.graphstream.algorithm.measure
Class DegreeCentrality
java.lang.Object
org.graphstream.algorithm.measure.AbstractCentrality
org.graphstream.algorithm.measure.DegreeCentrality
- All Implemented Interfaces:
- Algorithm
public class DegreeCentrality
- extends AbstractCentrality
DEFAULT_ATTRIBUTE_KEY
public static final String DEFAULT_ATTRIBUTE_KEY
- See Also:
- Constant Field Values
DegreeCentrality
public DegreeCentrality()
DegreeCentrality
public DegreeCentrality(String attribute,
AbstractCentrality.NormalizationMode normalize)
- Constructor allowing configuration of centrality attribute and
normalization flag. Mode will be
DegreeCentrality.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 as
#DegreeCentrality(String, boolean) 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)
Copyright © 2013. All Rights Reserved.