Package org.neo4j.graphalgo.beta.pregel
Class Reducer.Min
- java.lang.Object
-
- org.neo4j.graphalgo.beta.pregel.Reducer.Min
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.neo4j.graphalgo.beta.pregel.Reducer
Reducer.Count, Reducer.Max, Reducer.Min, Reducer.Sum
-
-
Constructor Summary
Constructors Constructor Description Min()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
emptyValue()
The empty value is used when a node did not receive any messages.double
identity()
The identity element is used as the initial value.boolean
isEmptyValue(double value)
Checks if the given value is the empty value.double
reduce(double current, double message)
Computes a new value based on the current value and the message.
-
-
-
Method Detail
-
identity
public double identity()
Description copied from interface:Reducer
The identity element is used as the initial value.
-
reduce
public double reduce(double current, double message)
Description copied from interface:Reducer
Computes a new value based on the current value and the message.
-
emptyValue
public double emptyValue()
Description copied from interface:Reducer
The empty value is used when a node did not receive any messages.- Specified by:
emptyValue
in interfaceReducer
-
isEmptyValue
public boolean isEmptyValue(double value)
Description copied from interface:Reducer
Checks if the given value is the empty value.- Specified by:
isEmptyValue
in interfaceReducer
-
-