You are looking for a proof for Total Unimodularity (TU). TU is a property by which a linear program will always have an integral solution. All you need to prove is that in your LP
- $A$ matrix is TU and
- $b$ column has only integers.
What is TU
- A matrix $A$ is unimodular if $\det(A) = 1$ or $-1$.
- A matrix $A$ is Totally Unimodular (TU) if each square submatrix $S$ of $A$ has $\det(S) = 0, 1$ or $-1$.
Sufficient Condition For TU
- A matrix $A$ is TU if the number of non-zeros in each column is $\le2$
- The sum of the entries of a column is zero
Why does TU guarantees integral solution for a LP
Consider the LP problem $Ax = b$ with basis $B$, the value of basic variables $x_B$ can be obtained as $$x_B = B^{-1}b = \frac{\operatorname{adj}(B)}{\det(B)}b.$$
- Since $\det(B) = -1$ or $1$ (from TU of $A$ matrix) and the adjoint matrix is also integral it implies that $B^{-1}$ is integral
- Since $b$ is integral, then $x_B$ is also integral, hence guaranteeing and integral optimum for the LP.
All network flow problems (shortest path, maximal flow, etc..) exhibit this property.