Package com.jgalgo.alg
Interface MinimumCostFlow.Builder
-
- All Superinterfaces:
AlgorithmBuilderBase
- Enclosing interface:
- MinimumCostFlow
public static interface MinimumCostFlow.Builder extends AlgorithmBuilderBase
A builder forMinimumCostFlow
objects.- Author:
- Barak Ugav
- See Also:
MinimumCostFlow.builder()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MinimumCostFlow
build()
Create a new algorithm object for minimum cost flow computation.MinimumCostFlow.Builder
integerCosts(boolean enable)
Enable/disable integer costs.MinimumCostFlow.Builder
integerNetwork(boolean enable)
Enable/disable integer network (capacities, flows, vertices supplies and edges flow lower bound).-
Methods inherited from interface com.jgalgo.alg.AlgorithmBuilderBase
setOption
-
-
-
-
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
- iftrue
, 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
- iftrue
, algorithms built by this builder will support integer cost functions only- Returns:
- this builder
-
-