Package org.nlpub.watset.util
Class AlgorithmProvider<V,E>
- java.lang.Object
-
- org.nlpub.watset.util.AlgorithmProvider<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>,Clustering<V>>
public class AlgorithmProvider<V,E> extends Object implements Function<org.jgrapht.Graph<V,E>,Clustering<V>>
A utility class that creates instances of the graph clustering algorithms.
-
-
Constructor Summary
Constructors Constructor Description AlgorithmProvider(String algorithm)Create an instance of this utility class with empty parameter map.AlgorithmProvider(String algorithm, Map<String,String> params)Create an instance of this utility class.
-
-
-
Constructor Detail
-
AlgorithmProvider
public AlgorithmProvider(String algorithm)
Create an instance of this utility class with empty parameter map.- Parameters:
algorithm- the algorithm identifier
-
-