Interface MinimumCostFlow.Builder

    • Method Detail

      • build

        MinimumCostFlow build()
        Create a new algorithm object for minimum cost flow computation.
        Returns:
        a new minimum cost flow algorithm
      • integerNetwork

        MinimumCostFlow.Builder integerNetwork​(boolean enable)
        Enable/disable integer network (capacities, flows, vertices supplies and edges flow lower bound).

        More efficient and accurate implementations may be supported if the network is known to be integral. If the option is enabled, non-integer networks will not be supported by the built algorithms.

        The default value of this option is false.

        Parameters:
        enable - if true, algorithms built by this builder will support integer networks only
        Returns:
        this builder
      • integerCosts

        MinimumCostFlow.Builder integerCosts​(boolean enable)
        Enable/disable integer costs.

        More efficient and accurate implementations may be supported if the cost function is known to be integral. If the option is enabled, non-integer cost functions will not be supported by the built algorithms.

        The default value of this option is false.

        Parameters:
        enable - if true, algorithms built by this builder will support integer cost functions only
        Returns:
        this builder