Class OverlappingClustering<V,E>

java.lang.Object
org.jgrapht.alg.clustering.OverlappingClustering<V,E>
Type Parameters:
V - the graph vertex type
E - the graph edge type
All Implemented Interfaces:
ClusteringAlgorithm<V>

public class OverlappingClustering<V,E> extends Object implements ClusteringAlgorithm<V>
Implementation of the Overlapping Clustering Algorithm.

The algorithm is described in the paper: Bradley S. Rees invalid input: '&' Keith B. Gallagher (2010), Overlapping Community Detection by Collective Friendship Group Inference.

The algorithm is split into three distinct parts: finding friendship groups, removing proper subsets, and finally merging close sets.

Friendship groups are found by generating the egonet graphs of each vertex.

Two sets are considered close when, with |B| >= |A|, the condition |A| - |A ∩ B| invalid input: '<'= 1 holds.

Parallel execution is supported for finding friendship groups and removing proper subsets.

Author:
Fotis Karagiannis
  • Field Details

    • DEFAULT_PARALLELISM

      public static final int DEFAULT_PARALLELISM
      Default parallelism value
    • DEFAULT_RADIUS

      public static final int DEFAULT_RADIUS
      Default constructor radius
      See Also:
  • Constructor Details

    • OverlappingClustering

      public OverlappingClustering(Graph<V,E> graph, ThreadPoolExecutor executor, int radius)
      Create a new clustering algorithm
      Parameters:
      graph - the given graph
      executor - the executor that will be used for parallelization
      radius - the limit on path length for the egonets
    • OverlappingClustering

      public OverlappingClustering(Graph<V,E> graph, int parallelism, int radius)
    • OverlappingClustering

      public OverlappingClustering(Graph<V,E> graph, int k)
      Create a new clustering algorithm with default radius and parallelism
      Parameters:
      graph - the given graph
      k - the desired number of clusters
  • Method Details