Network Flow Problems in Constraint Programming