Package com.jgalgo
Interface ShortestPathAllPairs.Builder
-
- Enclosing interface:
- ShortestPathAllPairs
public static interface ShortestPathAllPairs.Builder
A builder forShortestPathAllPairs
objects.- Author:
- Barak Ugav
- See Also:
ShortestPathAllPairs.newBuilder()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ShortestPathAllPairs
build()
Create a new algorithm object for all pairs shortest paths computation.ShortestPathAllPairs.Builder
setCardinality(boolean cardinalityWeight)
Enable/disable the support for cardinality shortest paths only.default BuilderType
setOption(String key, Object value)
[TL;DR Don't call me!] Set an option.
-
-
-
Method Detail
-
build
ShortestPathAllPairs build()
Create a new algorithm object for all pairs shortest paths computation.- Returns:
- a new all pairs shortest paths algorithm
-
setCardinality
ShortestPathAllPairs.Builder setCardinality(boolean cardinalityWeight)
Enable/disable the support for cardinality shortest paths only.More efficient algorithm may exists for cardinality shortest paths. Note that if this option is enabled, ONLY cardinality shortest paths will be supported.
- Parameters:
cardinalityWeight
- iftrue
, only cardinality shortest paths will be supported by algorithms built by this builder- Returns:
- this builder
-
setOption
default BuilderType setOption(String key, Object value)
[TL;DR Don't call me!] Set an option.The builder might support different options to customize its implementation. These options never change the behavior of the algorithm, only its internal implementation. The possible options are not exposed as 'public' because they are not part of the API and may change in the future.
These options are mainly for debug and benchmark purposes.
- Parameters:
key
- the option keyvalue
- the option value- Returns:
- this builder
-
-