Module org.jgrapht.core
Package org.jgrapht.alg.interfaces
Class ClusteringAlgorithm.ClusteringImpl<V>
java.lang.Object
org.jgrapht.alg.interfaces.ClusteringAlgorithm.ClusteringImpl<V>
- Type Parameters:
V- the graph vertex type
- All Implemented Interfaces:
Serializable,Iterable<Set<V>>,ClusteringAlgorithm.Clustering<V>
- Enclosing interface:
- ClusteringAlgorithm<V>
public static class ClusteringAlgorithm.ClusteringImpl<V>
extends Object
implements ClusteringAlgorithm.Clustering<V>, Serializable
Default implementation of the clustering interface.
- See Also:
-
Constructor Details
-
ClusteringImpl
Construct a new clustering.- Parameters:
clusters- clusters
-
-
Method Details
-
getNumberClusters
public int getNumberClusters()Description copied from interface:ClusteringAlgorithm.ClusteringGet the number of clusters.- Specified by:
getNumberClustersin interfaceClusteringAlgorithm.Clustering<V>- Returns:
- the number of clusters
-
getClusters
Description copied from interface:ClusteringAlgorithm.ClusteringGet the clusters.- Specified by:
getClustersin interfaceClusteringAlgorithm.Clustering<V>- Returns:
- a list of clusters
-
toString
-
iterator
-