min cut code
min cut result directed