org.graphstream.algorithm.measure
Class DegreeMeasure

java.lang.Object
  extended by org.graphstream.algorithm.measure.ChartMeasure
      extended by org.graphstream.algorithm.measure.ChartSeriesMeasure
          extended by org.graphstream.algorithm.measure.ChartSeries2DMeasure
              extended by org.graphstream.algorithm.measure.ChartMinMaxAverageSeriesMeasure
                  extended by org.graphstream.algorithm.measure.DegreeMeasure
All Implemented Interfaces:
Algorithm, DynamicAlgorithm

public class DegreeMeasure
extends ChartMinMaxAverageSeriesMeasure
implements DynamicAlgorithm


Nested Class Summary
 
Nested classes/interfaces inherited from class org.graphstream.algorithm.measure.ChartMeasure
ChartMeasure.PlotException, ChartMeasure.PlotOutputType, ChartMeasure.PlotParameters, ChartMeasure.PlotType
 
Field Summary
 
Fields inherited from class org.graphstream.algorithm.measure.ChartSeriesMeasure
DEFAULT_WINDOW_SIZE
 
Constructor Summary
DegreeMeasure()
           
 
Method Summary
 void compute()
          Run the algorithm.
 void init(org.graphstream.graph.Graph graph)
          Initialization of the algorithm.
 void terminate()
          Terminate the dynamic algorithm.
 
Methods inherited from class org.graphstream.algorithm.measure.ChartMinMaxAverageSeriesMeasure
addValue, createChart, getDefaultPlotParameters, isSeparateMinMaxAxis, setSeparateMinMaxAxis, setWindowSize
 
Methods inherited from class org.graphstream.algorithm.measure.ChartSeries2DMeasure
addValue, getCount, getXMax, getXMean, getXMin, getXVariance, getYMax, getYMean, getYMin, getYVariance
 
Methods inherited from class org.graphstream.algorithm.measure.ChartSeriesMeasure
getXYSeries, plot
 
Methods inherited from class org.graphstream.algorithm.measure.ChartMeasure
outputPlot, outputPlot, plot
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DegreeMeasure

public DegreeMeasure()
Method Detail

terminate

public void terminate()
Description copied from interface: DynamicAlgorithm
Terminate the dynamic algorithm.

Specified by:
terminate in interface DynamicAlgorithm
See Also:
Algorithm.init(org.graphstream.graph.Graph)

compute

public void compute()
Description copied from interface: Algorithm
Run the algorithm. The Algorithm.init(Graph) method has to be called before computing.

Specified by:
compute in interface Algorithm
See Also:
Algorithm.init(Graph)

init

public void init(org.graphstream.graph.Graph graph)
Description copied from interface: Algorithm
Initialization of the algorithm. This method has to be called before the Algorithm.compute() method to initialize or reset the algorithm according to the new given graph.

Specified by:
init in interface Algorithm
Parameters:
graph - The graph this algorithm is using.


Copyright © 2013. All Rights Reserved.