Given a graph, for every pair of vertices s,t find the max flow that can be sent from s to t, if every vertex and edge has unit capacity, and every edge an infinite (very big) negative cost, we’ll get the longest path from s to t. Since MCMF Is P, therefore P=NP. QED
If you can’t find the bug in the previous algorithm, send me my Millennium Prize.
When you try to find an augmenting path you apply dijkstra or something like that to find the minimum cost path, but with negative costs you would need to explore every possible path, right?
I think MCMF only works on graphs without negative cycles, and the algorithm does not guarantee that no negative cycles will be created from the original graph.