A DFS based recursive function that returns true if a matching for vertex u is possible.
A DFS based recursive function that returns true if a matching for vertex u is possible.
vertex u to be check, whether matching is possible of u to any unmatched v
array of vertex v, to keep track of whether v is already seen by some other u
array which contain information of vertex v is assigned to vertex u
Returns maximum number of matching from M to N.
Returns maximum number of matching from M to N. The value of matchR(i) is the applicant number assigned to job i, the value -1 indicates nobody is assigned.
The
BipartiteMatching
class provides an implementation of finding maximal Bipartite Matching.http://www.geeksforgeeks.org/maximum-bipartite-matching/