public class PerfectApproximator extends Object implements WeightApproximator
Constructor and Description |
---|
PerfectApproximator(Graph graph,
Weighting weighting,
TraversalMode traversalMode,
boolean reverse) |
Modifier and Type | Method and Description |
---|---|
double |
approximate(int currentNode) |
double |
getSlack() |
WeightApproximator |
reverse()
Makes a 'reverse' copy of itself to make it possible using the two objects independent e.g.
|
void |
setTo(int to) |
public PerfectApproximator(Graph graph, Weighting weighting, TraversalMode traversalMode, boolean reverse)
public double approximate(int currentNode)
approximate
in interface WeightApproximator
public void setTo(int to)
setTo
in interface WeightApproximator
public WeightApproximator reverse()
WeightApproximator
reverse
in interface WeightApproximator
public double getSlack()
getSlack
in interface WeightApproximator
Copyright © 2012–2020. All rights reserved.