Flow balance 2026-10-06
A flow balance prescribes net outgoing minus incoming flow at a vertex. Positive is supply and negative is demand; zero is ordinary flow conservation. Summing all balances requires total supply to equal total demand. In a directed graph, these equations are represented by the oriented incidence matrix.
Graph total variation 2026-10-06
The graph total variation measures absolute variation of a vertex signal across edges. It is independent of the orientation used for the oriented incidence matrix. It vanishes exactly on signals constant on each connected component of a graph. A graph total variation denoising estimator combines this penalty with squared error, favouring signals that are piecewise constant on connected regions.
For a connected graph, the Moore-Penrose inverse of its oriented incidence matrix satisfies , because this product is the orthogonal projection onto . Thus every signal decomposes into its constant mean and . Writing , a sub-Gaussian random vector noise gives a simultaneous bound on with scale .
Choose the oriented incidence matrix convention with at an edge's tail and at its head. Let be net supply, so . The uncapacitated minimum-cost flow problem on a finite directed graph is
or . Negative denotes net demand. Costs may have either sign; the problem can be infeasible or unbounded.
For vertex network dual potentials , the optimization Lagrangian is
The infimum over is finite exactly when every network reduced cost is nonnegative. Thus the Lagrangian dual problem and complementary slackness are
A feasible flow and feasible network dual potentials satisfying these equalities have equal costs and are optimal by weak duality.
If the underlying undirected graph is connected, deleting one redundant balance row makes the oriented incidence matrix have rank . A set of independent edge columns is exactly a spanning tree. Set all non-tree flows to zero, solve the tree balances, and check nonnegativity to obtain a basic feasible solution. Basic tree edges may have zero flow, which is degeneracy in linear programming. Requiring on tree edges determines network dual potentials up to a common additive constant. If every non-tree network reduced cost is nonnegative, the tree flow is optimal. This is the basis of the network simplex algorithm. If the graph is disconnected, solve the balances separately in each component; each component must have total net supply zero and uses its own spanning tree.
Each row of the oriented incidence matrix records one signed endpoint difference, hence
Reversing an edge changes the sign of its row, and permuting the edges permutes rows; neither operation changes the sum of absolute differences. Thus the graph total variation is independent of the chosen orientation and ordering. If , values agree at the endpoints of every edge. Any two graph vertices of a connected graph are joined by a graph path, so their values agree. Therefore .
An uncapacitated minimum-cost flow has nonnegative edge flows without finite upper capacities. The flow balances prescribe net supply at each vertex. For the oriented incidence matrix convention with tail and head , vertex network dual potentials have network reduced costs . Nonnegative network reduced costs and complementary slackness certify a feasible optimum. A feasible negative-cost directed cycle makes the problem unbounded below.