Class ComponentsClustering<V,​E>

  • Type Parameters:
    V - the type of nodes in the graph
    E - the type of edges in the graph
    All Implemented Interfaces:
    Clustering<V>

    public class ComponentsClustering<V,​E>
    extends Object
    implements Clustering<V>
    A trivial clustering algorithm that treats every connected component as a cluster.
    • Constructor Detail

      • ComponentsClustering

        public ComponentsClustering​(org.jgrapht.Graph<V,​E> graph)
        Set up the trivial clustering algorithm that treats every connected component as a cluster.
        Parameters:
        graph - the graph
    • Method Detail

      • fit

        public void fit()
        Description copied from interface: Clustering
        Run the algorithm to induce the parameters of the clusters.
        Specified by:
        fit in interface Clustering<V>