(seed = 722652)
Suppose that you are computing a max flow from the source vertex A to the
sink vertex J in the flow network given below:
edge flow / capacity
------------------------
A->B 15 / 15
A->F 12 / 17
A->G 11 / 11
B->C 10 / 19
B->G 5 / 5
C->D 19 / 19
C->G 0 / 7
D->E 5 / 5
D->I 16 / 16
D->J 3 / 12
E->J 5 / 14
F->G 12 / 16
G->H 28 / 28
H->C 9 / 11
H->D 5 / 17
H->I 14 / 14
I->J 30 / 31
Here is a graphical representation of the same flow network:
(A)------15/15----->(B)------10/19----->(C)------19/19----->(D)-------5/5------>(E)
|\ | /^ ^|\ |
| \ | / | / | \ |
| \ | / | / | \ |
| \ | / | / | \ |
| \ | / | / | \ |
| \ | / | / | \ |
| \ | / | / | \ |
| \ | / | / | \ |
| \ | / | / | \ |
12/17 11/11 5/5 0/7 9/11 5/17 16/16 3/12 5/14
| \ | / | / | \ |
| \ | / | / | \ |
| \ | / | / | \ |
| \ | / | / | \ |
| \ | / | / | \ |
| \ | / | / | \ |
| \ | / | / | \ |
| \ | / | / | \ |
v vvv |/ v vv
(F)------12/16----->(G)------28/28----->(H)------14/14----->(I)------30/31----->(J)
Starting from the given flow (of value 38), give the sequence of vertices in the
next (and final) augmenting path discovered by the Ford-Fulkerson algorithm.