Creating an object flow
s = 0 NEW_LINE t = 4 NEW_LINE cap = [ [ 0 , 3 , 1 , 0 , 3 ] , [ 0 , 0 , 2 , 0 , 0 ] , [ 0 , 0 , 0 , 1 , 6 ] , [ 0 , 0 , 0 , 0 , 2 ] , [ 0 , 0 , 0 , 0 , 0 ] ] NEW_LINE cost = [ [ 0 , 1 , 0 , 0 , 2 ] , [ 0 , 0 , 0 , 3 , 0 ] , [ 0 , 0 , 0 , 0 , 0 ] , [ 0 , 0 , 0 , 0 , 1 ] , [ 0 , 0 , 0 , 0 , 0 ] ] NEW_LINE ret = getMaxFlow ( cap , cost , s , t ) NEW_LINE print ( " { } ▁ { } " . format ( ret [ 0 ] , ret [ 1 ] ) ) NEW_LINE