used maxflow 3.0.2