Description: |
Implementation of hopcroft-karp algorithm in python. Hopcroft-Karp bipartite max-cardinality matching and max independent set. Takes as input a bipartite graph in a variation of Guido van Rossum’s dictionary-of-lists format, and outputs both a maximum matching (largest possible set of nonadjacent edges) and a maximum independent set (largest possible set of nonadjacent vertices). The running time in the worst case is O(E sqrt(V)) but for many graphs it runs faster due to doing fewer than the worst case number of iterations |