Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jgrapht.util
Interface WeightCombiner

    public interface WeightCombiner

Binary operator for edge weights. There are some prewritten operators.

Field Summary
`static WeightCombiner` | `FIRST` First weight.
`static WeightCombiner` | `MAX` Maximum weight.
`static WeightCombiner` | `MIN` Minimum weight.
`static WeightCombiner` | `SECOND` Second weight.
`static WeightCombiner` | `SUM` Sum of weights.

Method Summary
`double` | `combine(double a, double b)` Combines two weights.

Field Detail

### SUM

    static final WeightCombiner SUM

  Sum of weights.

### MIN

    static final WeightCombiner MIN

  Minimum weight.

### MAX

    static final WeightCombiner MAX

  Maximum weight.

### FIRST

    static final WeightCombiner FIRST

  First weight.

### SECOND

    static final WeightCombiner SECOND

  Second weight.

Method Detail

### combine

    double combine(double a,
                   double b)

  Combines two weights.

  Parameters:
    `a` - first weight
    `b` - second weight
  Returns:
    result of the operator

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD