Class ElementCountMeasure
java.lang.Object
org.graphstream.algorithm.measure.ChartMeasure
org.graphstream.algorithm.measure.ChartSeriesMeasure
org.graphstream.algorithm.measure.ChartSeries2DMeasure
org.graphstream.algorithm.measure.ElementCountMeasure
- All Implemented Interfaces:
Algorithm,DynamicAlgorithm
- Direct Known Subclasses:
ElementCountMeasure.EdgeCountMeasure,ElementCountMeasure.NodeCountMeasure
public abstract class ElementCountMeasure extends ChartSeries2DMeasure implements DynamicAlgorithm
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classElementCountMeasure.EdgeCountMeasureMeasure the count of edges in a graph.static classElementCountMeasure.NodeCountMeasureMeasure the count of nodes in a graph.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 -
Method Summary
Modifier and Type Method Description voidcompute()Run the algorithm.abstract doublegetElementCount()Get the amount of elements.voidinit(org.graphstream.graph.Graph graph)Initialization of the algorithm.voidterminate()Terminate the dynamic algorithm.Methods inherited from class org.graphstream.algorithm.measure.ChartSeries2DMeasure
addValue, getCount, getXMax, getXMean, getXMin, getXVariance, getYMax, getYMean, getYMin, getYVariance, setWindowSizeMethods inherited from class org.graphstream.algorithm.measure.ChartSeriesMeasure
createChart, getDefaultPlotParameters, getXYSeries, plotMethods inherited from class org.graphstream.algorithm.measure.ChartMeasure
outputPlot, outputPlot, plot
-
Method Details
-
getElementCount
public abstract double getElementCount()Get the amount of elements.- Returns:
- amount of elements
-
terminate
public void terminate()Description copied from interface:DynamicAlgorithmTerminate the dynamic algorithm.- Specified by:
terminatein interfaceDynamicAlgorithm- See Also:
Algorithm.init(org.graphstream.graph.Graph)
-
compute
public void compute()Description copied from interface:AlgorithmRun the algorithm. TheAlgorithm.init(Graph)method has to be called before computing.- Specified by:
computein interfaceAlgorithm- See Also:
Algorithm.init(Graph)
-
init
public void init(org.graphstream.graph.Graph graph)Description copied from interface:AlgorithmInitialization of the algorithm. This method has to be called before theAlgorithm.compute()method to initialize or reset the algorithm according to the new given graph.
-