Class NumCommunities<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.communities.graph.NumCommunities<U>
- Type Parameters:
U
- Type of the users.
- All Implemented Interfaces:
CommunityMetric<U>
public class NumCommunities<U> extends java.lang.Object implements CommunityMetric<U>
Metric that finds the number of communities of a graph.
-
Constructor Summary
Constructors Constructor Description NumCommunities()
-
Method Summary
Modifier and Type Method Description double
compute(Graph<U> graph, Communities<U> comm)
Computes the value of the metric in the graph.
-
Constructor Details
-
NumCommunities
public NumCommunities()
-
-
Method Details
-
compute
Description copied from interface:CommunityMetric
Computes the value of the metric in the graph.- Specified by:
compute
in interfaceCommunityMetric<U>
- Parameters:
graph
- Graph.comm
- Communities of the graph.- Returns:
- the value of the metric.
-