Class OneHopAggregator

  • All Implemented Interfaces:
    Aggregator

    public class OneHopAggregator
    extends java.lang.Object
    implements Aggregator
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double apply​(long sourceNode, long currentNode, double weightAtSource)
      aggregate weight between source and current node
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OneHopAggregator

        public OneHopAggregator()
    • Method Detail

      • apply

        public double apply​(long sourceNode,
                            long currentNode,
                            double weightAtSource)
        Description copied from interface: Aggregator
        aggregate weight between source and current node
        Specified by:
        apply in interface Aggregator
        Parameters:
        sourceNode - source node
        currentNode - the current node
        weightAtSource - the weight that has been aggregated for the currentNode so far
        Returns:
        new weight (e.g. weightAtSource + 1.)