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)
WeightCalculator
getEdgeWeight
in interface WeightCalculator
edge
- The edge.public double getOrderWeight(Edge edge, java.util.List<Cycle> cycles)
WeightCalculator
getOrderWeight
in interface WeightCalculator
edge
- The edge to check for.cycles
- The list of cycles which were found in the graph.