Module org.jgrapht.core
Package org.jgrapht.alg.interfaces
Interface ClusteringAlgorithm.Clustering<V>
- Type Parameters:
V
- the graph vertex type
- All Known Implementing Classes:
ClusteringAlgorithm.ClusteringImpl
- Enclosing interface:
- ClusteringAlgorithm<V>
A clustering. The clusters are integers starting from $0$.
-
Method Summary
Modifier and TypeMethodDescriptionGet the clusters.int
Get the number of clusters.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getNumberClusters
int getNumberClusters()Get the number of clusters.- Returns:
- the number of clusters
-
getClusters
Get the clusters.- Returns:
- a list of clusters
-