While a pipeline network may not be millions of miles from one end to another, it's certainly possible that the sum of the lengths of all the pipes in a tree-like network may be much greater than the length of the network's longest path.
Water infrastructure is almost entirely gravity fed. Even if we could justify the immense energy usage, we can't drive existing pipes and canals in reverse.