Interface Aggregator

All Known Implementing Classes:
OneHopAggregator

public interface Aggregator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Aggregator
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    apply(long sourceNode, long currentNode, double weightAtSource)
    aggregate weight between source and current node
  • Field Details

    • NO_AGGREGATION

      static final Aggregator NO_AGGREGATION
  • Method Details

    • apply

      double apply(long sourceNode, long currentNode, double weightAtSource)
      aggregate weight between source and current node
      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.)