Class ComplementaryVertexMetric<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.complementary.ComplementaryVertexMetric<U>
- Type Parameters:
U- Type of the users.
- All Implemented Interfaces:
VertexMetric<U>
public class ComplementaryVertexMetric<U> extends java.lang.Object implements VertexMetric<U>
Computes a vertex metric over the complementary graph.
-
Field Summary
Fields Modifier and Type Field Description private VertexMetric<U>metricThe metric to find on the complementary graph. -
Constructor Summary
Constructors Constructor Description ComplementaryVertexMetric(VertexMetric<U> metric)Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface es.uam.eps.ir.relison.sna.metrics.VertexMetric
averageValue, averageValue, compute, compute
-
Field Details
-
metric
The metric to find on the complementary graph.
-
-
Constructor Details
-
ComplementaryVertexMetric
Constructor.- Parameters:
metric- the metric to find on the complementary graph.
-
-
Method Details
-
compute
Description copied from interface:VertexMetricComputes the value of the metric for a single user.- Specified by:
computein interfaceVertexMetric<U>- Parameters:
graph- The graph.user- The user to compute.- Returns:
- the value of the metric.
-