org.graphstream.algorithm.measure
Class ConnectivityMeasure.EdgeConnectivityMeasure

java.lang.Object
  extended by org.graphstream.algorithm.measure.ConnectivityMeasure.EdgeConnectivityMeasure
All Implemented Interfaces:
Algorithm, DynamicAlgorithm
Enclosing class:
ConnectivityMeasure

public static class ConnectivityMeasure.EdgeConnectivityMeasure
extends Object
implements DynamicAlgorithm


Constructor Summary
ConnectivityMeasure.EdgeConnectivityMeasure()
           
 
Method Summary
 void compute()
          Run the algorithm.
 int getEdgeConnectivity()
          Get the last vertex-connectivity of the registered graph compute in the last call of compute().
 void init(org.graphstream.graph.Graph graph)
          Initialization of the algorithm.
 void terminate()
          Terminate the dynamic algorithm.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectivityMeasure.EdgeConnectivityMeasure

public ConnectivityMeasure.EdgeConnectivityMeasure()
Method Detail

getEdgeConnectivity

public int getEdgeConnectivity()
Get the last vertex-connectivity of the registered graph compute in the last call of compute().

Returns:
vertex connectivity

compute

public void compute()
Description copied from interface: Algorithm
Run the algorithm. The Algorithm.init(Graph) method has to be called before computing.

Specified by:
compute in interface Algorithm
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 the Algorithm.compute() method to initialize or reset the algorithm according to the new given graph.

Specified by:
init in interface Algorithm
Parameters:
graph - The graph this algorithm is using.

terminate

public void terminate()
Description copied from interface: DynamicAlgorithm
Terminate the dynamic algorithm.

Specified by:
terminate in interface DynamicAlgorithm
See Also:
Algorithm.init(org.graphstream.graph.Graph)


Copyright © 2013. All Rights Reserved.