Create a graph given in the above diagram
graph = [ [ 0 , 16 , 13 , 0 , 0 , 0 ] , [ 0 , 0 , 10 , 12 , 0 , 0 ] , [ 0 , 4 , 0 , 0 , 14 , 0 ] , [ 0 , 0 , 9 , 0 , 0 , 20 ] , [ 0 , 0 , 0 , 7 , 0 , 4 ] , [ 0 , 0 , 0 , 0 , 0 , 0 ] ] NEW_LINE g = Graph ( graph ) NEW_LINE source = 0 ; sink = 5 NEW_LINE print ( " The ▁ maximum ▁ possible ▁ flow ▁ is ▁ % d ▁ " % g . FordFulkerson ( source , sink ) ) NEW_LINE