Packageflare.analytics.graph
Classpublic class BetweennessCentrality
InheritanceBetweennessCentrality Inheritance Operator

Calculates betweenness centrality measures for nodes in a graph. The algorithm used is due to Ulrik Brandes, as published in the Journal of Mathematical Sociology, 25(2):163-177, 2001.



Public Properties
 PropertyDefined by
  centralityField : String
The property in which to store the centrality score.
BetweennessCentrality
 Inheritedenabled : Boolean
Indicates if the operator is enabled or disabled.
Operator
  links : int = 3
Flag indicating the type of links to follow in the graph.
BetweennessCentrality
 Inheritedparameters : Object
Sets parameter values for this operator.
Operator
 Inheritedvisualization : Visualization
The visualization processed by this operator.
Operator
Public Methods
 MethodDefined by
  
Creates a new BetweennessCentrality operator.
BetweennessCentrality
 Inherited
applyParameters(op:IOperator, params:Object):void
[static] Static method that applies parameter settings to an operator.
Operator
  
calculate(data:Data):void
Calculates the betweenness centrality values for the given data set.
BetweennessCentrality
  
operate(t:Transitioner = null):void
Performs an operation over the contents of a visualization.
BetweennessCentrality
 Inherited
setup():void
Setup method invoked whenever this operator's visualization property is set.
Operator
Property detail
centralityFieldproperty
centralityField:String  [read-write]

The property in which to store the centrality score. This property is used to annotate nodes with their betweenness centrality score. The default value is "props.centrality".

Implementation
    public function get centralityField():String
    public function set centralityField(value:String):void
linksproperty 
public var links:int = 3

Flag indicating the type of links to follow in the graph. The default is NodeSprite.GRAPH_LINKS.

Constructor detail
BetweennessCentrality()constructor
public function BetweennessCentrality()

Creates a new BetweennessCentrality operator.

Method detail
calculate()method
public function calculate(data:Data):void

Calculates the betweenness centrality values for the given data set.

Parameters
data:Data — the data set for which to compute centrality measures
operate()method 
public override function operate(t:Transitioner = null):void

Performs an operation over the contents of a visualization.

Parameters
t:Transitioner (default = null) — a Transitioner instance for collecting value updates.