A Hypergraph Approach to Water Resources System Analysis