Network Flow Problems
Write conservation equations at each junction
A directed edge assigns a travel direction to a nonnegative flow. At a node with no storage, conservation means that total flow entering equals total flow leaving, measured in the same units over the same time interval. Use the arrows to decide which terms belong on each side of the equation.
Read the network
List every edge by its tail and head before writing equations. An external source enters the network; an external sink removes flow. An internal edge leaves one node and enters another, so it has opposite roles in those two node equations.
If you reverse an assumed edge direction, its signed contribution changes; when a flow is constrained to be nonnegative, keep its stated arrow and solve within that direction.
Write one balance for each node you need, using all branches at that node. Adding the node balances cancels each internal edge once as an inflow and once as an outflow. The remaining equality between total external supply and demand is a useful network check, although it does not replace checking individual junctions.
Worked example
Suppose a junction receives 31 L/min and sends 14 L/min through one pipe and u L/min through another. With no storage, 31=14+u, so u=17 L/min. This is a junction balance, not an assumption that the two outgoing pipes carry equal amounts.
If a separate downstream node receives u and another 6 L/min from outside, its total incoming flow is 23 L/min.
Its outgoing branches must sum to 23 L/min when it also has no storage. The same u appears as an outflow upstream and an inflow downstream; it is not a second external supply.
Capacity and free variables
A capacity is an upper limit on a particular edge, while nonnegativity is a lower limit of zero. When node equations leave a free variable, express each edge flow in terms of it and intersect every resulting bound.
That intersection is the feasible interval. Check both endpoints against every edge: a flow may satisfy conservation and still exceed a pipe or road limit.
A directed network has these edges (flow in L/min): external source→A: 16; A→B: x; A→C: 7; B also receives an external 4; B→sink: 13. There is no storage at A or B. What is x?
A source sends 18 units/min into a junction. Its two outgoing edges carry x and 18-x. The first has capacity 11 units/min and the second capacity 9 units/min. Both flows must be nonnegative. What is the feasible interval for x?