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
public class MatchingWeightedBipartiteSssp extends MatchingAlgoAbstractBasedMaximum
Maximum weighted matching algorithm usingShortestPathSingleSource
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 usingsetSsspAlgo(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
Constructors Constructor Description MatchingWeightedBipartiteSssp()
Create a new maximum weighted matching object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setSsspAlgo(ShortestPathSingleSource algo)
Set theShortestPathSingleSource
algorithm used by this algorithm.-
Methods inherited from class com.jgalgo.alg.match.MatchingAlgoAbstract
computeMaximumMatching, computeMaximumPerfectMatching, computeMinimumMatching, computeMinimumPerfectMatching
-
-
-
-
Method Detail
-
setSsspAlgo
public void setSsspAlgo(ShortestPathSingleSource algo)
Set theShortestPathSingleSource
algorithm 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
-
-