Network flow problem as described here, but solving it with Edmon Karp's algorithmn
Video
Sure go ahead.
Fixed in #530