Package org.neo4j.gds.paths.traverse
Interface Aggregator
-
- All Known Implementing Classes:
OneHopAggregator
public interface Aggregator
-
-
Field Summary
Fields Modifier and Type Field Description static AggregatorNO_AGGREGATION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doubleapply(long sourceNode, long currentNode, double weightAtSource)aggregate weight between source and current node
-
-
-
Field Detail
-
NO_AGGREGATION
static final Aggregator NO_AGGREGATION
-
-
Method Detail
-
apply
double apply(long sourceNode, long currentNode, double weightAtSource)aggregate weight between source and current node- Parameters:
sourceNode- source nodecurrentNode- the current nodeweightAtSource- the weight that has been aggregated for the currentNode so far- Returns:
- new weight (e.g. weightAtSource + 1.)
-
-