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.
|
private class |
ElementCountMeasure.StepTrigger |
ChartMeasure.PlotException, ChartMeasure.PlotOutputType, ChartMeasure.PlotParameters, ChartMeasure.PlotType
Modifier and Type | Field and Description |
---|---|
protected Graph |
g
Graph being used to compute the measure or null.
|
private Sink |
trigger |
xData, yData
DEFAULT_WINDOW_SIZE, series
name
Modifier | Constructor and Description |
---|---|
protected |
ElementCountMeasure(String name) |
Modifier and Type | Method and Description |
---|---|
void |
compute()
Run the algorithm.
|
abstract double |
getElementCount()
Get the amount of elements.
|
void |
init(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
protected ElementCountMeasure(String name)
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(Graph graph)
Algorithm
Algorithm.compute()
method to initialize or reset the algorithm according
to the new given graph.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses