You will be given a bipartite graph, each side have N nodes where N<=10^5. There will be M<=10^5 edges between these nodes. It is guranteed that the initial graph is given in such a way that the graph has exactly N matching. How many edges are there if I remove one of them the matching of the graph will be less than N? Here is the problem https://open.kattis.com/problems/justenoughbridges.
Any idea?
Auto comment: topic has been updated by FrozenBlood (previous revision, new revision, compare).
Not sure, but the idea is:
Finding SSC on the residual graph will be enough. If a edge in a SSC then it is deletable.
How do you get the residual graph for $$$N, M \leq 10^5$$$?