Computes the Max Flow of a Signal/Collect Graph