java.lang.Object
org.jgrapht.alg.clustering.OverlappingClustering<V,E>
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jgrapht.alg.interfaces.ClusteringAlgorithm
ClusteringAlgorithm.Clustering<V>, ClusteringAlgorithm.ClusteringImpl<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault parallelism valuestatic final intDefault constructor radius -
Constructor Summary
ConstructorsConstructorDescriptionOverlappingClustering(Graph<V, E> graph, int k) Create a new clustering algorithm with default radius and parallelismOverlappingClustering(Graph<V, E> graph, int parallelism, int radius) OverlappingClustering(Graph<V, E> graph, ThreadPoolExecutor executor, int radius) Create a new clustering algorithm -
Method Summary
Modifier and TypeMethodDescriptionComputes a clustering.
-
Field Details
-
DEFAULT_PARALLELISM
public static final int DEFAULT_PARALLELISMDefault parallelism value -
DEFAULT_RADIUS
public static final int DEFAULT_RADIUSDefault constructor radius- See Also:
-
-
Constructor Details
-
OverlappingClustering
Create a new clustering algorithm- Parameters:
graph- the given graphexecutor- the executor that will be used for parallelizationradius- the limit on path length for the egonets
-
OverlappingClustering
-
OverlappingClustering
Create a new clustering algorithm with default radius and parallelism- Parameters:
graph- the given graphk- the desired number of clusters
-
-
Method Details
-
getClustering
Description copied from interface:ClusteringAlgorithmComputes a clustering.- Specified by:
getClusteringin interfaceClusteringAlgorithm<V>- Returns:
- a clustering
-