Class MarkovClustering.Builder<V,​E>

    • Field Detail

      • E

        public static final int E
        The default value of the expansion parameter.
        See Also:
        Constant Field Values
      • R

        public static final double R
        The default value of the inflation parameter.
        See Also:
        Constant Field Values
      • ITERATIONS

        public static final int ITERATIONS
        The default number of Markov Clustering iterations.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • build

        public MarkovClustering<V,​E> build​(org.jgrapht.Graph<V,​E> graph)
        Description copied from interface: ClusteringBuilder
        Construct an instance of the clustering algorithm with the parameters specified in the builder.
        Specified by:
        build in interface ClusteringBuilder<V,​E,​MarkovClustering<V,​E>>
        Parameters:
        graph - the graph
        Returns:
        a fully-configured clustering algorithm
      • setE

        public MarkovClustering.Builder<V,​E> setE​(int e)
        Set the expansion parameter.
        Parameters:
        e - the expansion parameter
        Returns:
        the builder
      • setR

        public MarkovClustering.Builder<V,​E> setR​(double r)
        Set the inflation parameter.
        Parameters:
        r - the inflation parameter
        Returns:
        the builder
      • setIterations

        public MarkovClustering.Builder<V,​E> setIterations​(int iterations)
        Set the maximal number of iterations.
        Parameters:
        iterations - the maximal number of iterations
        Returns:
        the builder