Graph Theory37 sections · 1633 units
Open in Course

Vertex Capacities

(Split nodes into in/out)

Some problems impose capacity limits on nodes, not edges. For example, a node can handle at most cc units of flow. Convert vertex capacity to edge capacity: split each node vv into two nodes vinv_{\text{in}} and voutv_{\text{out}}.

Add an edge (vin,vout)(v_{\text{in}}, v_{\text{out}}) with capacity cc. All incoming edges go to vinv_{\text{in}}, all outgoing edges leave from voutv_{\text{out}}. This enforces the vertex capacity constraint.