Package org.nlpub.watset.graph
Class MaxMax.Implementation<V,E>
- java.lang.Object
-
- org.nlpub.watset.graph.MaxMax.Implementation<V,E>
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jgrapht.Graph<V,org.jgrapht.graph.DefaultEdge>digraphThe directed graph.protected org.jgrapht.Graph<V,E>graphThe graph.protected Map<V,Set<V>>maximalsThe map of nodes to their maximal affinity nodes.protected Map<V,Boolean>rootsThe map of root and non-root nodes.
-
Constructor Summary
Constructors Constructor Description Implementation(org.jgrapht.Graph<V,E> graph)Create an instance of the MaxMax clustering algorithm implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaxMaxClustering<V>compute()Perform clustering with MaxMax.protected List<Set<V>>extractClusters()Extract clusters by traversing from the root nodes.
-
-
-
Field Detail
-
digraph
protected final org.jgrapht.Graph<V,org.jgrapht.graph.DefaultEdge> digraph
The directed graph.
-
-
Method Detail
-
compute
public MaxMaxClustering<V> compute()
Perform clustering with MaxMax.- Returns:
- the clustering
-
-