simple maxflow/mincut algorithm using nx & pysal