Package org.neo4j.gds.paths.traverse
Interface Aggregator
- All Known Implementing Classes:
OneHopAggregator
public interface Aggregator
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondouble
apply
(long sourceNode, long currentNode, double weightAtSource) aggregate weight between source and current node
-
Field Details
-
NO_AGGREGATION
-
-
Method Details
-
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.)
-