V - the graph vertex typeE - the graph edge typepublic class MaximumWeightBipartiteMatching<V,E> extends Object implements MatchingAlgorithm<V,E>
MatchingAlgorithm.Matching<V,E>, MatchingAlgorithm.MatchingImpl<V,E>DEFAULT_EPSILON| Constructor and Description |
|---|
MaximumWeightBipartiteMatching(Graph<V,E> graph,
Set<V> partition1,
Set<V> partition2)
Construct a new instance of the algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
MatchingAlgorithm.Matching<V,E> |
getMatching()
Compute a matching for a given graph.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeMatchingpublic MaximumWeightBipartiteMatching(Graph<V,E> graph, Set<V> partition1, Set<V> partition2)
graph - the input graphpartition1 - the first partition of the vertex setpartition2 - the second partition of the vertex setIllegalArgumentException - if the graph is not undirectedpublic MatchingAlgorithm.Matching<V,E> getMatching()
getMatching in interface MatchingAlgorithm<V,E>Copyright © 2017. All rights reserved.