Interface MatchingAlgo.Builder

All Superinterfaces:
AlgorithmBuilderBase
Enclosing interface:
MatchingAlgo

public static interface MatchingAlgo.Builder extends AlgorithmBuilderBase
A builder for MatchingAlgo objects.
Author:
Barak Ugav
See Also:
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    bipartite(boolean bipartite)
    Set whether the matching algorithms built by this builder should only support bipartite graphs.
    Create a new matching algorithm object.
    cardinality(boolean cardinality)
    Set whether the matching algorithms built by this builder should support only maximum cardinality matching.

    Methods inherited from interface com.jgalgo.alg.common.AlgorithmBuilderBase Link icon

    setOption
  • Method Details Link icon

    • build Link icon

      MatchingAlgo build()
      Create a new matching algorithm object.
      Returns:
      a new matching algorithm
    • bipartite Link icon

      MatchingAlgo.Builder bipartite(boolean bipartite)
      Set whether the matching algorithms built by this builder should only support bipartite graphs.

      If the input graphs are known to be bipartite, simpler or more efficient algorithm may exists.

      Parameters:
      bipartite - if true, the created matching algorithms will support bipartite graphs only
      Returns:
      this builder
    • cardinality Link icon

      MatchingAlgo.Builder cardinality(boolean cardinality)
      Set whether the matching algorithms built by this builder should support only maximum cardinality matching.

      For cardinality weights, simpler or more efficient algorithm may exists.

      Parameters:
      cardinality - if true, the created matching algorithms will support maximum cardinality matching only
      Returns:
      this builder