Package com.jgalgo.alg.flow
Interface MinimumCostFlow.Builder
- All Superinterfaces:
AlgorithmBuilderBase
- Enclosing interface:
MinimumCostFlow
A builder for
MinimumCostFlow
objects.- Author:
- Barak Ugav
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a new algorithm object for minimum cost flow computation.integerCosts
(boolean enable) Enable/disable integer costs.integerNetwork
(boolean enable) Enable/disable integer network (capacities, flows, vertices supplies and edges flow lower bound).Methods inherited from interface com.jgalgo.alg.common.AlgorithmBuilderBase
setOption
-
Method Details
-
build
MinimumCostFlow build()Create a new algorithm object for minimum cost flow computation.- Returns:
- a new minimum cost flow algorithm
-
integerNetwork
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
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
-