Class ChartConnectivityMeasure
java.lang.Object
org.graphstream.algorithm.measure.ChartMeasure
org.graphstream.algorithm.measure.ChartConnectivityMeasure
- All Implemented Interfaces:
Algorithm
,DynamicAlgorithm
public class ChartConnectivityMeasure extends ChartMeasure implements DynamicAlgorithm
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChartConnectivityMeasure.ChartEdgeConnectivityMeasure
static class
ChartConnectivityMeasure.ChartVertexConnectivityMeasure
Nested classes/interfaces inherited from class org.graphstream.algorithm.measure.ChartMeasure
ChartMeasure.PlotException, ChartMeasure.PlotOutputType, ChartMeasure.PlotParameters, ChartMeasure.PlotType
-
Constructor Summary
Constructors Constructor Description ChartConnectivityMeasure()
ChartConnectivityMeasure(ChartConnectivityMeasure.ChartVertexConnectivityMeasure vertexConnectivity, ChartConnectivityMeasure.ChartEdgeConnectivityMeasure edgeConnectivity)
-
Method Summary
Modifier and Type Method Description void
compute()
Run the algorithm.org.jfree.chart.JFreeChart
createChart(ChartMeasure.PlotParameters params)
Create a new chart of this measure according to a set of parameters.ChartMeasure.PlotParameters
getDefaultPlotParameters()
Create a default set of parameters to plot this measure.ChartConnectivityMeasure.ChartEdgeConnectivityMeasure
getEdgeConnectivityMeasure()
ChartConnectivityMeasure.ChartVertexConnectivityMeasure
getVertexConnectivityMeasure()
void
init(org.graphstream.graph.Graph graph)
Initialization of the algorithm.void
plot(ChartMeasure.PlotParameters params)
Plot this measure using a set of parameters.void
terminate()
Terminate the dynamic algorithm.Methods inherited from class org.graphstream.algorithm.measure.ChartMeasure
outputPlot, outputPlot, plot
-
Constructor Details
-
ChartConnectivityMeasure
public ChartConnectivityMeasure() -
ChartConnectivityMeasure
public ChartConnectivityMeasure(ChartConnectivityMeasure.ChartVertexConnectivityMeasure vertexConnectivity, ChartConnectivityMeasure.ChartEdgeConnectivityMeasure edgeConnectivity)
-
-
Method Details
-
getVertexConnectivityMeasure
-
getEdgeConnectivityMeasure
-
terminate
public void terminate()Description copied from interface:DynamicAlgorithm
Terminate the dynamic algorithm.- Specified by:
terminate
in interfaceDynamicAlgorithm
- See Also:
Algorithm.init(org.graphstream.graph.Graph)
-
compute
public void compute()Description copied from interface:Algorithm
Run the algorithm. TheAlgorithm.init(Graph)
method has to be called before computing.- Specified by:
compute
in interfaceAlgorithm
- 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 theAlgorithm.compute()
method to initialize or reset the algorithm according to the new given graph. -
createChart
public org.jfree.chart.JFreeChart createChart(ChartMeasure.PlotParameters params) throws ChartMeasure.PlotExceptionDescription copied from class:ChartMeasure
Create a new chart of this measure according to a set of parameters.- Specified by:
createChart
in classChartMeasure
- Parameters:
params
- the set of parameters used to create the chart- Returns:
- a new chart
- Throws:
ChartMeasure.PlotException
- error during plot
-
plot
Description copied from class:ChartMeasure
Plot this measure using a set of parameters.- Specified by:
plot
in classChartMeasure
- Parameters:
params
- parameters that should be used to plot the measure- Throws:
ChartMeasure.PlotException
- error during plot
-
getDefaultPlotParameters
Description copied from class:ChartMeasure
Create a default set of parameters to plot this measure.- Specified by:
getDefaultPlotParameters
in classChartMeasure
- Returns:
- a default PlotParameters adapted to this measure.
-