Package org.nlpub.watset.graph
Interface ClusteringBuilder<V,E,C extends Clustering<V>>
-
- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graphC- the type of clustering algorithm
- All Known Implementing Classes:
ChineseWhispers.Builder,ComponentsClustering.Builder,EmptyClustering.Builder,MarkovClustering.Builder,MarkovClusteringExternal.Builder,MaxMax.Builder,SimplifiedWatset.Builder,SingletonClustering.Builder,TogetherClustering.Builder,Watset.Builder
public interface ClusteringBuilder<V,E,C extends Clustering<V>>A builder for constructing theClusteringinstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Cbuild(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
C build(org.jgrapht.Graph<V,E> graph)
Construct an instance of the clustering algorithm with the parameters specified in the builder.- Parameters:
graph- the graph- Returns:
- a fully-configured clustering algorithm
-
provider
Function<org.jgrapht.Graph<V,E>,Clustering<V>> provider()
Construct a factory function that sets up the algorithm for the given graph.- Returns:
- a factory function that sets up the algorithm for the given graph
-
-