Mathematical Brain Growth
Adjust the flow in each pipe. Ensure In = Out for every node (except Source/Sink) and don't exceed capacity.