V
- the graph vertex typeE
- the graph edge typeKuhnMunkresMinimalWeightBipartitePerfectMatching
instead.@Deprecated public class KuhnMunkresMinimalWeightBipartitePerfectMatching<V,E> extends Object implements WeightedMatchingAlgorithm<V,E>
Assignment problem could be set as follows:
Given complete bipartite graph G = (S, T; E), such that |S| = |T|, and each edge has non-negative cost c(i, j), find perfect matching of minimal cost.
Modifier and Type | Class and Description |
---|---|
protected static class |
KuhnMunkresMinimalWeightBipartitePerfectMatching.KuhnMunkresMatrixImplementation<V,E>
Deprecated.
The actual implementation.
|
MatchingAlgorithm.Matching<E>, MatchingAlgorithm.MatchingImpl<E>
DEFAULT_EPSILON
Constructor and Description |
---|
KuhnMunkresMinimalWeightBipartitePerfectMatching(WeightedGraph<V,E> G,
List<? extends V> S,
List<? extends V> T)
Deprecated.
Construct a new instance of the algorithm.
|
Modifier and Type | Method and Description |
---|---|
MatchingAlgorithm.Matching<E> |
computeMatching()
Deprecated.
Compute a matching for a given graph.
|
Set<E> |
getMatching()
Deprecated.
Returns set of edges making up the matching
|
double |
getMatchingWeight()
Deprecated.
Returns weight of a matching found
|
public KuhnMunkresMinimalWeightBipartitePerfectMatching(WeightedGraph<V,E> G, List<? extends V> S, List<? extends V> T)
G
- target weighted bipartite graph to find matching inS
- first vertex partition of the target bipartite graphT
- second vertex partition of the target bipartite graphpublic Set<E> getMatching()
getMatching
in interface MatchingAlgorithm<V,E>
public double getMatchingWeight()
getMatchingWeight
in interface WeightedMatchingAlgorithm<V,E>
public MatchingAlgorithm.Matching<E> computeMatching()
computeMatching
in interface MatchingAlgorithm<V,E>
Copyright © 2017. All rights reserved.