Package org.nlpub.watset.graph
Class Watset.Builder<V,E>
- java.lang.Object
-
- org.nlpub.watset.graph.Watset.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>,Watset<V,E>>,ClusteringAlgorithmBuilder<V,E,Watset<V,E>>
public static class Watset.Builder<V,E> extends Object implements ClusteringAlgorithmBuilder<V,E,Watset<V,E>>
Builder forWatset.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Watset<V,E>apply(org.jgrapht.Graph<V,E> graph)Watset.Builder<V,E>setGlobal(ClusteringAlgorithmBuilder<Sense<V>,org.jgrapht.graph.DefaultWeightedEdge,?> global)Set the global clustering algorithm supplier.Watset.Builder<V,E>setLocal(ClusteringAlgorithmBuilder<V,E,?> local)Set the local clustering algorithm supplier.
-
-
-
Method Detail
-
setLocal
public Watset.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 Watset.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
-
-