The preceding residual graph has no path from s to t. Thus the algorithm terminates. The final flow
graph, which carries 11 units, is as follows:
9.12 Let T be the tree with root r, and children r1, r2, . . . , rk, which are the roots of T1, T2, . . . , Tk, which have
maximum incoming flow of c1, c2, . . . , ck, respectively. By the problem statement, we may take the
maximum incoming flow of r to be infinity. The recursive pseudo-method findMaxFlow( T, incomingCap )
finds the value of the maximum flow in T (finding the actual flow is a matter of bookkeeping); the flow is
else
{
totalFlow = 0;
for( each subtree $T_i$ of T )
{
childFlow = findMaxFlow( $T_i$, min( incomingCap, $c_i$
) );
totalFlow += childFlow;