Jaehyeon
Heo
(Teddy)

Software Engineer
Tutorial 6 question 2 prompt

part (a)

If the original flow sends f(u,v)=c, keep every other edge the same and route that exact amount through the new vertex by setting f(u,x)=f(x,v)=c. Any feasible flow in G maps to a feasible one in G' with the same value, and vice versa, so the maximum-flow value is unchanged.

part (b)

Replace every vertex vs,tv\neq s, t by two nodes vinv_{in} and voutv_{out}, add a single bridge edge (vin,vout)(v_{in},v_{out}) with capacity (v)\ell(v), send all original incoming edges into vinv_{in}, and all original outgoing edges out of voutv_{out} (keeping their original capacities). This enforces the vertex limit without explicitly storing it. If the original graph has nn vertices and mm edges, GG' ends up with n+(n2)=2n2n + (n-2) = 2n-2 vertices and m+(n2)m + (n-2) edges.