Class ComplementaryCommunityMetric<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.complementary.ComplementaryCommunityMetric<U>
- Type Parameters:
U- Type of the users.
- All Implemented Interfaces:
CommunityMetric<U>
public class ComplementaryCommunityMetric<U> extends java.lang.Object implements CommunityMetric<U>
Computes a global community metric over the complementary graph.
graph, i.e. the edge does exist in the original graph.
-
Field Summary
Fields Modifier and Type Field Description private CommunityMetric<U>metricThe metric to find on the complementary graph -
Constructor Summary
Constructors Constructor Description ComplementaryCommunityMetric(CommunityMetric<U> metric)Constructor. -
Method Summary
Modifier and Type Method Description doublecompute(Graph<U> graph, Communities<U> comm)Computes the value of the metric in the graph.
-
Field Details
-
metric
The metric to find on the complementary graph
-
-
Constructor Details
-
ComplementaryCommunityMetric
Constructor.- Parameters:
metric- the metric to find on the complementary graph.
-
-
Method Details
-
compute
Description copied from interface:CommunityMetricComputes the value of the metric in the graph.- Specified by:
computein interfaceCommunityMetric<U>- Parameters:
graph- Graph.comm- Communities of the graph.- Returns:
- the value of the metric.
-