public static class WeightCalculator.UnweightedWeightCalculator extends java.lang.Object implements WeightCalculator
WeightCalculator.ConstrainedWeightCalculator, WeightCalculator.UnweightedWeightCalculator, WeightCalculator.WeightedWeightCalculator| Constructor and Description |
|---|
UnweightedWeightCalculator() |
| Modifier and Type | Method and Description |
|---|---|
double |
getEdgeWeight(Edge edge)
Gets the weight of the given edge according to this calculator.
|
double |
getOrderWeight(Edge edge,
java.util.List<Cycle> cycles)
Gets the weight of the edge for ordering the most promising edges to remove.
|
public double getEdgeWeight(Edge edge)
WeightCalculatorgetEdgeWeight in interface WeightCalculatoredge - The edge.public double getOrderWeight(Edge edge, java.util.List<Cycle> cycles)
WeightCalculatorgetOrderWeight in interface WeightCalculatoredge - The edge to check for.cycles - The list of cycles which were found in the graph.