V
- the graph vertex typeE
- the graph edge typeHopcroftKarpMaximumCardinalityBipartiteMatching
@Deprecated public class HopcroftKarpBipartiteMatching<V,E> extends Object implements MatchingAlgorithm<V,E>
EdmondsMaximumCardinalityMatching
instead. The
algorithm runs in O(|E|*√|V|) time. The original algorithm is described in: Hopcroft, John E.;
Karp, Richard M. (1973), "An n5/2 algorithm for maximum matchings in bipartite graphs", SIAM
Journal on Computing 2 (4): 225–231, doi:10.1137/0202019 A coarse overview of the algorithm is
given in: http://en.wikipedia.org/wiki/Hopcroft-Karp_algorithmMatchingAlgorithm.Matching<V,E>, MatchingAlgorithm.MatchingImpl<V,E>
DEFAULT_EPSILON
Constructor and Description |
---|
HopcroftKarpBipartiteMatching(Graph<V,E> graph,
Set<V> partition1,
Set<V> partition2)
Deprecated.
Construct a new instance of the Hopcroft-Karp algorithm for the computation of maximum
matchings in bipartite graphs.
|
Modifier and Type | Method and Description |
---|---|
MatchingAlgorithm.Matching<V,E> |
getMatching()
Deprecated.
Compute a matching for a given graph.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeMatching
public HopcroftKarpBipartiteMatching(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 setpublic MatchingAlgorithm.Matching<V,E> getMatching()
getMatching
in interface MatchingAlgorithm<V,E>
Copyright © 2017. All rights reserved.