An implementation of the maxflow algorithm by Yuri Boykov and Vladimir Kolmogorov.