public interface WeightCombiner
Binary operator for edge weights. There are some prewritten operators.
-
Field Summary
Fields Modifier and Type Field Description static WeightCombinerFIRSTFirst weight.static WeightCombinerMAXMaximum weight.static WeightCombinerMINMinimum weight.static WeightCombinerMULTMultiplication of weights.static WeightCombinerSECONDSecond weight.static WeightCombinerSUMSum of weights. -
Method Summary
Modifier and Type Method Description doublecombine(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
-