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 WeightApproximatorpublic void setTo(int to)
setTo in interface WeightApproximatorpublic WeightApproximator reverse()
WeightApproximatorreverse in interface WeightApproximatorpublic double getSlack()
getSlack in interface WeightApproximatorCopyright © 2012–2020. All rights reserved.