Package org.nlpub.watset.graph
Class SingletonClustering.Builder<V,E>
- java.lang.Object
-
- org.nlpub.watset.graph.SingletonClustering.Builder<V,E>
-
- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph
- All Implemented Interfaces:
ClusteringBuilder<V,E,SingletonClustering<V,E>>
- Enclosing class:
- SingletonClustering<V,E>
public static class SingletonClustering.Builder<V,E> extends Object implements ClusteringBuilder<V,E,SingletonClustering<V,E>>
Builder forSingletonClustering.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingletonClustering<V,E>build(org.jgrapht.Graph<V,E> graph)Construct an instance of the clustering algorithm with the parameters specified in the builder.Function<org.jgrapht.Graph<V,E>,Clustering<V>>provider()Construct a factory function that sets up the algorithm for the given graph.
-
-
-
Method Detail
-
build
public SingletonClustering<V,E> build(org.jgrapht.Graph<V,E> graph)
Description copied from interface:ClusteringBuilderConstruct an instance of the clustering algorithm with the parameters specified in the builder.- Specified by:
buildin interfaceClusteringBuilder<V,E,SingletonClustering<V,E>>- Parameters:
graph- the graph- Returns:
- a fully-configured clustering algorithm
-
provider
public Function<org.jgrapht.Graph<V,E>,Clustering<V>> provider()
Description copied from interface:ClusteringBuilderConstruct a factory function that sets up the algorithm for the given graph.- Specified by:
providerin interfaceClusteringBuilder<V,E,SingletonClustering<V,E>>- Returns:
- a factory function that sets up the algorithm for the given graph
-
-