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 Classes Modifier and Type Class Description static classClusteringAlgorithmProvider.ProvidingAlgorithmClustering algorithms thatClusteringAlgorithmProviderknows how to provide.
-
Constructor Summary
Constructors Constructor Description ClusteringAlgorithmProvider(String algorithm, Map<String,String> params, org.apache.commons.math3.random.JDKRandomGenerator random)Create an instance of this utility class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jgrapht.alg.interfaces.ClusteringAlgorithm<V>apply(org.jgrapht.Graph<V,E> graph)protected Stringnormalize(String algorithm)Normalize the name of the requested algorithm.
-
-
-
Constructor Detail
-
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
-
-