Class ClusteringAlgorithm.ClusteringImpl<V>

java.lang.Object
org.jgrapht.alg.interfaces.ClusteringAlgorithm.ClusteringImpl<V>
Type Parameters:
V - the graph vertex type
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<java.util.Set<V>>, ClusteringAlgorithm.Clustering<V>
Enclosing interface:
ClusteringAlgorithm<V>

public static class ClusteringAlgorithm.ClusteringImpl<V>
extends java.lang.Object
implements ClusteringAlgorithm.Clustering<V>, java.io.Serializable
Default implementation of the clustering interface.
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    ClusteringImpl​(java.util.List<java.util.Set<V>> clusters)
    Construct a new clustering.
  • 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.
    java.util.Iterator<java.util.Set<V>> iterator()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator