Class AggregateEdgeMetric<U>

java.lang.Object
es.uam.eps.ir.relison.sna.metrics.graph.aggregate.AggregateEdgeMetric<U>
Type Parameters:
U - type of the users.
All Implemented Interfaces:
GraphMetric<U>

public class AggregateEdgeMetric<U>
extends java.lang.Object
implements GraphMetric<U>
Graph metric computed as the aggregation of an edge metric over the edges in the network.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private PairMetric<U> edgeMetric
    Edge metric.
  • Constructor Summary

    Constructors 
    Constructor Description
    AggregateEdgeMetric​(PairMetric<U> edgeMetric)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    double compute​(Graph<U> graph)
    Computes the value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • compute

      public double compute​(Graph<U> graph)
      Description copied from interface: GraphMetric
      Computes the value.
      Specified by:
      compute in interface GraphMetric<U>
      Parameters:
      graph - graph metric.
      Returns:
      the value of the metric.