Interface ClusteringAlgorithm.Clustering<V>

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

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

    Modifier and Type Method Description
    java.util.List<java.util.Set<V>> getClusters()
    Get the clusters.
    int getNumberClusters()
    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

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