public abstract class ElementCountMeasure extends ChartSeries2DMeasure implements DynamicAlgorithm
Modifier and Type | Class and Description |
---|---|
static class |
ElementCountMeasure.EdgeCountMeasure
Measure the count of edges in a graph.
|
static class |
ElementCountMeasure.NodeCountMeasure
Measure the count of nodes in a graph.
|
ChartMeasure.PlotException, ChartMeasure.PlotOutputType, ChartMeasure.PlotParameters, ChartMeasure.PlotType
DEFAULT_WINDOW_SIZE
Modifier and Type | Method and Description |
---|---|
void |
compute()
Run the algorithm.
|
abstract double |
getElementCount()
Get the amount of elements.
|
void |
init(org.graphstream.graph.Graph graph)
Initialization of the algorithm.
|
void |
terminate()
Terminate the dynamic algorithm.
|
addValue, getCount, getXMax, getXMean, getXMin, getXVariance, getYMax, getYMean, getYMin, getYVariance, setWindowSize
createChart, getDefaultPlotParameters, getXYSeries, plot
outputPlot, outputPlot, plot
public abstract double getElementCount()
public void terminate()
DynamicAlgorithm
terminate
in interface DynamicAlgorithm
Algorithm.init(org.graphstream.graph.Graph)
public void compute()
Algorithm
Algorithm.init(Graph)
method has to be called
before computing.compute
in interface Algorithm
Algorithm.init(Graph)
public void init(org.graphstream.graph.Graph graph)
Algorithm
Algorithm.compute()
method to initialize or reset the algorithm according
to the new given graph.Copyright © 2015. All rights reserved.