public interface WeightCombiner
Binary operator for edge weights. There are some prewritten operators.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final WeightCombiner
First weight.static final WeightCombiner
Maximum weight.static final WeightCombiner
Minimum weight.static final WeightCombiner
Multiplication of weights.static final WeightCombiner
Second weight.static final WeightCombiner
Sum of weights. -
Method Summary
-
Field Details
-
SUM
Sum of weights. -
MULT
Multiplication of weights. -
MIN
Minimum weight. -
MAX
Maximum weight. -
FIRST
First weight. -
SECOND
Second weight.
-
-
Method Details
-
combine
double combine(double a, double b) Combines two weights.- Parameters:
a
- first weightb
- second weight- Returns:
- result of the operator
-