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 Summary
Constructors Constructor Description EdgeWeight()
Constructor. -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.sna.metrics.pair.AbstractPairMetric
averageValue, averageValue, averageValueOnlyLinks, compute, compute, computeDest, computeOnlyLinks, computeOrig
-
Constructor Details
-
EdgeWeight
public EdgeWeight()Constructor.
-
-
Method Details
-
compute
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.
-