public class RecursiveCycleRemovingAlgorithm extends java.lang.Object implements CycleRemovingAlgorithm
Constructor and Description |
---|
RecursiveCycleRemovingAlgorithm(WeightCalculator calculator) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Edge> |
getRemovedEdges()
Get the list of edges which had to be removed from the graph.
|
boolean |
isHeuristic()
Returns whether this algorithm is a heuristic algorithm, or otherwise an exact algorithm.
|
void |
removeCycles(Graph graph)
Remove all cycles from the given graph.
|
public RecursiveCycleRemovingAlgorithm(WeightCalculator calculator)
public void removeCycles(Graph graph)
CycleRemovingAlgorithm
removeCycles
in interface CycleRemovingAlgorithm
public java.util.List<Edge> getRemovedEdges()
CycleRemovingAlgorithm
getRemovedEdges
in interface CycleRemovingAlgorithm
public boolean isHeuristic()
CycleRemovingAlgorithm
isHeuristic
in interface CycleRemovingAlgorithm