Package com.jgalgo
Interface MaximumMatching.Builder
-
- Enclosing interface:
- MaximumMatching
public static interface MaximumMatching.Builder
A builder forMaximumMatching
objects.- Author:
- Barak Ugav
- See Also:
MaximumMatching.newBuilder()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MaximumMatching
build()
Create a new maximum matching algorithm object.MaximumMatching.Builder
setBipartite(boolean bipartite)
Set whether the maximum matching algorithms built by this builder should support only bipartite graphs.MaximumMatching.Builder
setCardinality(boolean cardinality)
Set whether the maximum matching algorithms built by this builder should support only maximum cardinality matching.default BuilderType
setOption(String key, Object value)
[TL;DR Don't call me!] Set an option.
-
-
-
Method Detail
-
build
MaximumMatching build()
Create a new maximum matching algorithm object.- Returns:
- a new maximum matching algorithm
-
setBipartite
MaximumMatching.Builder setBipartite(boolean bipartite)
Set whether the maximum matching algorithms built by this builder should support only bipartite graphs.If the input graphs are known to be bipartite, simpler or more efficient algorithm may exists.
- Parameters:
bipartite
- iftrue
, the created maximum matching algorithms will support bipartite graphs only- Returns:
- this builder
-
setCardinality
MaximumMatching.Builder setCardinality(boolean cardinality)
Set whether the maximum matching algorithms built by this builder should support only maximum cardinality matching.For cardinality weights, simpler or more efficient algorithm may exists.
- Parameters:
cardinality
- iftrue
, the created maximum matching algorithms will support maximum cardinality matching only- 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
-
-