java.lang.Object
es.uam.eps.ir.relison.sna.metrics.communities.graph.WeakTies<U>
Type Parameters:
U - Type of the users.
All Implemented Interfaces:
CommunityMetric<U>

public class WeakTies<U>
extends java.lang.Object
implements CommunityMetric<U>
Computes the number of edges between communities.

Reference: E. Ferrara, P. de Meo, G. Fiumara, A. Provetti. On Facebook, most ties are weak. Communications of the ACM 57(11), pp. 78-84 (2012)

  • Constructor Summary

    Constructors 
    Constructor Description
    WeakTies()  
  • 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.