Package org.nlpub.watset.graph
Class SimplifiedWatset.Builder<V,E>
- java.lang.Object
-
- org.nlpub.watset.graph.SimplifiedWatset.Builder<V,E>
-
- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph
- All Implemented Interfaces:
Function<org.jgrapht.Graph<V,E>,SimplifiedWatset<V,E>>,ClusteringAlgorithmBuilder<V,E,SimplifiedWatset<V,E>>
- Enclosing class:
- SimplifiedWatset<V,E>
public static class SimplifiedWatset.Builder<V,E> extends Object implements ClusteringAlgorithmBuilder<V,E,SimplifiedWatset<V,E>>
Builder forSimplifiedWatset.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimplifiedWatset<V,E>apply(org.jgrapht.Graph<V,E> graph)SimplifiedWatset.Builder<V,E>setGlobal(ClusteringAlgorithmBuilder<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge,?> global)Set the global clustering algorithm supplier.SimplifiedWatset.Builder<V,E>setLocal(ClusteringAlgorithmBuilder<V,E,?> local)Set the local clustering algorithm supplier.
-
-
-
Method Detail
-
apply
public SimplifiedWatset<V,E> apply(org.jgrapht.Graph<V,E> graph)
-
setLocal
public SimplifiedWatset.Builder<V,E> setLocal(ClusteringAlgorithmBuilder<V,E,?> local)
Set the local clustering algorithm supplier.- Parameters:
local- the local clustering algorithm supplier- Returns:
- the builder
-
setGlobal
public SimplifiedWatset.Builder<V,E> setGlobal(ClusteringAlgorithmBuilder<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge,?> global)
Set the global clustering algorithm supplier.- Parameters:
global- the global clustering algorithm supplier- Returns:
- the builder
-
-