I am trying to implement the Hopcroft Karp algorithm in Python using networkx as graph representation.
Currently I am as far as this:
#Algorithms for
In python there is a package for this algorithm. HopcroftKarp, you can directly use that package for your implementation.