Package org.nlpub.watset.graph
Class MaxMaxClustering.MaxMaxClusteringImpl<V>
java.lang.Object
org.jgrapht.alg.interfaces.ClusteringAlgorithm.ClusteringImpl<V>
org.nlpub.watset.graph.MaxMaxClustering.MaxMaxClusteringImpl<V>
- Type Parameters:
V
- the type of nodes in the graph
- All Implemented Interfaces:
Serializable
,Iterable<Set<V>>
,org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering<V>
,MaxMaxClustering<V>
- Enclosing interface:
- MaxMaxClustering<V>
public static class MaxMaxClustering.MaxMaxClusteringImpl<V>
extends org.jgrapht.alg.interfaces.ClusteringAlgorithm.ClusteringImpl<V>
implements MaxMaxClustering<V>
Default implementation of the MaxMax clustering.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.nlpub.watset.graph.MaxMaxClustering
MaxMaxClustering.MaxMaxClusteringImpl<V>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jgrapht.alg.interfaces.ClusteringAlgorithm.ClusteringImpl
getClusters, getNumberClusters, iterator, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jgrapht.alg.interfaces.ClusteringAlgorithm.Clustering
getClusters, getNumberClusters
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Constructor Details
-
MaxMaxClusteringImpl
public MaxMaxClusteringImpl(List<Set<V>> clusters, org.jgrapht.Graph<V, org.jgrapht.graph.DefaultEdge> digraph, Set<V> roots) Construct a new MaxMax clustering.- Parameters:
clusters
- the clustersdigraph
- the directed graph representationroots
- the map of root and non-root nodes
-
-
Method Details
-
getDigraph
Description copied from interface:MaxMaxClustering
Return the directed graph representation of the input graph.- Specified by:
getDigraph
in interfaceMaxMaxClustering<V>
- Returns:
- a directed graph
-
getRoots
Description copied from interface:MaxMaxClustering
Return the set of root nodes.- Specified by:
getRoots
in interfaceMaxMaxClustering<V>
- Returns:
- a set of root nodes
-