Maximum Flow algorithm, where the barred streets equates to know what are the cuts.