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.Clustering
Get the number of clusters.- Specified by:
getNumberClusters
in interfaceClusteringAlgorithm.Clustering<V>
- Returns:
- the number of clusters
-
getClusters
Description copied from interface:ClusteringAlgorithm.Clustering
Get the clusters.- Specified by:
getClusters
in interfaceClusteringAlgorithm.Clustering<V>
- Returns:
- a list of clusters
-
toString
-
iterator
-