What does flow conservation mean in a network flow model, and why is it a necessary constraint for the model to represent real-world routing problems?
Think about your answer, then reveal below.
Model answer: Flow conservation means that at every internal vertex (every node except source and sink), the total flow on incoming edges equals the total flow on outgoing edges. It is necessary because in any physical routing problem — traffic, data packets, water pipes, goods in supply chains — material doesn't spontaneously appear or disappear at intermediate nodes. What flows into a junction must flow out. Without conservation, the model could 'create' flow at intermediate nodes, making the computed flow meaningless for describing real systems.
Conservation is what gives network flows their power as models. It abstracts away the specifics of what is flowing and captures the universal constraint that resources are neither created nor destroyed in transit. The single exception — the source produces flow and the sink absorbs it — corresponds directly to the origin and destination in the real problem. This also means the value of a flow (total leaving source) must equal total entering sink, a consequence of conservation applied globally.