Manuscript Offprint
arXiv:2611.02481Generalized Flows over Time: Complexity, Structure and Algorithm
Abstract
Generalized flows over time constitute a general network flow model that incorporates both transit times and flow losses or gains. We study their complexity, structure, and approximation. We prove that the generalized maximum flow over time problem remains NP-hard under standard binary encoding, even on lossy two-terminal series-parallel networks. The maximum temporally repeated restriction is APX-hard with general gains and NP-hard on lossy networks. We then consider the minimum source supply needed to satisfy a fixed sink demand within a given horizon, and prove that an opti-
*An earlier version of this paper appeared at COCOON 2026 [4]. *Corresponding author. Email addresses: chensiyuan221@mails.ucas.ac.cn (Siyuan Chen), csmj@ict.ac.cn (Shengminjie Chen), sxgao@ucas.ac.cn (Suixiang Gao), jiangzheyu24@mails.ucas.ac.cn (Zheyu Jiang), madun21@mails.ucas.ac.cn (Dun Ma), yangwg@ucas.ac.cn (Wenguo Yang)
Preprint submitted to Theoretical Computer Science
November 3, 2026 mal solution always exists without intermediate storage. On lossy networks, such a solution can additionally use only simple source-sink paths. These structural properties yield a fully polynomial-time approximation scheme via time condensation, with analogous schemes for generalized maximum flows over time and quickest flows with a source-supply budget.
Keywords: Generalized flows, Flows over time, Computational complexity, Structural property, Approximation algorithms
1. Introduction
Network flow is a fundamental class of problems in combinatorial optimization, with widespread applications across logistics, transportation, and telecommunications (see, e.g., [2, 29]). Classical network flow models typically assume flow invariance along arcs and instantaneous transmission. However, in practical scenarios such as the long-distance pipeline transmission of oil or gas, the transportation process incurs not only physical losses or leakages but also transit times—characteristics that classical models fail to capture. To address these limitations, two significant generalizations have been established: generalized flows, which characterize physical flow changes, and flows over time, which account for the temporal dynamics of transmission. While research on these two extensions has historically proceeded in parallel, accurately modeling scenarios like pipeline transmission necessitates the integration of both frameworks.
Groß and Skutella [15] initiated the study of generalized flows over time. In their model, each arc is associated with a gain factor and a transit time . Specifically, units of flow entering arc at time will result in
units exiting at time . Within this framework, they investigated the generalized maximum flow over time problem (GMFP), which seeks to maximize the total flow reaching the sink within a fixed time horizon .
Groß and Skutella [15] established that the GMFP is NP-hard and even inapproximable. However, the gain factors in their reduction are implicitly encoded through the transit times, and their ordinary binary representations may have exponential length. Groß [14, Section 7.1.1] therefore left open whether the hardness persists under binary encoding. This leads to our first question:
Is the GMFP still NP-hard under standard binary encoding?
The authors [15] also designed a fully polynomial time approximation scheme (FPTAS) for the GMFP on lossy networks with proportional losses. Groß [14, Chapter 5] subsequently developed time-condensation algorithms for general lossy networks, where all gain factors are at most 1. However, their model and algorithms allow flow to be stored at intermediate nodes. In many practical scenarios such as traffic networks, limited space or time resources make intermediate stops undesirable or even prohibited. This naturally raises a second question:
Does the GMFP always admit a storage-free optimal solution?
This work considers these two questions and gives affirmative answers to both.
Our contributions. We first establish the NP-hardness of the GMFP under standard binary encoding via a reduction from the NP-complete problem Ex-
ACT COVER BY 3-SETS (X3C). This holds even on lossy two-terminal series-parallel (TTSP) networks with unit capacities, resolving the open question raised by Groß [14].
We then examine whether the GMFP admits a temporally repeated optimal solution, as such flows require no intermediate storage. A TTSP network with only three arcs shows that it does not. Furthermore, finding a generalized maximum temporally repeated flow is APX-hard with general gains and remains NP-hard on lossy TTSP networks.
These negative results compel us to adopt a direct proof approach. We consider the optimal generalized flow over time problem (OGFP), which minimizes the total source supply for a fixed sink demand and time horizon. We prove that it always admits an optimal solution without intermediate storage; taking the demand to be the optimal GMFP value gives the same conclusion for the GMFP. Our proof builds on the time-shift framework used by Fleischer and Skutella [7] to show that the minimum-cost flow over time problem admits a storage-free optimal solution. We extend this framework to accommodate gains and losses.
Further, we prove that in lossy networks, an optimal OGFP solution can simultaneously avoid storage and use only simple source-sink paths. This property allows us to apply the time-condensation framework of Fleischer and Skutella [7] and Groß [14] to obtain a storage-free FPTAS for the OGFP. Binary search gives the corresponding storage-free approximation for the GMFP and an FPTAS for the quickest-flow problem with a prescribed demand and source-supply budget.
Related work. Generalized flows were introduced by Kantorovich [18]; each arc is associated with a gain factor to model flow gain or loss. We refer the reader to Wayne [28] and Lin [21] for a comprehensive overview of generalized flow problems and related algorithms. The generalized maximum flow problem is the most classic and extensively studied subproblem. Goldberg, Plotkin, and Tardos [13] presented polynomial-time combinatorial algorithms, and Fleischer and Wayne [9] designed fast approximation schemes for generalized flow problems. Végh [27] presented the first strongly polynomial time algorithm for generalized flow maximization and subsequently, with Olver [23], proposed a simpler and faster strongly polynomial time algorithm. Krumke and Zeck [20] studied generalized max flow on series-parallel graphs.
Parallel to the study of physical flow changes, Ford and Fulkerson [10] pioneered the investigation of flows over time (also known as dynamic flows), associating transit times with arcs. For thorough surveys on flows over time, we refer to Aronson [3] and Skutella [25]. The time-expanded network [11] is a fundamental tool for solving such problems, transforming a dynamic flow problem into an equivalent static flow problem on a larger network. However, since network size depends linearly on the time horizon , algorithms based on it typically exhibit pseudopolynomial time complexity. To overcome this limitation, Fleischer and Skutella [7] introduced the time-condensation technique, which reduces the network size to polynomial scale at the cost of slightly relaxing the time horizon. Leveraging this technique, they designed FPTASs for numerous dynamic flow problems. Fleischer and Tardos [8] studied the relation between discrete- and continuous-time flows and developed efficient continuous-time algorithms. Klinz and Woeginger [19] established the complexity of minimum cost dynamic flows on TTSP networks.
The study of generalized flows over time was initiated by Groß and Skutella [15] and developed further in Groß's thesis [14]. More recent work considers generalized maximum flows over time with intermediate storage [6] and generalized flows with excess storage on TTSP lossy networks [1]. These models allow stored excess flow to contribute to the objective. Chen et al. [5] study the existence and approximability of generalized earliest arrival flows, which impose the delivery objective simultaneously over time.
Although existing results show that most single-commodity flow over time problems admit storage-free optimal solutions, the landscape differs in the multicommodity setting. In certain instances, allowing intermediate storage can indeed strictly improve the optimal solution, although this improvement is bounded, as discussed in detail by Groß and Skutella [17]. They also designed approximation schemes for maximum multicommodity flows over time without intermediate storage using sequence condensation [16].
By assigning attributes to the arcs of , we obtain a generalized dynamic network . Here, assigns a finite positive capacity to each arc ; assigns an integer transit time to each arc, interpreted as the time required for flow to move from its tail to its head; and assigns a gain factor to each arc, modeling the change in flow magnitude along the arc. Specifically, if units of flow enter arc at its tail, then units arrive at its head after time units. We call a network lossy if for all . Given an integer , we study problems over the time horizon .
Walks, paths, and cycles. A walk is a sequence of consecutively incident directed arcs. A path visits no node twice, and a cycle is a closed walk with no repeated node other than its first and last node.
For a walk , define
Empty sums and products equal 0 and 1, respectively. A path flow of source value uses on arc and delivers to the sink. A cycle is flow-generating, unit-gain, or flow-absorbing according as its gain is greater than, equal to, or less than 1.
Series-parallel graphs. In the sequel we will repeatedly use two-terminal series-parallel (TTSP) graphs. The simplest TTSP graph consists of a single arc . These graphs are defined recursively. Let and be TTSP

Figure 1: Series and parallel composition of two-terminal networks.
graphs with terminals and , respectively. We obtain a new TTSP graph in either of the following ways:
Series composition: identify with ; the resulting graph has terminals .
Parallel composition: identify with to form , and identify with to form ; the resulting graph has terminals .
Figure 1 illustrates both compositions. Valdes et al. [26] presented a linear-time recognition algorithm for TTSP graphs.
Generalized static flows. A generalized static flow is a function satisfying
Given a feasible flow in , the residual graph is . For every forward arc , the residual capacity is , which is the additional flow that can still be sent along . For every reverse arc , set its residual capacity to , representing the maximum amount of flow that can be pushed back from the head of to its tail. It is easy to verify that if is a feasible flow in the residual graph, then the sum is again a feasible flow in , with for any .
Generalized flows over time. A generalized flow over time is a Lebesgue-integrable function . Here we work in a continuous-time model: denotes the instantaneous inflow rate entering arc at time . For convenience, we adopt the convention for or . For an intermediate node , define its inventory by
A flow is feasible if almost everywhere, for , and at every intermediate node. The inequality permits intermediate storage, while the final equality requires all intermediate inventories to be empty at completion. A flow is storage-free if for all intermediate and all .
Based on the aforementioned definition, we first restate the generalized maximum flow over time problem (GMFP) with a given time horizon , proposed in [15]:
Here and below, feasibility constraints are understood. Although the GMFP is well-defined, flow gains and losses in generalized dynamic networks may cause a discrepancy between source outflow and sink inflow. For a fixed sink demand and time horizon , cost efficiency motivates minimizing the total source supply. This leads to the optimal generalized flow over time problem
(OGFP):
Set when demand is infeasible. The case has the zero flow as an optimum. Taking relates the two problems.
Temporally repeated flows. Let be the set of simple -d paths in . A feasible collection of static path rates satisfies for each . Its temporally repeated realization sends at rate along during , without waiting, where . The generalized maximum temporally repeated flow problem (GMTRFP) is the path-based optimization problem
A solution is specified by its positive path rates. The static capacity inequalities ensure feasibility of its dynamic realization, since at every time only a subset of the path rates uses a given arc.
Time expansion and time condensation. Given a dynamic network , we construct its time-expanded network as follows. For each and , create a copy . Its arc set consists of the movement arcs
and the holdover arcs
Assign capacities and gains by
Holdover arcs are included also at the source and sink. We therefore use and as the unique source and sink, respectively. Source holdovers carry supply reserved for later departures, while sink holdovers carry earlier arrivals. Let be the counterpart of the OGFP on the time-expanded network .
The size of the time-expanded network may grow exponentially compared with . To overcome this issue, a natural idea is to choose a larger time unit; for example, if time was previously measured in seconds, now measure it in minutes. Take a time unit and round the arc transit times to . Writing and , construct a -layer network with node copies , movement arcs whenever , and holdover arcs between consecutive copies of every node. Movement arcs have capacity and gain ; holdover arcs have unbounded capacity and gain 1. Thus we obtain the condensed time-expanded network , whose terminals are and and whose rounded horizon is . The network is the case . Figure 2 sketches a dynamic network together with its time-expanded and condensed time-expanded networks.
Lemma 2.1. Assume that and all arc transit times are integer multiples of . For every feasible flow over time in , there exists a feasible static flow in with the same total source outflow and total sink inflow, and vice versa.
(a) Original network

(b) Time-expanded
| [0, 1) | [1, 2) | [2, 3) | [3, 4) | [4, 5) |
|---|---|---|---|---|
(c) Condensed
Figure 2: (a) The original network , with transit times on its arcs and unit capacities and gains; (b) its time-expanded network for ; (c) its condensed time-expanded network with , rounded horizon 6, and movement capacities 2. Dashed arcs are holdover arcs.
Proof. Given a feasible flow over time in , construct a static flow in by
Given a feasible static flow on , construct a dynamic flow on by
For a more detailed proof, see Groß [14, Chapter 4].
This paper proceeds based on the following assumption.
Assumption 1. The network contains no zero-length cycles.
This assumption ensures that the time-expanded network is acyclic and can be made without loss of generality: zero-length unit-gain or flow-absorbing cycles neither simulate storage nor increase flow; thus, in our optimization problems, flow particles can avoid traversing such cycles without degrading the solution quality. Moreover, zero-length flow-generating cycles are physically unrealistic, as they create flow without source input.
3. Complexity
We first establish that the GMFP remains NP-hard under standard binary encoding, even on lossy TTSP networks. We then consider the GMTRFP. This problem is APX-hard on general networks and remains NP-hard to solve exactly on lossy TTSP networks. Throughout this section, every integer is encoded in binary and every rational gain is given explicitly by its numerator and denominator.
3.1. Complexity of the GMFP
Our reduction uses Exact Cover by 3-Sets (X3C) [12]. An instance consists of a set and a family of three-element subsets of . The question is whether some subfamily covers every element of exactly once.
We will encode set selection by products and use integer transit times to separate products below and above a prescribed threshold. The following elementary approximation lemma supplies these transit times.
Lemma 3.1. Given integers and , an integer satisfying can be computed in time polynomial in .
Proof. Write , where and , and set . Then and . The Taylor expansions of and give . For every integer , the truncation error satisfies
The same expansion and error bound apply to with .
Choose the smallest nonnegative integer such that , and define
The preceding bounds yield .
It remains to verify the bit complexity. The integer is obtained from the binary length of , and can be found by repeated multiplication by 9. Moreover, has numerator and denominator of bits. Each of the rational terms defining therefore has numerator and denominator of bits. Even direct common-denominator summation keeps all intermediate bit lengths polynomial in .
Thus both and are computable in the claimed time. Finally, .
Take distinct primes and set
If an element belongs to no set, the instance is immediately negative; hence assume that every element occurs, so . Unique factorization gives
The first 3k primes can be generated in polynomial time, and , , and have polynomial bit lengths.
Let . Apply Lemma 3.1 to obtain integers and such that and . Define and . For , write and .
Lemma 3.2. For every , if and only if .
Proof. If , then
If , then for yields
Since is an integer, these two cases exhaust all possibilities.
Construct a network with a common source arc of capacity 1, transit time 0, and gain 1. Between and , place two branches in parallel. The first consists of a baseline arc with capacity 1, transit time 0, and gain . The second consists of selection modules in series. Module contains two parallel arcs and with attributes and , respectively. Figure 3 illustrates the construction. Parallel arcs can be subdivided by auxiliary nodes, with the added arcs having capacity 1, transit time 0, and gain 1. Thus the construction also satisfies the graph conventions in Section 2.
A selection path uses precisely when . Its transit time is , and its gain is . All gains are at most 1, all capacities are 1, and

Figure 3: The reduction for the GMFP. The selection modules form a series composition, placed in parallel with the baseline branch. Removing the baseline branch gives the network used for the lossy GMTRFP reduction. and arc labels give .
the network is an acyclic TTSP graph. Its encoding length is polynomial: , , and Lemma 3.1 computes all transit times with polynomially many bits.
Theorem 3.3. The GMFP is NP-hard under standard binary encoding, even on acyclic lossy TTSP networks with unit capacities.
Proof. Suppose first that the X3C instance is negative. Consider a feasible flow in the time-expanded network. Since this network is acyclic, its generalized path decomposition consists of source-sink paths. Each component uses either the baseline branch or a selection path , possibly together with holdover arcs of gain 1. A component using and arriving before must satisfy . Lemma 3.2 implies . By (2), equality is impossible; hence . Its gain is consequently at most . A baseline component has gain exactly . Summing over the decomposition, the sink inflow is at most times the total flow entering the common source arc. This arc admits at most units in the whole horizon. Sending at rate
1 through the baseline branch throughout attains the bound, so the optimum is .
Now suppose that encodes an exact cover. Then and . Send flow at source rate 1 along during , and along the baseline branch during . All prefix gains on are at most 1, so every unit-capacity constraint is satisfied. The final arrival interval of is contained in . The resulting storage-free flow has value
Thus the optimum is below for negative instances and above K for positive instances, completing the reduction.
3.2. Complexity of the GMTRFP
We first give an approximation-preserving reduction from the minimum traveling salesman problem with distances in , which is APX-hard [24].
Theorem 3.4. The GMTRFP is APX-hard under standard binary encoding.
Proof. Let a complete undirected graph on cities be a traveling salesman instance, with edge costs and minimum tour cost . Replace each edge by two oppositely directed arcs, each of weight . Split a distinguished city into a source and a sink : its outgoing arcs now leave , and its incoming arcs now enter . Replace every weight-2 arc by a two-arc directed path through an auxiliary node, and keep every weight-1 arc unchanged. Let denote the resulting unweighted directed graph with nodes. A schematic of is shown in Fig. 4.
A simple path in traverses each auxiliary node together with its unique incoming and outgoing arcs. Contracting these pairs gives a simple partial tour through the distinguished city, with weight equal to the number of arcs in the path. A missing city can be inserted between two consecutive cities without decreasing the weight: the replaced arc has weight at most 2, whereas the two new arcs have total weight at least 2. Repeating this operation completes the partial tour to a Hamiltonian tour. Conversely, every Hamiltonian tour of cost gives a simple path of length . It follows that the maximum simple path length in is .
Add a new source and an arc with . Give every arc of capacity , transit time 1, and gain 2, and take horizon ; see Figure 4. Every simple path consists of the common source arc followed by arcs of . Its total transit time is and its total gain is , so its unit-rate temporally repeated value is . For ,
Thus is strictly increasing.
The source capacity imposes . Since the prefix gain at any arc of is at most , the total rate entering such an arc is at most . Hence all other capacity constraints follow from this inequality. Writing for the number of arcs of on path , every feasible temporally repeated flow therefore has value
Conversely, sending at unit rate along a path with arcs of H is feasible and attains . Thus the GMTRFP optimal value is .
For any , given a feasible temporally repeated flow of value at least , choose a longest path among those with positive path rate, and let be its length in . By the monotonicity of and the source constraint, the value of this flow is at most . The ratio bound above therefore gives
The last inequality follows from and . Complete the decoded partial tour by the insertion procedure above. Its cost satisfies , and hence
The instance transformation and the solution transformation therefore form an AP-reduction with constant 3. Both are polynomial-time procedures: has vertices, and each capacity has bits. This proves APX-hardness.
For lossy networks, we reduce from Product Partition [22]. Given integers with , this problem asks whether some satisfies
Put . If is not a perfect square, the instance is negative. We may therefore assume that is a perfect square; its integer square root can be computed in polynomial time.
Set and . Use Lemma 3.1 to compute satisfying and , and set


Figure 4: Top: the GMTRFP instance with ; labels give , and every arc of has attributes . Bottom: a three-city instance with distinguished city and the resulting ; labels give original edge costs and unit arc lengths, respectively.
. The reduction uses the network in Figure 3 with the baseline branch removed.
Theorem 3.5. The GMTRFP is NP-hard to solve exactly under standard binary encoding, even on acyclic lossy TTSP networks with unit capacities.
Proof. A path chooses the transit-time alternative in module precisely when . Define and . Its gain is , and its transit time is . Since is an integer,
Set . Then . Substituting the definitions of and gives . The value of this path at unit source rate is , where
and .
All paths share the unit-capacity source arc, and every other prefix gain is at most 1. Hence all remaining capacity constraints follow from . The objective is , whose maximum is .
The function is increasing on and decreasing on , because . To bound when , w.l.o.g., we may assume . Integrality then gives
where we use for .
Let . For , we have . For , we have , since on the integration interval. These estimates and monotonicity outside imply whenever , for either sign of .
Moreover, implies , so and hence . Since , Equation (3) yields
It follows that if the Product Partition instance is negative, every path is unbalanced, so the optimum is at most . If the instance is positive, there is a balanced path with and . Thus the rational threshold separates positive and negative Product Partition instances. Since is an integer, the threshold has polynomial bit length, as do , and the gains . An exact GMTRFP value algorithm would therefore decide Product Partition in polynomial time.
4. Storage-Free Structure of the OGFP
We now establish that the OGFP admits an optimal solution without intermediate storage. In lossy networks, such a solution can additionally be chosen to use only simple source-sink paths. We first show why the temporally repeated construction for classical flows over time does not extend to generalized flows.
Example 4.1. Consider the TTSP network with vertices and arcs and ; see Fig. 5. All capacities are 1, the horizon is , and
Send flow at rate 1 along during and along during . This flow delivers 3/2 units. A temporally repeated flow has source rates on the paths , respectively. The static capacity constraint is , and its delivered amount is . Consequently, no temporally repeated flow is optimal.
4.1. General networks
Consider the time-expanded formulation OGFP of the OGFP. Let be its feasible set and its optimal solution set. The set is compact. Movement flows are bounded by their capacities; intermediate and sink holdover

Figure 5: The network in Example 4.1. Arc labels give ; all capacities are 1.
flows are bounded by total movement inflow, and source holdover flows are bounded by total source movement outflow. Feasibility therefore implies that is a nonempty compact convex set.
Recall that Assumption 1 makes acyclic. It follows that every static flow in can be decomposed into generalized path flows.
Theorem 4.2. There exists an optimal solution to the OGFP without intermediate storage.
Proof. It suffices to find an optimal solution to with no intermediate holdover flow. For any flow x, define the “net inflow” through movement arcs and an auxiliary function as follows:
Clearly, if and only if no intermediate holdover arc is used.
It is easy to verify that is convex; therefore attains a minimum on at some . Suppose . Let be the smallest time with at some intermediate node , and let be the first time with . Nonnegative inventories and zero final inventory imply , and every holdover arc from to carries positive flow. Set .
Among the flows in with the same movement net inflows as at every node of , choose minimizing
This minimum exists by compactness. Copies of movement arcs outside their defined time range are assigned flow zero. Write . Call an excess arc if and a deficit arc if .
Define the comparison graph by taking every excess arc in its forward direction and every deficit arc in its reverse direction. Zero differences contribute no arc. The arcs of are called comparison arcs. An excess arc has comparison flow and gain ; a reversed deficit arc has comparison flow and gain . Let consist of the nodes reachable from in , together with all comparison arcs between them. We establish three claims.
Claim 1. Every node of lies on a time layer at least . The node has an outgoing comparison arc. If has no outgoing comparison arc, then
Proof. There is no deficit arc departing before time , since its earlier copy has flow zero. Forward excess arcs do not decrease time, and backward deficit arcs cannot lead below layer . Since , this proves the first assertion.
For with , direct subtraction gives
The first two sums give the weighted net inflow of the comparison flow at . The last sum is nonnegative and accounts for earlier outgoing arc copies whose later copies lie beyond the time horizon.
At , the left-hand side is negative, so an outgoing comparison arc exists. If has no outgoing comparison arc, then , and a path from provides a positive incoming comparison arc. Its net inflow is therefore positive, and (4) follows from (5).
Claim 2. The directed graph contains no directed cycle.
Proof. Suppose is a directed cycle in . Since is acyclic, contains both forward excess arcs and reverse deficit arcs. For each movement arc involved in , construct residual arcs as follows:
| . |
These arcs form a directed cycle in the opposite direction to and a directed cycle in the direction of its translate by ; see Fig. 6. All have positive residual capacity, and .
If , choose an excess arc of . Its original flow is positive, so reversing a positive-flow path from to its tail gives a path of positive residual capacity from to . Augmenting around and withdrawing flow along this path reduces the source supply, contradicting optimality. If , then . A reversed deficit arc in similarly yields a path of positive residual capacity from to , along which flow can be withdrawn to reduce the source supply, again contradicting optimality.
It remains to consider . Augment around by a nonzero circulation , and let denote the resulting change in . Set on unchanged or nonexistent copies. This augmentation withdraws flow from excess arcs and adds flow to deficit arcs, so each nonzero has the opposite sign to . Choose the augmentation small enough to respect all residual capacities and satisfy . Thus . Since the cycle has gain 1, every movement net inflow is preserved, so the resulting flow remains in the set over which is minimized.
Consequently, we have
The first inequality follows from the triangle inequality and . This contradicts the minimality of .
Claim 3. There is a flow with .
Proof. By Claims 1 and 2, a directed path in leads from to a node with no outgoing comparison arc. Reverse at its original layers to obtain a residual path from to ; follow its translate by to obtain a residual

(a) Directed comparison cycle.

(b) Corresponding residual cycles.
Figure 6: A directed cycle in the comparison graph gives a residual cycle with the opposite orientation and a translated residual cycle with the same orientation. Their gains satisfy .
path from to . Both paths lie in the residual network and have positive residual capacities by the excess and deficit inequalities. Their gains satisfy .
Connect to by reverse holdover arcs, which have positive residual capacity, and connect to by forward holdover arcs. This gives a unit-gain directed cycle; see Fig. 7.
Hence we can place a nonzero circulation on this cycle. Let be the amount of flow that sends out of ; then the amount entering and the amount leaving are both , and the amount entering is . We restrict . Clearly, is a feasible flow

(a) Comparison path and its translate.

(b) Unit-gain residual directed cycle.
Figure 7: The path exchange. On , blue arcs are forward excess arcs and red arcs are backward deficit arcs. The residual path reverses at the original layers and follows its translate at the lower layers.
on and remains an optimal solution to OGFP . We have
The penultimate inequality follows from the fact that for any with , we have .
Claim 3 contradicts the choice of the minimum of on . Thus , and an optimal solution uses no intermediate storage. Then we prove the theorem.
We further obtain the following stronger result.
Corollary 4.3. The minimum of over all optimal OGFP solutions is attained by a flow without intermediate storage.
Proof. The time-expanded correspondence preserves the additional objective, which becomes . Repeat the proof of Theorem 4.2, restricting to the optimal flows minimizing this sum. Claim 1 is unchanged.
For Claim 2, if , one of has gain greater than 1, giving the same contradiction to minimum source supply. If both gains are 1, choose sufficiently small circulations around and so that their changes in and , respectively, have the same magnitude and opposite signs. Both circulations preserve source supply, and their changes in sum to zero. By minimality, neither change can be negative, so both are zero. We then apply only the circulation around , which preserves this sum and strictly decreases the function as in the original proof.
For Claim 3, the change in along is the negative of the change in along , so their contributions to cancel. The resulting flow therefore remains in , and the same strict decrease of proves the claim. Consequently, the argument yields a storage-free flow in .
4.2. Lossy networks
Theorem 4.4. In a lossy network, there exists an optimal OGFP solution that is storage-free, uses only simple s-d paths, and minimizes among all optimal OGFP solutions.
Proof. Let be the set of source-sink paths in that use no holdover arc at an intermediate node. By Corollary 4.3 and the time-expanded correspondence, choose an optimal solution to without using intermediate holdover arcs that minimizes among all optimal solutions. Decompose it into path flows . Let consist of the paths whose projections onto , after omitting source and sink holdovers, are simple paths. We show that every used path belongs to .
Suppose for a path . It has a subpath whose projection is a directed cycle; write . Replace this path flow by a flow with source value that follows , waits at the initial node of for time units, and then follows . Since , the flow entering each arc of does not increase. The flow along is removed, while each arc of receives the same amount of flow at the same time as before. Thus the replacement is feasible in OGFP and satisfies the same sink demand.
If , source supply strictly decreases, contradicting optimality. If , source supply is unchanged, but removing the positive flow along strictly decreases , contradicting its minimality. Hence every used path belongs to , and the corresponding flow over time has all the required properties.
Corollary 4.5. The GMFP admits an optimal solution without intermediate storage. In a lossy network it admits such a solution using only simple flow paths.
Proof. Let be the optimal GMFP value. An optimal OGFP solution for demand delivers the same amount, and Theorems 4.2 and 4.4 give the stated properties.
5. Storage-Free Approximation in Lossy Networks
We apply the time-condensation algorithm of Fleischer and Skutella [7], following its extension to lossy generalized flows by Groß [14, Chapter 5]. Theorem 4.4 bounds the rounding error along simple paths and supplies the same path structure for the computed condensed flow, so the usual smoothing and scaling recover a storage-free flow. The algorithm uses the condensed network from the preliminaries; only intermediate holdover arcs are deleted. Appendix Appendix A gives the details.
Theorem 5.1. For a feasible lossy OGFP instance with demand b, horizon , and precision , Algorithm 1 computes a storage-free flow delivering b with source supply at most by time . Its running time and output encoding length are polynomial in the input size and .
Proof. Lemma A.1 gives feasibility and the source-supply bound. Theorem 4.4 guarantees simple paths for the selected static flow. The smoothing, capacity, completion time, and encoding estimates are proved in Appendix Appendix A.
Corollary 5.2. For every , a storage-free generalized flow delivering at least by time can be computed in time polynomial in the input size and .
Proof. Find an path of minimum transit time. If none exists or , the zero flow is optimal. Otherwise, sending flow along gives the positive feasible value . Use Algorithm 1 as a demand oracle and bisect between and , retaining the
Algorithm 1 Storage-free approximation for the OGFP
Input: A lossy network with horizon , demand , and precision .
Output: A storage-free flow delivering by , or a certificate that .
-
If , return the zero flow. Otherwise, set and .
-
Set for each arc and .
-
Construct the condensed network for the rounded transit times, retaining source and sink holdover arcs and deleting intermediate holdover arcs.
-
For sink demand , compute a static flow minimizing source supply. If infeasible, return . Fix the minimum source supply and minimize total flow on all movement arcs.
-
Decompose into simple path flows and convert them to path-flow rates for the rounded transit times, as described in Appendix A.1.
-
Route the source rates
along the simple paths, with transit times and no storage, and return .
flow at the lower endpoint. By Lemma A.1, a rejected demand exceeds , while an accepted demand is delivered without storage by time . Stopping when the interval width is at most therefore gives a retained value of at least . Both bounds have polynomial encoding length, so only polynomially many oracle calls are needed. Theorem 5.1 gives the claimed running time.
Given a demand and source budget , the quickest generalized flow problem minimizes the completion time among flows delivering with supply at most .
Corollary 5.3. The quickest generalized flow problem on lossy networks admits an FPTAS whose output is storage-free.
Proof. Let be the infimum feasible completion time. Find a maximum-gain path . If none exists or , the instance is infeasible. Otherwise, the bounds
satisfy . Use Algorithm 1 with accuracy and supply bound in both linear programs in step 4 as a horizon oracle. By Lemma A.1, every rejected horizon is a lower bound on , while an accepted horizon returns a storage-free flow meeting demand and budget by time . Bisect until its width is at most , retaining the flow at the accepted upper endpoint. Its completion time is at most
Theorem 5.1 gives polynomial running time.
6. Conclusion
In this paper, we resolved a fundamental structural question regarding generalized flows over time by proving that intermediate storage is not required for optimality. Furthermore, we showed that optimal flows in lossy networks can use only simple paths. The simple-path property enables storage-free time-approximation algorithms for the OGFP and GMFP, and an FPTAS for the quickest-flow problem with a source-supply budget. We also proved that the GMFP remains NP-hard under standard binary encoding, even on lossy TTSP networks, and that the GMTRFP is APX-hard with general gains and NP-hard on lossy TTSP networks. An interesting direction for future work is to investigate whether similar storage-free or simple-path properties hold for more complex generalized minimum cost flows over time.
Funding
This work was supported in part by the National Natural Science Foundation of China (Grant Nos. T2341006, 12571382, 12501450, and 2501445) and the National Key R&D Program of China (Grant No. 2022YFA1003900).
Declaration of competing interest
The authors declare that they have no competing interests.
Data availability
No empirical datasets were used in this theoretical study.
Appendix A. Details of the Approximation Algorithm
We give the amplification, smoothing, and scaling estimates from the time-condensation framework of [7, 14] for Algorithm 1. It suffices to consider . All parameters below are those of the algorithm.
A.1. The condensed formulation
Consider a condensed network without intermediate holdover arcs. This network has nodes and movement arcs, since . The source and sink holdover arcs add only arcs. Assumption 1 makes it acyclic.
For demand , solve two linear programs: first minimize source supply, and then fix that minimum and minimize the sum of movement-arc flows. Using as the time unit, Corollary 4.3 shows that both minima are attained without intermediate holdovers. Thus the selected optimum decomposes into path flows that project onto simple paths in the original network.
A path decomposition is obtained by repeatedly subtracting a maximal positive path flow. Each subtraction makes at least one positive arc zero. The number of components is therefore at most the total number of arcs, hence when . In recording a component, omit its initial source holdovers and final sink holdovers; its departure layer is the layer of its first movement. A component of source amount departing in layer induces a constant source rate on along the corresponding path in the original network. Combining components corresponding to the same path gives source rates and induced arc rates for transit times . These rates respect capacities, since movement capacities are . This is the correspondence of Lemma 2.1, and it preserves source supply and sink inflow.
A.2. Amplification and smoothing
Lemma A.1. If , the condensed network in Algorithm 1 admits a flow delivering with source supply at most .
Proof. For an optimal flow of the OGFP, replace and each by and , respectively, and use the rate at time . Supply and delivery are multiplied by . With the original transit times, the longer traversals are simulated by waiting at the head of each arc. Thus demand is feasible by with supply at most . By Theorem 4.4, there is a storage-free flow on simple paths meeting this demand with no greater supply. Write its source rates as and its induced arc rates as .
Each used path is simple and contains at most arcs. Since rounding increases each arc transit time by less than , for every used path and every ,
Extend the source rates by zero outside their departure intervals and define
Send these path flows with transit times and no waiting. For any arc a, the resulting input rate satisfies
Moreover, for every used path ,
Hence
Since whenever , the smoothing formula gives whenever . Thus every positive path flow arrives by
Integrating over the -intervals therefore gives the required static flow by Lemma 2.1, with no intermediate holdover flow.
A.3. Recovery and complexity
Proof of Theorem 5.1. Lemma A.1 gives feasibility and bounds the minimum source supply by . We fix this minimum when minimizing total movement flow. By Theorem 4.4, the selected optimum decomposes into flows along simple paths in the original network. They respect capacities for and deliver by .
Apply (6) with the original transit times. Since , we obtain
where the last inequality uses . Moreover, integrating (6) gives . Consequently,
Smoothing delays departures by at most , while restoring the original transit times can only shorten paths. Completion therefore occurs by
. Moreover,
The condensed network has polynomial size, and its rational coefficients have polynomial encoding length. Both linear programs and the path decomposition can therefore be computed in polynomial time. A path-flow component of value departing in layer contributes
to . This continuous piecewise-linear function has at most four breakpoints. Its contribution to is obtained by shifting time by and multiplying by . All component values, breakpoints, , and have polynomial encoding length. Thus the returned flow has polynomial encoding length and can be evaluated in polynomial time.
References
[1] M. C. Adhikari, T. N. Dhamala, Generalized maximum flow with excess storage on series parallel lossy networks, Journal of the Operations Research Society of China (2025), online first.
[2] R. K. Ahuja, T. L. Magnanti, J. B. Orlin, Network Flows: Theory, Algorithms, and Applications, Prentice Hall, Englewood Cliffs, NJ, 1993.
[3] J. E. Aronson, A survey of dynamic network flows, Annals of Operations Research 20 (1989) 1–66.
[4] S. Chen, S. Chen, S. Gao, Z. Jiang, D. Ma, W. Yang, On the structure of generalized flows over time: Why storage is unnecessary, in: Y. Li, F. Stephan, X. Sun (Eds.), Computing and Combinatorics, COCOON 2026, Lecture Notes in Computer Science, vol. 16835, Springer, Singapore, 2027, pp. 192–205.
[5] S. Chen, S. Chen, S. Gao, W. Yang, S. Zhang, How hard are generalized earliest arrival flows? A landscape of existence and approximability, IJTCS-FAW 2026, accepted for publication.
[6] T. N. Dhamala, M. C. Adhikari, D. P. Khanal, U. Pyakurel, Generalized maximum flow over time with intermediate storage, Annals of Operations Research 335 (2024) 111–134.
[7] L. Fleischer, M. Skutella, Quickest flows over time, SIAM Journal on Computing 36 (6) (2007) 1600–1630.
[8] L. K. Fleischer, É. Tardos, Efficient continuous-time dynamic network flow algorithms, Operations Research Letters 23 (1998) 71–80.
[9] L. K. Fleischer, K. D. Wayne, Fast and simple approximation schemes for generalized flow, Mathematical Programming 91 (2) (2002) 215–238.
[10] L. R. Ford, Jr., D. R. Fulkerson, Constructing maximal dynamic flows from static flows, Operations Research 6 (3) (1958) 419–433.
[11] L. R. Ford, Jr., D. R. Fulkerson, Flows in Networks, Princeton University Press, Princeton, NJ, 1962.
[12] M. R. Garey, D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, W. H. Freeman, San Francisco, CA, 1979.
[13] A. V. Goldberg, S. A. Plotkin, É. Tardos, Combinatorial algorithms for the generalized circulation problem, Mathematics of Operations Research 16 (2) (1991) 351–381.
[14] M. Groß, Approximation Algorithms for Complex Network Flow over Time Problems, Ph.D. thesis, Technische Universität Berlin, 2014.
[15] M. Groß, M. Skutella, Generalized maximum flows over time, in: R. Solis-Oba, G. Persiano (Eds.), Approximation and Online Algorithms, WAOA 2011, Lecture Notes in Computer Science, vol. 7164, Springer, Berlin, Heidelberg, 2012, pp. 247–260.
[16] M. Groß, M. Skutella, Maximum multicommodity flows over time without intermediate storage, in: L. Epstein, P. Ferragina (Eds.), Algorithms-ESA 2012, Lecture Notes in Computer Science, vol. 7501, Springer, Berlin, Heidelberg, 2012, pp. 539–550.
[17] M. Groß, M. Skutella, A tight bound on the speed-up through storage for quickest multi-commodity flows, Operations Research Letters 43 (1) (2015) 93–95.
[18] L. V. Kantorovich, Mathematical methods of organizing and planning production, Management Science 6 (4) (1960) 366–422. English translation of the Russian original published in 1939.
[19] B. Klinz, G. J. Woeginger, Minimum-cost dynamic flows: The series-parallel case, Networks 43 (3) (2004) 153–162.
[20] S. O. Krumke, C. Zeck, Generalized max flow in series-parallel graphs, Discrete Optimization 10 (2) (2013) 155–162.
[21] Y. Lin, Algorithms for the Generalized Network Flow Problem, Ph.D. thesis, Columbia University, 2001.
[22] C. T. Ng, M. S. Barketau, T. C. E. Cheng, M. Y. Kovalyov, “Product Partition” and related problems of scheduling and systems reliability: Computational complexity and approximation, European Journal of Operational Research 207 (2) (2010) 601–604.
[23] N. Olver, L. A. Végh, A simpler and faster strongly polynomial algorithm for generalized flow maximization, Journal of the ACM 67 (2) (2020), Article 10, 26 pp.
[24] C. H. Papadimitriou, M. Yannakakis, The traveling salesman problem with distances one and two, Mathematics of Operations Research 18 (1) (1993) 1–11.
[25] M. Skutella, An introduction to network flows over time, in: W. Cook, L. Lovász, J. Vygen (Eds.), Research Trends in Combinatorial Optimization, Springer, Berlin, Heidelberg, 2009, pp. 451–482.
[26] J. Valdes, R. E. Tarjan, E. L. Lawler, The recognition of series parallel digraphs, SIAM Journal on Computing 11 (2) (1982) 298–313.
[27] L. A. Végh, A strongly polynomial algorithm for generalized flow maximization, Mathematics of Operations Research 42 (1) (2017) 179–211.
[28] K. D. Wayne, Generalized Maximum Flow Algorithms, Ph.D. thesis, Cornell University, 1999.
[29] D. P. Williamson, Network Flow Algorithms, Cambridge University Press, Cambridge, 2019.