Package com.jgalgo.alg.match
Class MatchingWeightedBipartiteSssp
java.lang.Object
com.jgalgo.alg.match.MatchingAlgoAbstract
com.jgalgo.alg.match.MatchingAlgoAbstractBasedMaximum
com.jgalgo.alg.match.MatchingWeightedBipartiteSssp
- All Implemented Interfaces:
MatchingAlgo
Maximum weighted matching algorithm using
ShortestPathSingleSource for bipartite graphs.
The running time of this algorithm is \(O(m n + n^2 \log n)\) and it uses linear space. If a different
ShortestPathSingleSource algorithm is provided using setSsspAlgo(ShortestPathSingleSource) the
running time will be \(O(n)\) times the running time of the shortest path algorithm on a graph of size \(O(n)\).
- Author:
- Barak Ugav
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jgalgo.alg.match.MatchingAlgo
MatchingAlgo.Builder -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new maximum weighted matching object. -
Method Summary
Modifier and TypeMethodDescriptionvoidSet theShortestPathSingleSourcealgorithm used by this algorithm.Methods inherited from class com.jgalgo.alg.match.MatchingAlgoAbstract
computeMaximumMatching, computeMaximumPerfectMatching, computeMinimumMatching, computeMinimumPerfectMatching
-
Constructor Details
-
MatchingWeightedBipartiteSssp
public MatchingWeightedBipartiteSssp()Create a new maximum weighted matching object.
-
-
Method Details
-
setSsspAlgo
Set theShortestPathSingleSourcealgorithm used by this algorithm.The shortest path algorithm should support non negative floating points weights. The default implementation uses Dijkstra's algorithm.
- Parameters:
algo- an shortest path algorithm
-