setup outline of maxflow