Package org.nlpub.watset.util
Class ClusteringAlgorithmProvider<V,E>
java.lang.Object
org.nlpub.watset.util.ClusteringAlgorithmProvider<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>, org.jgrapht.alg.interfaces.ClusteringAlgorithm<V>> ClusteringAlgorithmBuilder<V,E, org.jgrapht.alg.interfaces.ClusteringAlgorithm<V>>
public class ClusteringAlgorithmProvider<V,E>
extends Object
implements ClusteringAlgorithmBuilder<V,E,org.jgrapht.alg.interfaces.ClusteringAlgorithm<V>>
A utility class that creates instances of the graph clustering algorithms.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumClustering algorithms thatClusteringAlgorithmProviderknows how to provide. -
Constructor Summary
ConstructorsConstructorDescriptionClusteringAlgorithmProvider(String algorithm, Map<String, String> params, org.apache.commons.math3.random.JDKRandomGenerator random) Create an instance of this utility class. -
Method Summary
-
Constructor Details
-
ClusteringAlgorithmProvider
public ClusteringAlgorithmProvider(String algorithm, Map<String, String> params, org.apache.commons.math3.random.JDKRandomGenerator random) Create an instance of this utility class.- Parameters:
algorithm- the algorithm identifierparams- the parameter map for the algorithmrandom- the random number generator
-
-
Method Details