copy and paste from maxflow(in test). unfinished.
modify maxflow
.
delete comments
fix maxflow
fix maxflows