---
title: Minimum Flow Decomposition (MFD)
url: https://www.emergentmind.com/topics/minimum-flow-decomposition-mfd
type: topic
---

# Minimum Flow Decomposition (MFD)

The Minimum Flow Decomposition (MFD) problem is a central combinatorial optimization problem arising in computational biology, network analysis, transportation, and theoretical computer science. Given a directed network with a prescribed source-to-sink flow, MFD seeks a minimum-cardinality set of integer-weighted $s$–$t$ paths whose weighted superposition exactly reconstructs the edgewise flows. Despite its classic formulation, MFD remains computationally intractable and rich in algorithmic, structural, and practical complexities that continue to motivate significant research.

## 1. Formal Definition and Mathematical Structure

Given a directed graph $G=(V,E)$ with unique source $s\in V$, sink $t\in V$, and a non-negative integer flow function $f:E\to\mathbb{Z}_{>0}$ satisfying flow conservation at each $v\in V\setminus\{s,t\}$,
\[
\sum_{(u,v)\in E} f_{uv} = \sum_{(v,w)\in E} f_{vw},
\]
the Minimum Flow Decomposition problem is to determine the smallest integer $k$ and a collection of $s$–$t$ paths $\mathcal{P} = \{(P_i, w_i)\}_{i=1}^k$ (with positive integer weights $w_i$), such that for every edge $(u,v)\in E$,
\[
\sum_{i:\ (u,v)\in P_i} w_i = f_{uv}.
\]
MFD is strongly NP-hard on directed acyclic graphs (DAGs) and APX-hard in general; thus, polynomial-time algorithms are not expected to exist unless $\mathrm{P} = \mathrm{NP}$ [2409.20278, 2207.02136].

Related decomposition variants include formulations for graphs with cycles (decomposing into walks, trails, or cycles), inexact flow decompositions (with edgewise lower/upper bounds), and robust decompositions under uncertainty in edge flows [2410.21140, 2511.19153, 2209.00042].

## 2. Integer Linear Programming Models

The canonical algorithmic approach employs Integer Linear Programming (ILP). For a given upper bound $k$ and $G$ as above, variables $x_{uvi} \in \{0,1\}$ indicate usage of edge $(u,v)$ by path $P_i$, and $w_i \in \mathbb{Z}_{>0}$ are the path weights. The constraints are:
- Path-conservation: For all $v\in V$, $i=1,\dots,k$,
  \[
  \sum_{(u,v)\in E} x_{uvi} - \sum_{(v,w)\in E} x_{vwi} = 
  \begin{cases}
    -1 & v=s \\
    +1 & v=t \\
    0 & v\in V\setminus\{s,t\}
  \end{cases}
  \]
- Flow coverage: For every $(u,v)\in E$,
  \[
  \sum_{i=1}^k x_{uvi} w_i = f_{uv}
  \]
In practice, bilinearities are linearized by introducing auxiliary variables and standard McCormick or big-$M$ constraints [2301.13245, 2311.10563, 2201.10923].

For practical scalability, modern implementations incorporate safety-based variable fixing, antichain and excess-flow preprocessing, graph reduction (e.g., degree-1 contraction), weight-ordering symmetry-breaking, and restricted-weight ILP models. These techniques yield massive speedups, making exact ILP approaches feasible for $k=20$–$30$ on real-world assembly graphs [2311.10563].

For graphs with cycles, ILP formulations become more involved, ensuring that each decomposition unit is constrained to be a simple path, a trail, or a walk, as required [2209.00042, 2511.19153].

## 3. Structural Complexity and Graph Width Parameters

The tractability and approximability of MFD depend crucially on several graph parameters:
- **Width $w(G)$**: The minimum number of $s$–$t$ paths needed to cover all edges in $G$.
- **Parallel-width $pw(G)$**: The maximum number $c$ such that a parallel bundle of $c$ $s$–$t$ edges is obtainable as a directed minor.
- **Flow-width $fw(G,f)$**: The smallest integer $h$ such that the flow can be covered by $h$ $s$–$t$ paths, each edge appearing at most $f(e)$ times.

Complexity results:
- MFD is strongly NP-hard even for width $w(G)=3$ and (weakly) NP-hard for width $2$ [2409.20278].
- For width-1 graphs (i.e., a single $s$–$t$ path), MFD is trivial.
- For graphs of constant parallel-width and unary-coded flows, MFD is quasi-polynomial-time solvable, and FPT in $k$ with a double-exponential parameter dependence [1706.07851, 2409.20278].
- Width-stable graphs (those with monotone width under edge removal) admit bounded-approximation guarantees for greedy heuristics [2207.02136].

## 4. Safe Paths and Solution Invariance

A fundamental concern in bioinformatics applications (e.g., transcript assembly) is the existence of *safe paths*: subpaths that must appear as contiguous subpaths in every minimal solution. A path $P$ is safe if for all optimal decompositions, there is some $P_i$ with $P \subseteq P_i$. Determining the set of maximal safe paths for MFD is itself nontrivial.

The safety of paths is characterized—algorithmically and structurally—by ILP-based safety tests. In particular, group-testing ILP formulations can identify (in batch mode) the maximal set of candidate paths that are unavoidable in optimal decompositions, massively reducing computational time [2301.13245]. In practice, this approach can recover up to 96% ground-truth transcript coverage in typical RNA-assembly graphs, with F-score improvements of 0.93–0.97 over previous safe path notions (see Table 1).

| Method    | Coverage | Precision | F-score |
|-----------|----------|-----------|---------|
| SafeFlow  | 71–91%   | 100%      | 0.82–0.91 |
| SafeMFD   | 88–96%   | 99–98%    | 0.93–0.97 |

Group-testing further halves the number of ILP calls required relative to naïve single-path testing, with empirical 3× speedup [2301.13245].

## 5. Algorithmic Approximability and Heuristics

MFD admits no polynomial-time constant-factor approximation in general (APX-hard), but parameterized approximations are possible by leveraging width parameters:
- The classical parity-fixing (bit decomposition) scheme yields an $O((pw(G)/w(G)) \log\|f\|)$-factor approximation, where $\|f\|$ is the largest edge flow [2409.20278, 2207.02136].
- Greedy-weight heuristics (iteratively extracting the widest $s$–$t$ path) are $O((\log|f|)/w(G))$-approximations on width-stable graphs, but performance may deteriorate ($\Omega(m/\log m)$ gap) on general DAGs [2207.02136].

The introduction of flow-width $fw(G,f)$ unifies and generalizes these guarantees: $w(G)\le fw(G,f)\le mfd_G(f)$, and all parameterized approximations are ultimately bounded by parallel-width and this structural parameter [2409.20278].

## 6. Extensions: Graphs with Cycles and Robust MFD

Recent advances have generalized MFD to directed graphs with cycles, where decompositions may comprise walks, trails, or cycles. Exact ILP models for these cyclic variants enforce connectivity requirements (e.g., reachability, Miller–Tucker–Zemlin sequential ordering, SCC cut generation) and have proven practical for instances with up to $k=60$ decomposition units [2209.00042, 2511.19153].

Dominator-tree techniques further identify "safe" sequences of edges common to all decompositions, yielding massive MILP reductions and up to 400× speedups [2511.19153].

Robust MFD variants address settings with uncertainty in edge flows (e.g., interval- or budgeted-uncertainty). Both static (worst-case) and adjustable (scenario-adaptive) robust optimization models have been developed. Adjustable robustness—differentiating between "here-and-now" and "wait-and-see" decisions—yields particularly compact and efficient models, reducing the required number of paths and weights by up to 70% versus naive approaches on real multi-scenario datasets [2410.21140].

## 7. Practical Applications and Empirical Results

MFD underpins core bioinformatics tasks, most notably RNA transcript assembly and viral quasispecies reconstruction, where the flow decomposition encodes plausible molecular sequences from observed data. Large-scale benchmarks on splice graphs derived from human, mouse, and zebrafish transcriptomes demonstrate that ILP-based and safety-optimized methods can provide near-optimal path recovery, substantially improving true transcript coverage, typically within seconds to minutes per instance for graphs of practical size ($|V|\sim 50$) [2301.13245, 2311.10563, 2201.10923, 2209.00042, 2511.19153]. The emergence of robust, adjustable MFD further enables practical handling of uncertainty in clinical genomics and transport planning [2410.21140].

The field continues to advance along axes of algorithmic exactness, approximation, robustness, and practical optimization, with open challenges in constant-factor approximability, further width parameter refinements, and scalability to high-complexity multi-assembly and cyclic-graph settings.

Source: https://www.emergentmind.com/topics/minimum-flow-decomposition-mfd