Class NetworkSimplex.Builder<V,​E,​T extends NetworkSimplex<V,​E>,​B extends NetworkSimplex.Builder<V,​E,​T,​B>>

  • Enclosing class:
    NetworkSimplex<V,​E>

    public static class NetworkSimplex.Builder<V,​E,​T extends NetworkSimplex<V,​E>,​B extends NetworkSimplex.Builder<V,​E,​T,​B>>
    extends Object
    • Constructor Detail

      • Builder

        protected Builder​(org.jgrapht.Graph<LV<V>,​LE<V,​E>> svGraph)
    • Method Detail

      • self

        protected B self()
        Returns:
        this builder cast to type B
      • weightFunction

        public B weightFunction​(Function<LE<V,​E>,​Integer> weightFunction)
        Parameters:
        weightFunction -
        Returns:
        this Builder
      • separationFunction

        public B separationFunction​(Function<LE<V,​E>,​Integer> separationFunction)
        Parameters:
        separationFunction -
        Returns:
        this Builder
      • build

        public T build()
        Returns:
        the Builder with its set parameters