Computes the Max Flow. The only problem is that I cannot shutdown the graph