Class EmptyClustering<V>

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

    public class EmptyClustering<V>
    extends Object
    implements Clustering<V>
    A trivial clustering algorithm that returns no clusters.
    • Constructor Detail

      • EmptyClustering

        public EmptyClustering()
        Set up the empty clustering algorithm.
    • Method Detail

      • provider

        public static <V,​E> Function<org.jgrapht.Graph<V,​E>,​Clustering<V>> provider()
        A factory function that sets up the algorithm for the given graph.
        Type Parameters:
        V - the type of nodes in the graph
        E - the type of edges in the graph
        Returns:
        a factory function that sets up the algorithm for the given graph
      • 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>