Watch this Author's files
Maybe I'm too dumb... but when I just copy the example code, it doesn't work already. Seems like I have to specified the 4th argument, which I thought it's not necessary.
I just copy the example code in your max_flow.m and below is the error:
??? Undefined function or method 'max_flow_mex' for input arguments of type 'double'.
Error in ==> max_flow at 78
flowval = max_flow_mex(A,u,v,lower(options.algname));