Interface ClusteringAlgorithm.Clustering<V>

Type Parameters:
V - the graph vertex type
All Superinterfaces:
Iterable<Set<V>>
All Known Implementing Classes:
ClusteringAlgorithm.ClusteringImpl
Enclosing interface:
ClusteringAlgorithm<V>

public static interface ClusteringAlgorithm.Clustering<V> extends Iterable<Set<V>>
A clustering. The clusters are integers starting from $0$.
  • Method Details

    • getNumberClusters

      int getNumberClusters()
      Get the number of clusters.
      Returns:
      the number of clusters
    • getClusters

      List<Set<V>> getClusters()
      Get the clusters.
      Returns:
      a list of clusters