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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • compute

      public double compute​(Graph<U> graph, Communities<U> comm)
      Description copied from interface: CommunityMetric
      Computes the value of the metric in the graph.
      Specified by:
      compute in interface CommunityMetric<U>
      Parameters:
      graph - Graph.
      comm - Communities of the graph.
      Returns:
      the value of the metric.