org.graphstream.algorithm.measure
Class DegreeCentrality

java.lang.Object
  extended by org.graphstream.algorithm.measure.AbstractCentrality
      extended by org.graphstream.algorithm.measure.DegreeCentrality
All Implemented Interfaces:
Algorithm

public class DegreeCentrality
extends AbstractCentrality


Nested Class Summary
static class DegreeCentrality.Mode
           
 
Nested classes/interfaces inherited from class org.graphstream.algorithm.measure.AbstractCentrality
AbstractCentrality.NormalizationMode
 
Field Summary
static String DEFAULT_ATTRIBUTE_KEY
           
 
Constructor Summary
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.
 
Method Summary
 
Methods inherited from class org.graphstream.algorithm.measure.AbstractCentrality
compute, copyValuesTo, copyValuesTo, getCentralityAttribute, getNormalizationMode, init, setCentralityAttribute, setNormalizationMode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ATTRIBUTE_KEY

public static final String DEFAULT_ATTRIBUTE_KEY
See Also:
Constant Field Values
Constructor Detail

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 stored
normalize - 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 stored
normalize - defines the normalization mode
mode - set which degree should be used (in degree, out degree or both)


Copyright © 2013. All Rights Reserved.