public abstract class LibTWAlgorithm extends Object implements GraphDecompositionAlgorithm
GraphDecompositionAlgorithm.Implementations
Algorithm.OrderingType, Algorithm.SearchType
Modifier and Type | Method and Description |
---|---|
void |
addComputationListener(ComputationListener l)
Adds the Computation Listener
l to this algorithm. |
void |
cancelComputation()
Cancels the computation of this algorithm.
|
GraphDecomposition |
decompose(Graph graph)
Returns a graph decomposition of the graph
graph . |
void |
removeComputationListener(ComputationListener l)
Removes the Computation Listener
l from this algorithm. |
public void addComputationListener(ComputationListener l)
Algorithm
l
to this algorithm.addComputationListener
in interface Algorithm
l
- the listener to receive computation eventspublic void removeComputationListener(ComputationListener l)
Algorithm
l
from this algorithm.removeComputationListener
in interface Algorithm
l
- the listener to be removedpublic GraphDecomposition decompose(Graph graph)
GraphDecompositionAlgorithm
graph
.decompose
in interface GraphDecompositionAlgorithm
graph
- the graph to be decomposedpublic void cancelComputation()
Algorithm
cancelComputation
in interface Algorithm