Multiperiod Network Flows for Water Resource Systems