Manuscript Offprint
arXiv:2610.06373A Decremental Algorithm for Checking the Possibility of Braess Paradox in Dynamic Nets
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Braess paradox originates when latency at Wardrop equilibrium in traffic networks decreases because of removing edges. The graph-theoretic property of networks suffering from the Braess paradox was called vulnerability by Roughgarden in 2006; it was then characterized and algorithmically checked both for undirected and for directed nets. In this paper, we provide a incremental algorithm of linear amortized complexity to check vulnerability for dynamically evolving networks. The basic idea of our dynamic algorithm is to use a static algorithm that marks some edges as irrelevant for the vulnerability of the graph and ignore those edges for all subsequent runs of the incremental procedure. To get a linear amortized cost for every edge remotion, we also provide a new version of such a static algorithm that improves its complexity from to , that is in turn aligned with the cost of the best state-of-the-art static algorithm for vulnerability.
2012 ACM Subject Classification Theory of computation → Dynamic graph algorithms; Theory of computation → Algorithmic game theory; Theory of computation → Network games
Keywords and phrases Decremental Algorithm, Algorithmic Game Theory, Braess Paradox
1 Introduction
In selfish routing, non-cooperative agents travel from a source node s to a destination node t, choosing their path in order to minimize their own latency. Traffic networks [3, 4] provide a model for studying selfish routing: edges of a directed graph are labeled by a function specifying the latency that agents experience traveling on an edge in terms of the flow passing through it. Since the latency experienced by an agent while traveling along a path depends on network congestion, traffic in a network is modeled as a non-cooperative game, which stabilizes to equilibrium when all agents cannot improve their latency by choosing a different path. This notion of equilibrium was defined by Wardrop [32] in the context of transport analysis.
As a representative example, consider the so-called Wheatstone network in Fig. 1(1). The edges , and are labeled by the constant functions 0 and 1: independently on how much traffic travels along them, the passage from u to v is instantaneous, whereas it creates a delay of 1 in the other two cases. Finally, the delay on edges and is linear in the amount of traffic traveling along them. The (non-optimal) flow of value 1 where all selfish agents choose the path is at Wardrop equilibrium, and the overall delay experienced is . In contrast, the (optimal) flow in which agents distribute half along the path and half along is not at equilibrium, but the delay experienced is smaller (viz., 3/2). This is indeed the delay obtained with a flow of value 1 at Wardrop equilibrium in the subnet of the Wheatstone network depicted in Fig. 1(2). Braess paradox [3, 6] originates when latency at Wardrop equilibrium decreases because of removing edges: the Wheatstone network is a minimal example of this counterintuitive phenomenon.
Braess paradox has been studied for decades and from many different perspectives. An
A Decremental Algorithm for Checking the Possibility of Braess Paradox in Dynamic Nets

(1)

(2)

(3)
Figure 1 (1) The Wheatstone network; (2) Its optimal subnet; (3) The graph W.
important result is that the paradox is not merely an artificially constructed phenomenon arising under particular conditions; rather, in random networks, the probability of its occurrence tends to one as the size of the network increases [29]. The paradox has therefore also been investigated in real-world applications, such as gas transportation networks [1], electric power systems [5], and road networks [2]. From a theoretical perspective, several results guarantee the absence of the paradox, either through conditions on the flow distribution [16] or on the structure of the strategies [15]. Moreover, it has been investigated how detrimental the paradox can be in different settings, as well as how much the addition of the bridge could actually improve equilibria in some cases [23]. Furthermore, it has been proved that the paradox can occur only for a bounded set of traffic demand values [22] and some conditions under which the paradox arises have been devised when cooperative and competitive agents coexist [31].
From an algorithmic point of view, checking if a network suffers from the Braess paradox has been proven to be a NP-hard problem in [26], where a change of perspective has been suggested: studying the Braess paradox from a graph-theoretical point of view, by characterizing and efficiently recognizing vulnerable graphs, i.e. those graphs that admit instances (i.e., assignments of latency functions to edges and traffic demand) that generate the paradox. A characterization of vulnerable undirected multigraphs is presented in [20], where it is proved that an undirected graph is vulnerable if and only if it is not series-parallel [25]. This characterization only holds for graphs where all nodes and edges lie on at least one simple st-path. In [9], the same characterization is proved for directed multigraphs that satisfy the very same condition, called irredundancy therein. While checking (ir)redundancy and finding the Maximal Irredundant Subgraph (MIS) can be efficiently done for undirected graphs [10], the same does not hold for directed ones: in [8] it is proved that recognizing if an edge is redundant in a digraph is a NP-hard problem. Moreover, in [7] the authors prove that vulnerability coincides with containing an irredundant subgraph homeomorphic to the graph W of Fig. 1(3) and in [8] they provide a algorithm to state if a given graph is vulnerable or not; in [19] a faster algorithm is given, which runs in .
Because of the inherently dynamic nature of routing games, the Braess Paradox has been studied from several perspectives within game theory also in its dynamic form. Indeed, many aspects of the problem may vary over time. For instance, traffic demand may fluctuate, as it is naturally the case during a typical working day, and the behavior of agents within the network may change accordingly. An interesting question is therefore to understand what happens in networks exhibiting Braess Paradox when the traffic demand varies [11, 30], by also allowing the demand to depend explicitly on time and study the resulting evolution of equilibria [21, 33]. Another aspect that may change over time is the underlying network itself; in particular, new links may be created or existing ones may be removed, possibly on a very short time scale. This is the setting where we place our work.
Indeed, a challenging algorithmic question is how to handle vulnerability in the context of dynamically evolving graphs [12]. Dynamic graph algorithms face problems like graph connectivity [24], the minimum spanning tree and many other graph problems [17]. In our context, inter-node connections can change during time, either by appearing or by disappearing and this may consequently change the possibility of having the Braess Paradox. We first observe that, as an easy consequence of the characterizations given by [7] and [9], adding an edge can make vulnerable a non-vulnerable graph, but it never happens that a vulnerable graph becomes non-vulnerable and, dually, removing an edge can make non-vulnerable a vulnerable graph, but not vice versa.
In a companion paper [14], we give an incremental algorithm to determine if adding an edge to a net makes it vulnerable: focusing on the non-vulnerable case, our dynamic algorithm works on the MIS of a non vulnerable graph, adapting the static algorithm given by [19]. Such an algorithm has an amortized cost of . Here, we address the incremental problem and assume that we have a vulnerable net with nodes and edges, where some of the latter ones can be sequentially removed from the net. In this case, we preliminarily observe that the algorithm given in [8] is “intrinsically” incremental, as it iteratively eliminates redundant edges, which do not have impact on vulnerability of the graph. Indeed, after giving some background in Section 2, we show in Section 3 that any algorithm of complexity following the approach of [8] leads to a incremental algorithm of amortized cost of after edge removals. If we use the algorithm in [8] as it is, this would lead to a incremental algorithm of amortized cost of , that is unsatisfactory when compared to the amortized cost of the incremental case. To obtain the desired amortized complexity, we improve the algorithm in [8] and we reduce its complexity from to and, consequently, we also get a incremental algorithm of amortized cost .
To do this, in Section 4, we provide sufficient conditions for either recognizing net vulnerability or finding a redundant edge, and in Section 5 we provide linear-time algorithms for checking such conditions. These algorithms are used in Section 6 to yield the linear-time amortized incremental algorithm. Finally, Section 7 concludes the paper, by also pointing to directions for future research. Due to space constraints, some definitions and proofs have been deferred to the Appendices.
A path is a sequence (for ) of nodes and edges such that relates , for all ; and are called extremes and are called internal nodes. If no node appears more than once in , we say that is simple (or acyclic). In this paper, when we refer to a path we always mean that it is simple, if not explicitly said.
▶ Definition 1. Given a path and two nodes , we write (or on ) if appears before in ; is defined accordingly.
Notationally, given a path from to , we denote it as or ; if , we write to denote the part of between and . We use round/square parenthesis to exclude/include extremes; for example, means that we are excluding and including . We use to mean and to mean ; two paths and are internally node disjoint if . We can join paths that only share one endpoint as follows: if and are internally node disjoint, then indicates the path that starts in , follows until , and finally follows until .
A Decremental Algorithm for Checking the Possibility of Braess Paradox in Dynamic Nets
We fix two different nodes: a source, written s, and a target, written t. The resulting triple is called net; when s and t are understood, we sometimes simply write it as G (i.e., without specifying the source and target) and use the term ‘graph’ instead of ‘net’. An st-path is a path from s to t. We say that a net is st-connected if every node is touched by at least one st-path.
The formal definitions of Braess Paradox and vulnerable nets are deferred to Appendix A, since they are not fundamental to appreciate our results. Indeed, for our aims it suffices to know that a net is vulnerable if and only if one of the following two characterizations hold. The first characterisation of vulnerable nets holds for irredundant nets, defined as those nets containing only irredundant nodes and edges. As defined in [9] (and derived from [20]), a vertex or an edge is irredundant if it appears in a simple st-path, and redundant otherwise. The characterisation given by [10] states that an irredundant net is vulnerable if and only if it is series-parallel (the definition is reported in Appendix A and it can be checked in linear time [28]). However, verifying if a net is irredundant is an NP-complete problem, as shown in [8]. In [7] the authors give a second characterisation of vulnerability that holds for generic (i.e., not necessarily irredundant) graphs, based on the embedding of W (Fig. 1(3)) within the given net.
▶ Definition 2 ([18]). A subgraph homeomorphism from to is a pair of injective mappings , from to and from to the simple paths of respectively, such that , for every that relates . A homeomorphism is called node disjoint if all paths in the image of are pairwise internally node disjoint.
▶ Definition 3. An st-embedding of W from Fig. 1(3) into a net is a node disjoint subgraph homeomorphism from W to G such that there are (possibly empty) node disjoint simple paths from to and from to that are pairwise internally node disjoint with all paths in the image of .
3 A High-level Decremental Algorithm
The high-level structure of the algorithm given in [8] is summarized in Algorithm 1. It consists in iteratively choosing a cycle C in the graph G (line 3) and analyzing that cycle (line 4): this can lead to find a st-embedding of the Wheatstone graph W, that implies that G is vulnerable (line 6), or to break that cycle, by removing an edge e redundant in C. In this latter case, function rmvRedEdges is called (line 8) to identify the set of all edges that are no more st-connected in the graph after removing e; these edges now all become redundant and are removed from G. If there is no embedding of W involving (parts of) a cycle in the original graph, the while-loop stops in at most steps; at that moment, G is an acyclic graph and its vulnerability is equivalent to not be series-parallel [10] (this can be checked in linear time [28]). The complexity of this algorithm is , being the complexity of the function SearchW: indeed, both FindACycle and rmvRedEdges are linear in m, being variations of some visit; moreover, we expect that .
Any algorithm following the same “hunting W in cycles” strategy as function isVuln can easily be transformed into a incremental procedure: just invoke it on the graph , being e the edge to be removed. However, to carry out our amortized complexity analysis, we found it convenient to represent a sequence of edge removals as an algorithm (Algorithm 2), where we assume to know in advance all the edges that will be removed and we specify how to use isVuln in this context. In practice, edges will disappear in different moments of the net’s life and are not available in advance: Algorithm 2 shows how to exploit the current status of the net (VULN/NOTVULN) and the edges identified as redundant in previous executions (stored in R) to optimize the calls to isVuln and, consequently, reduce the amortized cost.
More precisely, in the incremental setting, we start from a net with edges and sequentially remove edges . At any edge removal, if the graph is vulnerable, we call function IsVuln on a graph in which we delete the edge to be removed and the set of all edges already discovered redundant in previous executions of IsVuln (line 5–6) and we keep track of new redundant edges discovered (line 7). In fact, removing an edge eliminates some st-paths in and therefore all redundant edges in will remain redundant in . Thus, during a sequence of edge removals, the set of redundant edges can only grow. In contrast, if the net is not vulnerable, thanks to the characterization in [7], we know that it will remain so after any further edge removal; thus, we can remove edges in constant time, in particular without invoking IsVuln.
Algorithm 1 IsVuln(G)
1:
2: while G is not acyclic do
3:
4: found,
5: if found then
6: return , VULN
7: else
8:
9: if G is series-parallel then
10: return , NOTVULN
11: else return , VULN
Algorithm 2 seqRmv(G, )
1:
2: status = VULN
3: for to do
4: if and status = VULN then
5:
6: , status = IsVuln( )
7:
8:
9: return status
If the net is vulnerable, the function IsVuln has analyzed some cycles before finding a st-embedding of W and has marked a set R of edges as redundant; these can be ignored in subsequent calls of IsVuln because removing edges never makes irredundant a redundant edge. This implies that a sequence of runs of IsVuln cannot remove more edges than IsVuln does in its worst case scenario, i.e. whenever the algorithm has to break all the existing cycles, with a cost of . In other words, k runs of IsVuln as a incremental algorithm after k edge removals (supported by storing in R all the redundant edges found) has a total worst case complexity bounded by the very same worst case complexity of IsVuln itself. The total cost for checking vulnerability after removing edges is then . Consequently, the amortized cost for the single iteration is , being .
In [8], the algorithm for SearchW consists of solving a constant number of reachability problems. However, it may happen that, with the chosen cycle, it is not able to either find a st-embedding of W nor to break that cycle by canceling some redundant edge(s); in that case, a new cycle must be chosen. Following a suitable order on cycles, this situation can occur at most times. As a consequence, the complexity of SearchW in [8] is and the complexity of the overall algorithm is . In the rest of this paper, we show that we can refine the cycle analysis presented in [8] and make it always conclusive (i.e. it always either finds W or breaks a cycle) in time , by solving a constant number of reachability problems. This leads to a function SearchW of complexity (see Algorithm 8 in Section 6), which brings the complexity of isVuln to and allows for a incremental algorithm of amortized cost of .
A Decremental Algorithm for Checking the Possibility of Braess Paradox in Dynamic Nets

Figure 2 Pictorial representation of the conventions used for node names and path colors. To make this figure (and the following ones) more readable, all arrows apart from are intended to denote paths (i.e., we use instead of ).
4 Graph-Theoretic Conditions for Vulnerability
The theoretical heart of this paper is the development of 7 sufficient graph-theoretic conditions for establishing vulnerability of a net analyzing a cycle, with the feature that, if all the checks fail, we identify at least an edge that is redundant in that cycle (see Theorem 13). To this aim, we start by giving some preliminary definitions and name conventions.
4.1 Preliminary Definitions and Notations
In the rest of this paper, we shall use the following conventions on node names and on path coloring within figures:
denotes a node at minimum distance from s that belongs to a non-trivial cycle ; edges of will always be depicted in red (see Fig. 2 up);
is any shortest path from s to and it will always be depicted in orange (see Fig. 2 up).
Once , and are chosen, we accordingly define:
is the set of nodes from which it is possible to exit , i.e. is the set of such that and ; we number the elements of as by following and call the last one (see Fig. 2 up);
is the edge of that starts from ;
is one of the paths that does not touch ; it will always be denoted in blue (see Fig. 2 up);
is the node on closer to that is reachable from without passing through other nodes of and (see Fig. 2 up);
is the set of entry nodes along , i.e. those nodes reachable from without touching nor passing through ; we number the elements of as by following (see Fig. 2 center); notice that belongs to this order as well (in Fig. 2 center it is );
X is the set of nodes of reachable from s without passing through other nodes of and ; we number the elements of X as by following (see Fig. 2 center);
Ω is the set of nodes of reachable from s without passing through other nodes of ; we number the elements of Ω as by following (see Fig. 2 center);
Y is the set of nodes of reachable from without passing through other nodes of ; we number the elements of Y as by following (see Fig. 2 bottom);
Γ is the set of nodes of reachable from without passing through other nodes of ; we number the elements of as by following (see Fig. 2 bottom).
▶ Remark 4. Notice that, if the cycle C has only one exit , then is necessarily redundant since, starting from , there is no simple path passing through that exits C without passing through . Thus, in the following we assume that there are at least two exits (viz., and ).
4.2 Sufficient Conditions for Vulnerability
Assume that we fixed , C and as described in the previous section. We are now ready to provide the 7 conditions and prove that they all imply vulnerability of the net; in the next section, we shall provide algorithms for checking each of them in time that is linear in the number of edges of the net.
▶ Definition 5. Each condition is a property of the underlying graph G:
has at least one
has at least one
s.t. and , for which it holds that either (I) or (II)
▶ Proposition 6. If then G is vulnerable.
Proof. If has at least one , it means that there exist a path s.t. . Moreover and on . Let be the last intersection along with , and call . Let ; by minimality of , we have that . Let be the first intersection along with , if any.
If , then we have two cases:
- If and are disjoint, we are in the situation depicted to the left and the st-embedding of W, needed to prove vulnerability of G, can be found as depicted to the right (notice that the paths are all disjoint):

s
s'
s
s'
A Decremental Algorithm for Checking the Possibility of Braess Paradox in Dynamic Nets
- If and intersect (and so the) a defined above exists), then:

Finally, if we work in the same way; the only difference is that now belongs to .
▶ Proposition 7. 1. If then is vulnerable;
- If then in all simple paths do not touch .
Proof. For the first claim, if such an exists, then there is a s.t. and . Let be the last intersection between and along . By minimality of , we have that and .
Let be the first intersection along with , if any; otherwise, let be the first intersection after along with . In both cases, let and be the last intersection along with ; let .
If and are not disjoint, we are in the situation to the left and we can find an st-embedding of as depicted to the right (since the paths are all disjoint):

Otherwise:

We then prove the second claim. By contradiction, let be a simple path that touches . The only way to exit is using some and, since is simple, there exists some s.t. . Since always exists, this would imply , since there would be a path in .
▶ Proposition 8. If then is vulnerable.
Proof. Let be such that and (one surely exists since ). Let be the last node of along and be the last node of before on . Also, let be the last node of along after (and before ), if any.
In both the following figures, is not shown; for sure, it belongs to , but we do not know its position w.r.t. along .
If and are disjoint, then we are in the situation depicted at left and we have the st-embedding of depicted at right:


Otherwise:


▶ Proposition 9. If then G is vulnerable.
Proof. If has at least one , then there exists a with . Let be the last node of along ; we define and . Since and there is no s.t. (by maximality of ), then , and . Thus, we are in the situation depicted at left and we can find an st-embedding of as depicted to the right:

▶ Proposition 10. If then G is vulnerable.
Proof. Since a exists, then there exists a s.t. . By minimality of , it holds that . Let be the first node of along , if any; otherwise, let be the first node of along (notice that is ). Let , where is the last node of along before ; thus, .
Since and , we can find an st-embedding of . The case in which and are disjoint is given to the left and the st-embedding of at the right:

The case in which and intersect is given below:
A Decremental Algorithm for Checking the Possibility of Braess Paradox in Dynamic Nets


Note that , (in the intersection case) and (in the disjoint case) are all not empty, since .
▶ Proposition 11. If then is vulnerable.
Proof. By minimality of , it holds that . Let be the first node of along , if any. We show the st-embedding of for both cases; note that all the paths considered are disjoint by definition.
If , then:

otherwise:

▶ Proposition 12. If then is vulnerable.
Proof. Let be the last node of before touching the first node . Let be the exit path from and be the first intersection of along . Let be the first intersection of along , if any.
If and are disjoint, then:

otherwise:

4.3 Main Theorem
▶ Theorem 13. If no holds, for , then is redundant in .
Proof. By contradiction, assume that is irredundant; so there exists a (simple) path , for some , such that is the first edge in . Let be the first intersection along with ; we call , and . It holds that since:
■ , otherwise would be an (and so would hold);
■ , otherwise , for some ; by Proposition 7(2) there cannot exist an acyclic that touches , in contradiction with acyclicity of .
Because , we have that ; moreover, we know that . Thus, ; by definition of , we have that . If , all simple paths would pass through , by ; in that case, we can set and let play the role of , and all what follows still works, since and are disjoint from , by minimality of . Hence, let us now consider the case in which .
Since is the first node of , by we know that ; let be the first intersection along . In particular, by , we know that . Since (indeed, it belongs to ), we consider , the last node of touched by before . By , we have that and all the are in .
By , all paths from to that do not contain must be such that . Fix one of these and let be the first internal intersection along it with ; clearly, . This however implies , since is a path that does not contain . Contradiction.
5 Algorithmic Checking the Sufficient Conditions
In this section we present the linear-time algorithms that check the conditions . In what follows, when we perform a visit, we say that a node is a sink if we ignore all the edges that leave that node and we force to backtrack from that node.
To make the presentation lighter, we present four algorithms that, together, will contribute to the cycle analysis and to the final outcome (i.e., the graph is vulnerable or a redundant edge is found). However, in doing this, we need to classify nodes and edges as described in Section 4.1, label them accordingly and keep this labeling throughout the execution of these various algorithms. Hence, the graph G is a sort of “global” variable, that different algorithms access by reading and modifying the labels of nodes and edges.
For space reasons, all the proofs of this sections are deferred to Appendix B.
5.1 Checking Conditions and
Algorithm 3 receives a graph G, where some nodes and edges have already been labeled as , and , and it adds some extra labels to identify all the nodes and paths listed in Section 4.1 (notice that some nodes may have more than one label). In doing this, it first checks if there are at least two exits (line 2), otherwise it returns that is redundant (see Remark 4). Also, it checks and , by returning VULN if any or is found (see lines 7 and 11, respectively). Clearly, the cost is , since we are just performing a number of visits, and it correctly labels nodes according to the name conventions given in Section 4.1.
▶ Proposition 14. FindNodes(G) returns VULN if and only if .
A Decremental Algorithm for Checking the Possibility of Braess Paradox in Dynamic Nets
Algorithm 3 FindNodes(G)
Require: and all the nodes and edges of and are labelled in
1: Compute the set of exits, by performing a backward visit from that considers all nodes in as sinks
2: if then return is redundant */
3: Sequentially order by performing a visit from along and label each of its nodes as
4: Perform a visit from considering all the nodes labelled with as sinks and find a simple path between and ; label all the nodes and edges of this path with
5: Perform a visit from considering all nodes labelled with either or as sinks; the last node reached on (the closest to ) is labelled with
6: for all node visited in a visit started from do
7: if then return VULN / * holds */
8: if then consider a sink and add it to
9: if then consider a sink and add it to
10: for all node visited in a visit started from do
11: if then return VULN / * holds */
12: if then consider a sink and add it to
13: Sequentially order by performing a visit from along and label each of its nodes as
14: Sequentially order by performing a visit from along and label each of its nodes as
15: Sequentially order by performing a visit from along and label each of its nodes as
5.2 Checking Condition
Algorithm 4 checks condition by first checking whether and, if not, by performing a single visit of from . Its cost is clearly .
▶ Proposition 15. NoBadChord(G) returns VULN if and only if .
5.3 Checking Conditions , and
Algorithm 5 takes in input a graph and some of its nodes that lie along the same simple path that ends in node and checks whether there is a path from some to that does not touch some other . According to how we instantiate , and , we will be able to check conditions , and . Notice that the cost of the algorithm is , since we do not delete the flag to the visited edges: we are, in fact, performing one single visit of .
▶ Proposition 16. Let be a graph and be nodes of that lie on a simple path that terminates in node . Then, NoJumps returns VULN if and only if such that .
We can now use NoJumps with proper inputs to check , and :
■ For , we invoke NoJumps( ). Indeed, we observe that such that in if and only if such that in : the
Algorithm 4 NoBadChord(G)
Require: In G all nodes and edges are labelled as described in Section 4.1 1: if then return NOTVULN 2: for all node v visited in a visit started from in do 3: if then return VULN /* holds */ 4: return NOTVULN
Algorithm 5 NoJumps( )
Require: are vertices of that lie along one simple path that ends in 1: for to do 2: Perform a visit from considering a sink and flag all visited edges 3: if the visit reaches then return VULN 4: When no edge can be visited, quit the visit but leave the flag on the edges 5: return NOTVULN
left-to-right implication holds because we can pass on from and reach any ; the other implication holds by definition (choose ).
For , we invoke NoJumps( ).
For , we invoke NoJumps( ), where is the exit before (at most , since we are assuming to have at least two exits).
5.4 Checking Condition
Algorithm 6 first assigns to each node in its order along that path; this is needed to check condition (I) of in constant time. Then, we start a visit from each of the exits; in the visit from the generic , we keep track of the visited node of which is closer to , if any. If it exists, this node is one of the 's and we record it (actually, its order along ) in variable ClosGamma; in this way, we know that there is a simple path from to that node, internally disjoint from (being the nodes of sinks of the visit). Since we want that such paths are disjoint also from , we also consider all the nodes of , except for , as sinks. For every node not belonging to that is touched for the first time in the current visit, we mark it with ; for every node that has already been touched in one previous visit (say ), we update its mark with the pair ; for every node which has been touched more than once, the mark does not change. Indeed, to check we should be able to ascertain whether there are (at least) two different exits with intersecting simple paths that lead to .
Whenever we reach a node of , we check if that node appears along after the with minimum order calculated in the previous iterations (as recorded in ClosGamma); if this is the case, then condition (I) of is met and the algorithm returns VULN; otherwise, we need to upload the minimum. Since we can reach different nodes of during the visit from and we need to compare their order with the order of the minimum from the previous iterations, we save the (order of the) provisory minimum of the iteration in ClosGammaProv and upload ClosGamma only at the end of the iteration. When the visit from is completed, since we want a linear-time algorithm, we keep the flagging on the crossed edges and start a new visit from the following exit.
A Decremental Algorithm for Checking the Possibility of Braess Paradox in Dynamic Nets
Algorithm 6 OrderedExits(G)
Require: In G all nodes and edges are labelled as described in Section 4.1 1: Assume that 2: for each node v of do 3: Define the position of v in the path 4: ClosGamma = 5: ClosGammaProv = 6: for i = 1 to k do 7: Perform a visit from by 8: (a) not crossing edges that are flagged, and 9: (b) flagging all the newly crossed edges, and 10: (c) considering and as sinks 11: for all v touched in the visit do 12: if v is not marked and then mark v with i 13: if v is marked with then mark v with 14: if then 15: if then return VULN /* holds / 16: if then ClosGammaProv = 17: At the end of the visit, do not remove the flags on the crossed edges 18: ClosGamma = ClosGammaProv 19: Cancel all the flags on edges 20: for all do 21: Perform a backwards visit from v by 22: (a) not crossing edges that are flagged, and 23: (b) flagging all the newly crossed edges, and 24: (c) considering and as sinks 25: if find a node marked with a pair then return VULN / holds */ 26: At the end of the visit, do not remove the flags on the crossed edges 27: return NOTVULN
After the for-loop, the nodes marked with pairs are the candidates to satisfy condition (II) of ; however, not all of them can have paths leading to some . To see this, consider the following example:

In the visit from , the algorithm follows the green edges and marks the nodes not belonging to with ; in particular, nodes and are marked with . Then, in the visit from , it crosses the grey edges and marks with ; in particular, and are now marked with the pair . However, is a point where two simple paths and (both internally disjoint from and ) intersect, whereas is not. Hence, the aim of the final backward visit performed by the algorithm starting from all the nodes of is exactly to identify any node marked with a pair that has a path to some , if any. In the previous example, the algorithm finds, during the backward visit from , only , and so it correctly returns VULN
Algorithm 7 FindACycle(G)
1: Find all the strong connected components (SCCs) of G 2: if all SCCs are trivial (the graph is acyclic) then return acyclic 3: Perform a BFS from s to find a closest vertex to s that belongs to a non-trivial SCC; label it as 4: Label all the nodes and edges of the shortest path from s to with 5: Find a cycle containing and label all its nodes and edges with C 6: return cyclic
in line 25; in contrast it (correctly) does not find c. Also in this backward visit, we avoid crossing the same edge more than once, by keeping the flag on the edges already crossed. This ensures that the overall cost of the algorithm is , as it consists in two visits of the graph.
▶ Proposition 17. OrderedExits(G) returns VULN if and only if .
6 A Linear-time Amortized Decremental Algorithm
To get a linear-time amortized algorithm, we provide suitable versions of functions FindACycle and SearchW, called in Algorithm 1 of Section 3. As in [8], it is essential that the cycle chosen by FindACycle is (one of) the cycle(s) closest to s: this is what Algorithm 7 does, by following the decomposition of a digraph in its strongly connected components (SCCs). It works in since finding SCC is linear [27] and the other operations are just visits.
Once we found (and, correspondingly, and ), we invoke the functions developed in Section 5 to label the graph and analyze the cycle; this is done by function SearchW in Algorithm 8, by using Algorithms 3, 4, 5 and 6. Since all the algorithms invoked cost , the cost of the algorithm itself is .
▶ Theorem 18. If Algorithm 8 returns VULN, then the net is vulnerable. If Algorithm 8 returns , then is redundant.
Proof. If the algorithm returns VULN, then one among Algorithms 3, 4, 5 or 6 returned VULN. By Propositions 14, 15, 16 and 17, there exists some s.t. holds; thus, is vulnerable, by one among Propositions 6, 7(1), 8, 9, 10, 11 and 12. Conversely, if the algorithm returns , then either there is just one exit, and so by Remark 4 is redundant, or none of Algorithms 3, 4, 5 or 6 returned VULN. By Propositions 14, 15, 16 and 17, we know that does not hold, for any . By Theorem 13, is redundant.
As described in Section 3, function isVuln in Algorithm 1 is a incremental algorithm, just calling it on the graph , being the edge to be removed, while Algorithm 2 summarizes how to keep information about redundant edges already discovered by function isVuln in a sequence of edge removals. Function isVuln is invoked times; the total cost of such invocations is , because it consists in at most invocations of Algorithms 7 and 8. Hence, the incremental test for vulnerability has an amortized complexity of for every removed edge, by assuming edge removals.
7 Conclusions
In this paper, we have improved the “hunting W in cycles” strategy underlying the algorithm in [8] and shown that it can work in (instead of ). Moreover, we have shown that, irrespectively of which of the two versions one wants to use, the approach can be used
A Decremental Algorithm for Checking the Possibility of Braess Paradox in Dynamic Nets
Algorithm 8 SearchW(G)
Require: and all the nodes and edges of C and are labelled in G
1: if FindNodes(G) returns VULN then return VULN
2: if it returns then return
3: if any of
4: NoBadChord(G)
5: NoJumps(G, , , ..., , t)
6: NoJumps(G ( ), , , ..., , t)
7: NoJumps(G ( ), , , ..., , )
8: OrderedExits(G)
9: returns VULN
10: then return VULN
11: else return
to develop a incremental algorithm, able to ascertain the vulnerability condition upon edges removals.
This paper complements a companion paper [14], where an incremental algorithm is presented; these can be used when the considered net evolves in time by removing/adding connections among nodes. Interestingly, the incremental algorithm in [14] and the incremental algorithm presented here are in some sense dual: the incremental one is based on the series-parallel irredundant non-vulnerable part of the graph and takes advantage of the algorithm in [19]; the incremental one is based on hunting redundant edges and a cycle analysis along the lines of [8]. In both cases, the static algorithms are , whereas the dynamic algorithms are amortized for each edge insertion/removal.
The obvious direction for future research is the development of a fully dynamic approach, where edge additions and removals may interleave in an arbitrary way. As usual in the setting of dynamic algorithms, this is the most challenging problem. In our case, vulnerability is preserved under edge additions and non-vulnerability is preserved under edge removals; such a ‘monotonicity’ is lost if we interleave additions and removals.
References
1 H. Ayala, F. Luis, and S. Blumsack. The braess paradox and its impact on natural gas network performance. Proceedings - SPE Annual Technical Conference and Exhibition, 6:4304–4323, 01 2012.
2 Saeed Bagloee, Avishai Ceder, Madjid Tavana, and Claire Bozic. A heuristic methodology to tackle the braess paradox detecting problem tailored for real road networks. Transportmetrica A: Transport Science, 10:437–456, 06 2013. doi:10.1080/23249935.2013.787557.
3 M. Beckmann, C. B. McGuire, and C. B. Winsten. Studies in the Economics of Transportation. Yale University Press, 1956.
4 M.G.H. Bell and Y. Iida. Transportation Network Analysis. Wiley, 1987.
5 Seth Blumsack. Some implications of braess' paradox in electric power systems. Working Paper, 02 2006.
6 D. Braess. Über ein paradoxon aus der verkehrsplanung. Unternehmensforschung, 12:258–268, 1968.
7 Pietro Cenciarelli, Daniele Gorla, and Ivano Salvo. Inefficiencies in network models: A graph theoretic perspective. Information Processing Letters, 131:44–50, 2018.
8 Pietro Cenciarelli, Daniele Gorla, and Ivano Salvo. A polynomial-time algorithm for detecting the possibility of braess paradox in directed graphs. Algorithmica, 81(4):1535–1560, 2019.
9 Xujin Chen, Zhuo Diao, and Xiaodong Hu. Excluding braess paradox in nonatomic selfish routing. In Proc. of SAGT15, volume 9347 of LNCS, pages 219–230. Springer, 2015.
10 Xujin Chen, Zhuo Diao, and Xiaodong Hu. Network characterizations for excluding braess's paradox. Theory of Computing Systems, pages 1–34, 2016.
11 Roberto Cominetti, Valerio Dose, and Marco Scarsini. Monotonicity of equilibria in nonatomic congestion games. European Journal of Operational Research, 316(2):754–766, 2024. URL: https://www.sciencedirect.com/science/article/pii/S0377221724000900, doi:10.1016/j.ejor.2024.01.050.
12 Camil Demetrescu, David Eppstein, Zvi Galil, and Giuseppe F. Italiano. Dynamic graph algorithms, chapter 9, pages 1–28. Chapman & Hall/CRC, 2 edition, 2010.
13 R. J. Duffin. Topology of series-parallel networks. Journ. of Math Analysis and Applications, 10:303–318, 1965.
14 Dario Fiorenza, Daniele Gorla, and Ivano Salvo. An incremental algorithm for checking the possibility of braess paradox in dynamic nets. In Proc. of FSTTCS, volume 400 of LIPIcs, pages 7:1–7:17. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2026.
15 Satoru Fujishige, Michel X. Goemans, Tobias Harks, Britta Peis, and Rico Zenklusen. Matroids are immune to braess paradox. Mathematics of Operations Research, 42(3):745–761, August 2017. doi:10.1287/moor.2016.0825.
16 J.N. Hagstrom and R.A. Abrams. Characterizing braess's paradox for traffic networks. In ITSC 2001. 2001 IEEE Intelligent Transportation Systems. Proceedings (Cat. No.01TH8585), pages 836–841, 2001. doi:10.1109/ITSC.2001.948769.
17 Jacob Holm, Kristian de Lichtenberg, and Mikkel Thorup. Poly-logarithmic deterministic fully-dynamic algorithms for connectivity, minimum spanning tree, 2-edge, and biconnectivity. J. ACM, 48(4):723–760, July 2001.
18 Andrea S. LaPaugh and Ronald L. Rivest. The subgraph homeomorphism problem. Journal of Computer and System Science, 20(2):133–149, 1980.
19 Akira Matsubayashi and Yushi Saito. A faster algorithm for recognizing directed graphs invulnerable to braess's paradox. In Daniele Frigioni and Philine Schiewe, editors, 23rd ATMOS, OASIcs, pages 12:1–12:19. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2023.
20 Igor Milchtaich. Network topology and the efficiency of equilibrium. Games and Economic Behavior, 57:321–346, 2006.
21 Anna Nagurney, David Parkes, and Patrizia Daniele. The internet, evolutionary variational inequalities, and the time-dependent braess paradox. Computational Management Science, 4(4):355–375, October 2007. URL: https://ideas.repec.org/a/spr/comgts/v4y2007i4p355-375.html, doi:10.1007/s10287-006-0027-7.
22 Eric I. Pas and Shari L. Principio. Braess' paradox: Some new insights. Transportation Research Part B: Methodological, 31(3):265–276, June 1997. URL: https://ideas.repec.org/a/eee/transb/v31y1997i3p265-276.html, doi:None.
23 Claude M. Penchina. Braess paradox: Maximum penalty in a minimal critical network. Transportation Research Part A: Policy and Practice, 31(5):379–388, 1997. URL: https://www.sciencedirect.com/science/article/pii/S0965856496000328, doi:10.1016/S0965-8564(96)00032-8.
24 John H. Reif. A topological approach to dynamic graph connectivity. Inf. Process. Lett., 25(1):65–70, April 1987. doi:10.1016/0020-0190(87)90095-0.
25 J. Riordan and C.E. Shannon. The number of two-terminal series-parallel networks. Journal of Mathematics and Physics, 21:83–93, 1942.
26 Tim Roughgarden. On the severity of Braess's Paradox: Designing networks for selfish users is hard. J. Comput. Syst. Sci., 72(5):922–953, 2006. An extended abstract appeared in the Proc. of FOCS 2001.
27 Robert Tarjan. Depth-first search and linear graph algorithms. In 12th Annual Symposium on Switching and Automata Theory (swat 1971), pages 114–121, 1971. doi:10.1109/SWAT.1971.10.
A Decremental Algorithm for Checking the Possibility of Braess Paradox in Dynamic Nets
28 J. Valdes, R.E. Tarjan, and E.L. Lawler. The recognition of series-parallel digraphs. SIAM Journal of Computing, 11:298–313, 1982.
29 Greg Valiant and Tim Roughgarden. Braess's paradox in large random graphs. In Proceedings of the 7th ACM Conference on Electronic Commerce, EC '06, page 296–305, New York, NY, USA, 2006. Association for Computing Machinery. doi:10.1145/1134707.1134740.
30 Jasper Verbree and Ashish Cherukuri. Wardrop equilibrium and braess's paradox for varying demand, 2023. URL: https://arxiv.org/abs/2310.04256, arXiv:2310.04256.
31 Wei (Walker) Wang, David Z.W. Wang, Huijun Sun, Zengzhe Feng, and Jianjun Wu. Braess paradox of traffic networks with mixed equilibrium behaviors. Transportation Research Part E: Logistics and Transportation Review, 93:95–114, 2016. URL: https://www.sciencedirect.com/science/article/pii/S1366554515303161, doi:10.1016/j.tre.2016.05.004.
32 J.G. Wardrop. Some theoretical aspects of road traffic research. In Proc. of the Institute of Civil Engineers, Pt. II, volume 1, pages 325–378, 1952.
33 Chunxue Zhao. Dynamic traffic network model and time-dependent braess' paradox. Discrete Dynamics in Nature and Society, 2014(1):802129, 2014. URL: https://onlinelibrary.wiley.com/doi/abs/10.1155/2014/802129, arXiv:https://onlinelibrary.wiley.com/doi/pdf/10.1155/2014/802129, doi:10.1155/2014/802129.
A Traffic Networks, Braess Paradox and Vulnerability
The set of st-paths in G is denoted by ; the set of simple st-paths is denoted by .
A flow for a net is a function . The value of a flow is the sum of the values sent over all paths. A flow induces a unique flow on edges: for any edge , .
A latency function assigns to each edge a latency as a function of the flow in it; as usual, we only consider continuous and non-decreasing latency functions.
The latency of an st-path under a flow is the sum of the latencies of all edges in the path under , i.e., . If is a subgraph of , we denote with the restriction of the latency function on the edges of .
Given a net , a real number and a latency function , we call the triple an instance (of ). A flow is feasible for if the value of is . Notice that, since we do not have any constraint on edges or vertices, every admits at least one feasible flow.
A feasible flow for is at Wardrop equilibrium (or is a Wardrop flow) if, for all st-paths and such that , we have . In particular, this implies that, if is a Wardrop flow, all st-paths to which assigns a positive flow have the same latency. It is known [26] that every instance admits a Wardrop flow and that different Wardrop flows for the same instance have the same latency along all st-paths with a positive flow. Thus, we denote with the latency of all st-paths with positive flow at Wardrop equilibrium; whenever , we let be 0.
Braess paradox [3, 6] originates when latency at Wardrop equilibrium decreases because of removing some edges (or equivalently, by increasing latency functions on them): an instance suffers from Braess paradox if a subgraph of G exists with a lower latency. In [26] it is shown that it is NP-hard to decide whether or not an instance of a net suffers from the Braess paradox. A question raised in [26] is to study the problem from a graph-theoretical perspective, that is whether a net admits instances suffering from the paradox. This leads to the following definition [26].
▶ Definition 19. A net is vulnerable if there exist a value , a latency function and a subgraph of such that .
To conclude, we also report, for the sake of completeness, the definition of (two-terminal) series-parallel graphs.
▶ Definition 20 (Two-Terminal Series-Parallel Graphs (TTSP) [13]). A graph , with two distinguished vertices s and t, is a TTSP-graph if it can be turned into the single edge by a sequence of the following operations:
Replace a pair of parallel edges with a single edge that connects their common endpoints;
Replace a pair of edges and with the edge , whenever w has degree 2 and it is different from s and t.
B Omitted Proofs from Section 5
Proof of Proposition 14. It suffices to observe that means that there is a path , with and ; this holds if and only if the visit from on line 6 reaches a node which belongs to . Similarly, means that there is a path , with and ; this holds if and only if the visit from on line 10 reaches a node which belongs to .
Proof of Proposition 15. ( ) means that and s.t. in . Then, the algorithm reaches a node in with a visit in started from and returns VULN (line 3).
(⇒) If the algorithm returns VULN, then and the visit is performed; the path required by is then composed by all the nodes and edges found backtracking from the node in to .
Proof of Proposition 16. ( ) If the algorithm answers VULN, then the visit starting from some reached a without touching .
(⇔) We prove the contrapositive. During the iteration of the for-loop, the following invariant holds: Each simple path that starts from a visited node and that in H can reach a passes in . This is true since the only possible sink of iteration i is (since we are assuming that the algorithm returns NOTVULN) and the iteration starts from (the previous sink), continuing all the branches of the visit previously stopped there. So, at the iteration, all the simple paths starting from each that could reach a in H pass in . This means that all the simple paths starting from any touches all the with .
Proof of Proposition 17. ( ) If the algorithm returns VULN in line 15, then it has found two disjoint paths, from two different exits (say, and , with ), that land to different nodes of (say, and , respectively) such that ; this means that and so condition (I) of holds. Notice that the algorithm updates ClosGamma only at the end of each iteration; so, it is not possible that it answers VULN for two paths from the same .
Otherwise, the algorithm must return VULN in line 25; then, there exists some marked with a pair (with ) backward reachable from some . Hence, there exist two paths and such that all internal nodes of are marked with but not with ; so, and are internally disjoint. Since is marked with , there exists a with all nodes marked with a pair that has at least one marker that is or less. Then, the path is simple, because of the structure of the markers. Let be the first node of that is in a simple path (at least one exists, possibly
A Decremental Algorithm for Checking the Possibility of Braess Paradox in Dynamic Nets
— see the graph depicted in Section 5.4). Then, the two paths and are both simple and internally intersect in ; thus, condition (II) of holds.
(⇔) First, assume that holds because of condition (I). If there exist two different exits and with and two disjoint paths and with , then the algorithm first found and recorded in ClosGamma its order in (or a smaller order, if the visit from found another node of preceding ) at the end of iteration of the for-loop. In the following iterations, ClosGamma cannot increase; so, when the algorithm finds in iteration , it has that and returns VULN in line 15.
Finally, assume that condition (II) of holds; then, there are two paths and (for and ) that have their first intersection in a node . If is marked with a pair, then, since is reachable from , the backward visit from will find and the algorithm returns VULN in line 25. Assume that is not marked with a pair. Since is reachable from , if has not been marked with , then the visit from stopped in a node preceding and marked with a pair; since is reachable from , the backward visit from reaches and the algorithm returns VULN, like above. If is marked with but not with , the proof is analogous.
A minimal example where is depicted below:

The internally intersecting paths are and .
By considering the example in the previous footnote, a is not marked with because, when the visit from arrives to b (and marks it with ), all edges outgoing from b are already flagged and so the visit from stops in b without reaching a.