Warshall/MinCost Max Flow