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)
CycleRemovingAlgorithmremoveCycles in interface CycleRemovingAlgorithmpublic java.util.List<Edge> getRemovedEdges()
CycleRemovingAlgorithmgetRemovedEdges in interface CycleRemovingAlgorithmpublic boolean isHeuristic()
CycleRemovingAlgorithmisHeuristic in interface CycleRemovingAlgorithm