Class EdgeWeight<V>

java.lang.Object
es.uam.eps.ir.relison.sna.metrics.pair.AbstractPairMetric<V>
es.uam.eps.ir.relison.sna.metrics.pair.EdgeWeight<V>
Type Parameters:
V - Type of the users in the graph.
All Implemented Interfaces:
PairMetric<V>

public class EdgeWeight<V>
extends AbstractPairMetric<V>
Finds the weight of an edge in a graph.
  • Constructor Details

  • Method Details

    • compute

      public double compute​(Graph<V> graph, V orig, V dest)
      Description copied from interface: PairMetric
      Computes the value of the metric for a single pair of nodes
      Parameters:
      graph - The full graph.
      orig - The origin node of the edge.
      dest - The destiny node of the edge.
      Returns:
      The value of the metric for that edge.