Edmond karp algorithm


here we have to find minimum flow so why is it if(flow > residualCapacity[u][v]){ in line 66 and not flow < residualcapacity[u][v]

Hello @Vibhuti0206

Here we are finding the minimum value of the variable “flow” so if the value of “flow” is greater than residualCapacity[u][v] we will reduce its value to residualCapacity[u][v]

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.