The required flow rates through each of the pipes are therefore uniquely determined.

The weight of an edge in the graph is precisely this required flow rate.