Proof (equivalence of minimum cost flow and transport problem)
Conider a minimum cost flow problem.
WLOG we can set $\underline{m}_{ij} = 0$ by setting $x_{ij} = \underline{m}_{ij} + \tilde x_{ij}$ and expressing the problem in terms of $\tilde x_{ij}$: $$ \begin{align*} b_i + \sum_{(j,i)\in E} x_{ji} = \sum_{(i,j)\in E} x_{ij} &&&\iff && \left(b_i + \sum_{(j,i)\in E}\underline{m}_{ji} - \sum_{(i,j)\in E}\underline{m}_{ij}\right) + \sum_{(j,i)\in E} \tilde{x}_{ji} = \sum_{(i,j)\in E} \tilde x_{ij}, \\ \\ \underline{m}_{ij} \leq x_{ij} \leq \overline{m}_{ij} &&&\iff && 0 \leq \tilde x_{ij} \leq \overline{m}_{ij} - \underline{m}_{ij}. \end{align*} $$
We construct the following transport graph:
-
For each edge $(i,j)\in E$, create a supplier labelled $ij$ with supply $\overline{m}_{ij}$.
-
For each vertex $i\in V$, create a consumer labelled $i$ with demand $\sum_{k:\ (i,k)\in E} \overline{m}_{ik} - b_i$.
-
Each supplier $ij$ is connected to exactly two consumers: consumer $i$, with cost $0$, and consumer $j$, with cost $c_{ij}$. Let the flow on $(ij,j)$ be $x_{ij}$ and the flow on $(ij,i)$ be $\overline{m}_{ij} - x_{ij}$.
Every feasible solution to the transport problem has a corresponding feasible solution and vice versa:
$$ \begin{align*} \text{Conditions in transport problem} \quad & \qquad \quad \text{Conditions in network flow problem} \\ \\ \begin{cases} x_{ij} \geq 0, \\ \overline{m}_{ij} - x_{ij} \geq 0 \end{cases} \quad & \iff \quad 0 \leq x_{ij} \leq \overline{m}_{ij} \\ \\ \sum_{k:\ (i,k)\in E}(\overline{m}_{ik} - x_{ik}) + \sum_{k:\ (k,i)\in E} x_{ki} = \sum_{k:\ (i,k)\in E} \overline{m}_{ik} - b_{i} \quad &\iff \quad b_i + \sum_{k:\ (k,i)\in E} x_{ki} = \sum_{k:\ (i,k)\in E} x_{ik} \end{align*} $$ Both problems have the same cost $\sum_{(i,j)\in E} c_{ij} x_{ij}$.