kactl
kactl copied to clipboard
Improve MCMF
@ecnerwala generously provided the following: https://codeforces.com/contest/1178/submission/57573815
The current implementation does not support double edges. I propuse the following: https://github.com/RealA10N/hactl/blob/main/content/graph/MinCostMaxFlow.h Which is tested to work with negative edges, and double edges. Performence worst (as expected) but not far behind the current implementation. It also contains the right time complexity (related to #217)