Given undirected graph, all edges have weight 1; N, M are about 10^6 I need to find whether the flow between source and sink is bigger than some value X. X is quite small.
Using bfs until the flow is equal to X gives O(M*X) this is too slow for me.
Is there any quicker method to estimate flow?