Package org.nlpub.watset.graph
Class MarkovClusteringExternal.Builder<V,E>
- java.lang.Object
-
- org.nlpub.watset.graph.MarkovClusteringExternal.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>,MarkovClusteringExternal<V,E>>,ClusteringAlgorithmBuilder<V,E,MarkovClusteringExternal<V,E>>
- Enclosing class:
- MarkovClusteringExternal<V,E>
public static class MarkovClusteringExternal.Builder<V,E> extends Object implements ClusteringAlgorithmBuilder<V,E,MarkovClusteringExternal<V,E>>
Builder forMarkovClusteringExternal.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarkovClusteringExternal<V,E>apply(org.jgrapht.Graph<V,E> graph)MarkovClusteringExternal.Builder<V,E>setPath(Path path)Set the path to the MCL binary.MarkovClusteringExternal.Builder<V,E>setR(double r)Set the inflation parameter.MarkovClusteringExternal.Builder<V,E>setThreads(int threads)Set the number of threads.
-
-
-
Field Detail
-
R
public static final int R
The default value of the inflation parameter.- See Also:
- Constant Field Values
-
THREADS
public static final int THREADS
The default number of threads.- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
public MarkovClusteringExternal<V,E> apply(org.jgrapht.Graph<V,E> graph)
-
setPath
public MarkovClusteringExternal.Builder<V,E> setPath(Path path)
Set the path to the MCL binary.- Parameters:
path- the path to the MCL binary- Returns:
- the builder
-
setR
public MarkovClusteringExternal.Builder<V,E> setR(double r)
Set the inflation parameter.- Parameters:
r- the inflation parameter- Returns:
- the builder
-
setThreads
public MarkovClusteringExternal.Builder<V,E> setThreads(int threads)
Set the number of threads.- Parameters:
threads- the number of threads- Returns:
- the builder
-
-