An implementation of the maxflow algorithm.
