Package org.nlpub.watset.graph
Class MarkovClustering.Builder<V,E>
java.lang.Object
org.nlpub.watset.graph.MarkovClustering.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>, MarkovClustering<V, E>> ClusteringAlgorithmBuilder<V,E, MarkovClustering<V, E>>
- Enclosing class:
- MarkovClustering<V,
E>
public static class MarkovClustering.Builder<V,E>
extends Object
implements ClusteringAlgorithmBuilder<V,E,MarkovClustering<V,E>>
Builder for
MarkovClustering.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default value of the expansion parameter.static final intThe default number of Markov Clustering iterations.static final doubleThe default value of the inflation parameter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetE(int e) Set the expansion parameter.setIterations(int iterations) Set the maximal number of iterations.setR(double r) Set the inflation parameter.
-
Field Details
-
E
public static final int EThe default value of the expansion parameter.- See Also:
-
R
public static final double RThe default value of the inflation parameter.- See Also:
-
ITERATIONS
public static final int ITERATIONSThe default number of Markov Clustering iterations.- See Also:
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apply
-
setE
Set the expansion parameter.- Parameters:
e- the expansion parameter- Returns:
- the builder
-
setR
Set the inflation parameter.- Parameters:
r- the inflation parameter- Returns:
- the builder
-
setIterations
Set the maximal number of iterations.- Parameters:
iterations- the maximal number of iterations- Returns:
- the builder
-