Can anyone please recommend a way to efficiently recompute maxflow in the flow network if one edge of capacity one is deleted?
Theoretically, I know the linear time algorithm, but how to do it really fast in python?
I use igraph
package to compute maxflow. I think that if I just delete the edge from graph and call g.maxflow()
, then it will start from scratch.
I would be happy even if there is a nice way to do it in C.