Package org.neo4j.gds.paths.traverse
Class OneHopAggregator
- java.lang.Object
-
- org.neo4j.gds.paths.traverse.OneHopAggregator
-
- All Implemented Interfaces:
Aggregator
public class OneHopAggregator extends java.lang.Object implements Aggregator
-
-
Field Summary
-
Fields inherited from interface org.neo4j.gds.paths.traverse.Aggregator
NO_AGGREGATION
-
-
Constructor Summary
Constructors Constructor Description OneHopAggregator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleapply(long sourceNode, long currentNode, double weightAtSource)aggregate weight between source and current node
-
-
-
Method Detail
-
apply
public double apply(long sourceNode, long currentNode, double weightAtSource)Description copied from interface:Aggregatoraggregate weight between source and current node- Specified by:
applyin interfaceAggregator- 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.)
-
-