Integrality of Single-Commodity Network Flow
When every node supply/demand and every arc capacity in a single-commodity min-cost flow problem is an integer, the linear-programming relaxation automatically has an integer optimal solution. The result follows from total unimodularity of the node-arc incidence matrix and explains why transportation and assignment problems can be solved by ordinary LP and still return integer (in particular, 0/1) answers.
Tutorial
The Integrality Theorem
The single-commodity min-cost flow problem chooses arc flows on a directed network to minimize cost subject to flow conservation and capacity bounds:
subject to
Here at sources, at sinks, and at transshipment nodes.
Integrality theorem (single-commodity min-cost flow). If every supply/demand and every arc capacity is an integer, and the problem is feasible, then the LP has an optimal solution in which every flow is an integer. The (network) simplex method returns such a solution.
The costs may be arbitrary real numbers — they have no effect on integrality of the optimal flow.
This is striking: even though the LP imposes no integrality constraints on the variables, integer data force the optimum to occur at an integer vertex of the feasible polytope.