The following flow algorithms only apply to networks, that are
directed graphs together with a source (a 0 in-degree vertex) and a
terminal (a 0 out-degree vertex).
maxflow g v1 v2 searchs the maximal flow from source v1 to
terminal v2 using the Goldberg algorithm. It returns the new
flows on each edges and the growth of the flow.
maxflow g v1 v2 searchs the maximal flow from source v1
to terminal v2 using the Ford-Fulkerson algorithm. It
returns the new flows on each edges and the growth of the
flow.