Class SimplifiedWatset.Builder<V,​E>

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • build

        public SimplifiedWatset<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,​SimplifiedWatset<V,​E>>
        Parameters:
        graph - the graph
        Returns:
        a fully-configured clustering algorithm
      • setLocal

        public SimplifiedWatset.Builder<V,​E> setLocal​(Function<org.jgrapht.Graph<V,​E>,​Clustering<V>> local)
        Set the local clustering algorithm supplier.
        Parameters:
        local - the local clustering algorithm supplier
        Returns:
        the builder
      • setLocalBuilder

        public SimplifiedWatset.Builder<V,​E> setLocalBuilder​(ClusteringBuilder<V,​E,​?> localBuilder)
        Set the local clustering algorithm builder.
        Parameters:
        localBuilder - the local clustering algorithm builder
        Returns:
        the builder
      • setGlobal

        public SimplifiedWatset.Builder<V,​E> setGlobal​(Function<org.jgrapht.Graph<Sense<V>,​org.jgrapht.graph.DefaultWeightedEdge>,​Clustering<Sense<V>>> global)
        Set the global clustering algorithm supplier.
        Parameters:
        global - the global clustering algorithm supplier
        Returns:
        the builder
      • setGlobalBuilder

        public SimplifiedWatset.Builder<V,​E> setGlobalBuilder​(ClusteringBuilder<Sense<V>,​org.jgrapht.graph.DefaultWeightedEdge,​?> globalBuilder)
        Set the global clustering algorithm builder.
        Parameters:
        globalBuilder - the global clustering algorithm builder
        Returns:
        the builder