Class ClusteringAlgorithmProvider<V,​E>

  • Type Parameters:
    V - the type of nodes in the graph
    E - the type of edges in the graph
    All Implemented Interfaces:
    Function<org.jgrapht.Graph<V,​E>,​org.jgrapht.alg.interfaces.ClusteringAlgorithm<V>>, ClusteringAlgorithmBuilder<V,​E,​org.jgrapht.alg.interfaces.ClusteringAlgorithm<V>>

    public class ClusteringAlgorithmProvider<V,​E>
    extends Object
    implements ClusteringAlgorithmBuilder<V,​E,​org.jgrapht.alg.interfaces.ClusteringAlgorithm<V>>
    A utility class that creates instances of the graph clustering algorithms.
    • Constructor Detail

      • ClusteringAlgorithmProvider

        public ClusteringAlgorithmProvider​(String algorithm,
                                           Map<String,​String> params,
                                           Random random)
        Create an instance of this utility class.
        Parameters:
        algorithm - the algorithm identifier
        params - the parameter map for the algorithm
        random - the random number generator
    • Method Detail

      • apply

        public org.jgrapht.alg.interfaces.ClusteringAlgorithm<V> apply​(org.jgrapht.Graph<V,​E> graph)
        Specified by:
        apply in interface Function<V,​E>