I am having a bipartite graph with N nodes in one side and almost 100 in other side. Now i need to count the matchings such that each node in first part is having a link to some node in other part such that no two nodes in first part matches to same node in second part.(Just like one job can be assigned to one applicant only)
Now I know that finding this count is not easy and is #P-hard problem ( from link : https://cs.stackexchange.com/questions/19924/counting-and-finding-all-perfect-maximum-matchings-in-general-graphs )
But what can be the brute solution to do so ?Can someone please explain with some code or pseudocode.
Assume input is like we have X pairs showing u is connected to v
If N=2 and X=4 and pairs be (1,1),(1,2),(2,3),(2,4).