Documentation of 'org.jgrapht.alg.HopcroftKarpBipartiteMatching' Java class
HopcroftKarpBipartiteMatching
org.jgrapht.alg

Class HopcroftKarpBipartiteMatching<V,E>

  • Type Parameters:
    V - the graph vertex type
    E - the graph edge type
    All Implemented Interfaces:
    MatchingAlgorithm<V,E>

    Deprecated. 

    @Deprecated
    public class HopcroftKarpBipartiteMatching<V,E>
    extends java.lang.Object
    implements MatchingAlgorithm<V,E>
    This class is an implementation of the Hopcroft-Karp algorithm which finds a maximum matching in an undirected simple bipartite graph. 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_algorithm Note: the behavior of this class is undefined when the input isn't a bipartite graph, i.e. when there are edges within a single partition!
    • Constructor Detail

      • HopcroftKarpBipartiteMatching

        public HopcroftKarpBipartiteMatching(UndirectedGraph<V,E> graph,
                                             java.util.Set<V> partition1,
                                             java.util.Set<V> partition2)
        Deprecated. 
        Create a new instance of the Hopcroft-Karp algorithm for the computation of maximum matchings in bipartite graphs.
        Parameters:
        graph - the input graph
        partition1 - vertex set of one of the partitions of the bipartite graph
        partition2 - vertex set of the other partition of the bipartite graph

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.