Class ConnectivityMeasure.VertexConnectivityMeasure
java.lang.Object
org.graphstream.algorithm.measure.ConnectivityMeasure.VertexConnectivityMeasure
- All Implemented Interfaces:
Algorithm,DynamicAlgorithm
- Enclosing class:
- ConnectivityMeasure
public static class ConnectivityMeasure.VertexConnectivityMeasure extends Object implements DynamicAlgorithm
-
Constructor Summary
Constructors Constructor Description VertexConnectivityMeasure() -
Method Summary
Modifier and Type Method Description voidcompute()Run the algorithm.intgetVertexConnectivity()Get the last vertex-connectivity of the registered graph compute in the last call ofcompute().voidinit(org.graphstream.graph.Graph graph)Initialization of the algorithm.voidterminate()Terminate the dynamic algorithm.
-
Constructor Details
-
VertexConnectivityMeasure
public VertexConnectivityMeasure()
-
-
Method Details
-
getVertexConnectivity
public int getVertexConnectivity()Get the last vertex-connectivity of the registered graph compute in the last call ofcompute().- Returns:
- vertex connectivity
-
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. -
terminate
public void terminate()Description copied from interface:DynamicAlgorithmTerminate the dynamic algorithm.- Specified by:
terminatein interfaceDynamicAlgorithm- See Also:
Algorithm.init(org.graphstream.graph.Graph)
-