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