public class HeuristicCycleRemovingAlgorithm extends java.lang.Object implements CycleRemovingAlgorithm
Constructor and Description |
---|
HeuristicCycleRemovingAlgorithm(WeightCalculator weightCalculator) |
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 HeuristicCycleRemovingAlgorithm(WeightCalculator weightCalculator)
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