Is there any package or how to do accumated pipes network

I tried to use spiderweb, but it seems only calculate minimal cost of shortest path, but I want the following:

where every point node I have a number, just like rainwater, and to calculate the lowest part accumated number