Package com.gengoai.graph.clustering
Class ConnectedComponents<V>
- java.lang.Object
-
- com.gengoai.graph.clustering.ConnectedComponents<V>
-
- Type Parameters:
V
- the vertex type
- All Implemented Interfaces:
Clusterer<V>
,Serializable
public class ConnectedComponents<V> extends Object implements Clusterer<V>, Serializable
Implementation of Connected components.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectedComponents()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Set<V>>
cluster(Graph<V> g)
Clusters the vertices of the given graph and returns a list of clusters (sets).
-