Package org.nlpub.watset.graph
Class SingletonClustering<V,E>
- java.lang.Object
-
- org.nlpub.watset.graph.SingletonClustering<V,E>
-
- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph
- All Implemented Interfaces:
org.jgrapht.alg.interfaces.ClusteringAlgorithm<V>
public class SingletonClustering<V,E> extends Object implements org.jgrapht.alg.interfaces.ClusteringAlgorithm<V>
A trivial clustering algorithm that puts every node in a separate cluster.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSingletonClustering.Builder<V,E>Builder forSingletonClustering.
-
Constructor Summary
Constructors Constructor Description SingletonClustering(org.jgrapht.Graph<V,E> graph)Set up the trivial clustering algorithm that puts every node in a separate cluster.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V,E>
SingletonClustering.Builder<V,E>builder()Create a builder.org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering<V>getClustering()
-
-
-
Method Detail
-
builder
public static <V,E> SingletonClustering.Builder<V,E> builder()
Create a builder.- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph- Returns:
- a builder
-
-