Next Article in Journal
An Enhanced Error-Adaptive Extended-State Kalman Filter Model Predictive Controller for Supercritical Power Plants
Previous Article in Journal
Algorithmic Techniques for GPU Scheduling: A Comprehensive Survey
Previous Article in Special Issue
The Clique-Width of Minimal Series-Parallel Digraphs
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Behavior of Tree-Width and Path-Width Under Graph Operations and Graph Transformations

Institute of Computer Science, Heinrich Heine University, 40225 Düsseldorf, Germany
*
Author to whom correspondence should be addressed.
Algorithms 2025, 18(7), 386; https://doi.org/10.3390/a18070386
Submission received: 30 May 2025 / Revised: 15 June 2025 / Accepted: 20 June 2025 / Published: 25 June 2025
(This article belongs to the Special Issue Graph and Hypergraph Algorithms and Applications)

Abstract

Tree-width and path-width are well-known graph parameters. Many NP-hard graph problems admit polynomial-time solutions when restricted to graphs of bounded tree-width or bounded path-width. In this work, we study the behavior of tree-width and path-width under various unary and binary graph transformations. For considered transformations, we provide upper and lower bounds for the tree-width and path-width of the resulting graph in terms of those of the initial graphs or argue why such bounds are impossible to specify. Among the studied unary transformations are vertex addition, vertex deletion, edge addition, edge deletion, subgraphs, vertex identification, edge contraction, edge subdivision, minors, powers of graphs, line graphs, edge complements, local complements, Seidel switching, and Seidel complementation. Among the studied binary transformations, we consider the disjoint union, join, union, substitution, graph product, 1-sum, and corona of two graphs.

1. Introduction

A graph parameter is a function that associates every graph with a non-negative integer. One of the most famous graph parameters is tree-width, which was defined by Robertson and Seymour [1]. Graphs of bounded tree-width are interesting from an algorithmic point of view, as several NP-complete graph problems can be solved in polynomial time for graph classes of bounded tree-width. For example, tree-decompositions allow for many efficient algorithms in dynamic programming [2,3,4,5]. The same holds for the similar graph parameter path-width. This is because every path-decomposition can be interpreted as a special case of a tree-decomposition. Both parameters play a crucial role in the field of structural graph theory, especially in the graph minor theory of Robertson and Seymour [6].
Trees and forests have tree-width at most one. Series-parallel graphs have tree-width at most two [7]. Outerplanar graphs (and subclasses such as cactus graphs and maximal outerplanar graphs) have tree-width at most two, and k-outerplanar graphs have tree-width at most 3 k 1 [7]. Halin graphs have tree-width at most three [7]. For other classes of graphs with bounded tree-width, we refer the reader to the works of Bodlaender [7,8,9].
Determining whether the tree-width or path-width of a graph is at most a given value w is NP-complete [10]. However, for every fixed integer k, one can decide in linear time whether a given graph G has tree-width or path-width k (see Bodlaender [11]). For an in-depth overview of tree-width and path-width, we again refer the reader to the work by Bodlaender [7].
A graph transformation f is a function that creates a new graph f ( G 1 , , G n ) from a number of n 1 input graphs G 1 , , G n . Examples of graph transformations include taking an induced subgraph of a graph, adding an edge to a graph, or generating the join of two graphs. A graph operation is a graph transformation that is deterministic and invariant under isomorphism. Examples of graph operations include the edge complementation of a graph or generating the join of two graphs. Please note that by our definition, the two graph transformations that involve taking an induced subgraph of a graph and adding an edge to a graph are not graph operations. The graph theory books by Bondy and Murty [12] and Harary [13] provide a large number of graph transformations.
The impact of graph operations, which can be defined by monadic second-order formulas (so-called MS transductions), on graph parameters can often be shown in a very short way. Unfortunately, the resulting bounds are typically rather imprecise [14,15].
Transformations that reduce graphs can be used to characterize classes of graphs by forbidden subgraphs. For example, the property that a graph has tree-width at most k is preserved under the graph transformation “taking minors”. This fact is used to show that the set of graphs of tree-width at most k can be characterized by a finite set of forbidden minors [6].
The effect of graph transformations on graph parameters has been well studied, e.g., for bandwidth [16], for tree-width [7], for clique-width [17,18,19], and for rank-width [18].
In this paper, we study the behavior of tree-width and path-width under various graph transformations and graph operations. We consolidate known results from various works and prove novel results. In doing so, this work provides a comprehensive overview of the effects of unary and binary graph transformations on tree-width and path-width. This paper is organized as follows. In Section 2, we recall the definitions of tree-width and path-width. In Section 3, we consider the effects of the following unary graph transformations on tree-width and path-width: vertex deletion, vertex addition, edge deletion, edge addition, subgraphs, vertex identification, edge contraction, edge subdivision, minors, powers of graphs, line graphs, edge complements, local complements, Seidel switching, and Seidel complementation. If it is possible to bound the tree-width or path-width of the resulting graph f ( G ) , we show how to compute a corresponding decomposition in time linear in the size of the decomposition for G. In Section 4, we give an overview of the effects of the following binary graph operations on tree-width and path-width: disjoint union, join, union, substitution, graph products, 1-sum, and corona. If it is possible to bound the tree-width or path-width of the combined graph f ( G 1 , G 2 ) in terms of the tree-width or path-width of the graphs G 1 and G 2 , we show how to compute a corresponding decomposition in time linear in the size of the decompositions for G 1 and G 2 . Finally, we summarize our results and provide some conclusions, as well as an outlook for future work, in Section 5.

2. Preliminaries

2.1. Graphs

We work with finite, undirected graphs G, where V ( G ) is a finite set of vertices and E ( G ) { { u , v } u , v V ( G ) , u v } is a finite set of edges without loops or multiple edges. For a vertex v V ( G ) , we denote by N G ( v ) the set of all vertices adjacent to v in G, i.e., N G ( v ) = { w V ( G ) { v , w } E ( G ) } . The vertex set N G ( v ) is called the set of all neighbors of v in G or the neighborhood of v in G. Note that v itself does not belong to N G ( v ) . The degree of a vertex v V ( G ) , denoted by deg G ( v ) , is the number of neighbors of v in G, i.e., deg G ( v ) = | N G ( v ) | , and the maximum degree of G, denoted by Δ ( G ) , is the maximum of the vertices’ degrees, i.e., Δ ( G ) = max v V ( G ) deg G ( v ) . In this work, we discuss graphs only up to isomorphism. This allows us to define the path with n vertices as P n = ( { v 1 , , v n } , { { v 1 , v 2 } , , { v n 1 , v n } } ) , which is useful in several examples. For definitions of further special graphs, we refer to the book by Brandstädt et al. [20].

2.2. Tree-Width

One of the most famous tree-structured graph classes is the class of graphs of bounded tree-width. The first notion equivalent to tree-width, the dimension of a graph, was introduced by Bertelè and Brioschi [21] in 1973. The following definition of tree-width was given by Robertson and Seymour [1] in 1986.
Definition 1 
(Tree-width). A tree-decomposition of a graph G is a pair ( X , T ) , where T is a tree and X = { X u V ( G ) u V ( T ) } is a family of subsets of V ( G ) , called bags, such that the following three conditions hold:
(tw-1) 
u V ( T ) X u = V ( G ) .
(tw-2) 
For every edge { v 1 , v 2 } E ( G ) , there is a node u V ( T ) with v 1 , v 2 X u .
(tw-3) 
For every vertex v V ( G ) , the subgraph of T induced by the nodes u V ( T ) with v X u is connected.
The width of a tree-decomposition ( X = { X u u V ( T ) } , T ) is defined as
max u V ( T ) | X u | 1 .
Finally, the tree-width of a graph G, denoted by tw ( G ) , is the smallest integer k, such that there is a tree-decomposition ( X , T ) for G of width k.
Please note that (tw-1) has no influence on the width of a tree-decomposition. It merely ensures that isolated vertices are covered by a tree-decomposition, which is useful for the design of algorithms along tree-decompositions.
Obviously, the tree-width of every graph G is bounded by | V ( G ) | 1 , as one can always place all its vertices in a single bag. Conversely, determining whether the tree-width of a given graph is at most a given integer w is NP-complete, even for bipartite graphs and complements of bipartite graphs [10].
Example 1 
(Tree-decomposition). Figure 1 depicts a graph together with a corresponding tree-decomposition of width 1.
In addition to the previous definition of tree-width, tree-width can also be defined by bramble numbers [22] (also known as the size of screens [23]) or partial k-trees [24]. We refer the reader to the work by Bodlaender [7] for an overview of equivalent definitions.
Throughout the course of our work, we make use of the following lemma by Scheffler [25] several times.
Lemma 1. 
Every graph of tree-width at most k has a vertex of degree at most k.
Proof. 
Let G be a graph with tw ( G ) = k and ( X , T ) be a tree-decomposition of width k for G, such that | V ( T ) | is as small as possible. Let be a leaf of T and denote its parent in T as v. Since | V ( T ) | is as small as possible, there must exist a vertex u X with u X v . Otherwise, X X v holds, and we can delete X , contradicting the minimality of V ( T ) . Thus, due to (tw-2) and (tw-3), all neighbors of u must be in X and, as X contains at most k + 1 vertices, it follows that u has degree at most k. □
The following proposition was stated by Bodlaender [7], who credited it to Rose [24]. As Rose’s proof makes use of k-trees, we provide, for the sake of self-containment, a proof that relies only on Lemma 1 and tree-width.
Proposition 1. 
Let G be a graph. Then, it holds that
| E ( G ) | tw ( G ) | V ( G ) | 1 2 tw ( G ) ( tw ( G ) + 1 ) .
Proof. 
By Lemma 1, we know that there exists at least one vertex v in G of degree at most tw ( G ) , such that v has at most tw ( G ) incident edges in G. Let us denote the graph we obtain by removing v from G as G 1 . Then, we know that from G to G 1 , we removed at most tw ( G ) edges from G. It is easy to see that removing v and all its incident edges from G can reduce the tree-width of G but not increase it. Hence, tw ( G 1 ) tw ( G ) holds, and we can repeat the previous argument for G 1 , i.e., remove a vertex and at most tw ( G ) edges from G 1 . Repeating this argument for all vertices of G results in | E ( G ) | tw ( G ) | V ( G ) | . After several repetitions of the previous argument, i.e., removing a vertex with at most tw ( G ) incident edges from the remaining graph, there are at most tw ( G ) vertices left in the remaining graph. This remaining graph can have a tree-width of at most tw ( G ) 1 , such that by Lemma 1, it follows that in this graph, there is a vertex with degree at most tw ( G ) 1 . Removing this vertex from the remaining graph, we remove at most tw ( G ) 1 edges. Repeating this argument for all of the tw ( G ) remaining vertices in sequence yields
| E ( G ) | tw ( G ) ( | V ( G ) | tw ( G ) ) + i = 1 tw ( G ) ( tw ( G ) i ) = tw ( G ) ( | V ( G ) | tw ( G ) ) + tw ( G ) tw ( G ) i = 1 tw ( G ) i = tw ( G ) | V ( G ) | 1 2 tw ( G ) ( tw ( G ) + 1 ) .
This completes the proof of the proposition. □
While the previous proposition provides an upper bound for the number of edges of a graph in terms of the number of its vertices and its tree-width, the following proposition by Kneis et al. [26] provides an upper bound for the tree-width of a graph in terms of the number of its edges and vertices.
Proposition 2. 
Let G be a graph. Then, it holds that
tw ( G ) | E ( G ) | 5.769 + O ( log ( | V ( G ) | ) ) .
Recall that a graph is said to be k-connected if and only if every pair of its vertices is connected by at least k vertex-disjoint paths [27]. Using Lemma 1, we obtain the following lower bound for the tree-width of k-connected graphs.
Lemma 2. 
Every k-connected graph has tree-width at least k.
Proof. 
Let G be a k-connected graph. By definition, it holds that for all vertices u , v V ( G ) , there exist k vertex-disjoint paths from u to v in G. Consequently, deg G ( u ) k and deg G ( v ) k must be true. In other words, every vertex of G has degree at least k. By the contraposition of Lemma 1, we immediately obtain tw ( G ) k . □
To conclude the preliminary subsection on tree-width, we cite two lemmas by Bodlaender and Möhring [28] that we make use of in later sections.
Lemma 3 
(Clique containment). Let ( X , T ) be a tree-decomposition for a graph G and C V ( G ) be a clique in G. Then, there exists some u V ( T ) with C X u .
Lemma 4 
(Complete bipartite subgraph containment). Let ( X , T ) be a tree-decomposition for a graph G and A , B V ( G ) with A B = and { { u , v } u A , v B } E ( G ) . Then, there exists a vertex u V ( T ) with A X u or B X u .

2.3. Path-Width

In 1983, three years prior to their definition of tree-width, Robertson and Seymour introduced the notion of path-width [29].
Definition 2 
(Path-width). A path-decomposition of a graph G is a sequence ( X 1 , , X r ) of subsets of V ( G ) , called bags, such that the following three conditions hold:
(pw-1) 
1 i r X i = V ( G ) .
(pw-2) 
For every edge { u , v } E ( G ) , there is a set X i , 1 i r , with u , v X i .
(pw-3) 
For all i , j , with 1 i < j < r , it holds that X i X X j .
The width of a path-decomposition ( X 1 , , X r ) is defined as
max 1 i r | X i | 1 .
Finally, the path-width of a graph G, denoted by pw ( G ) , is the smallest integer k, such that there is a path-decomposition ( X 1 , , X r ) for G of width k.
Please note that (pw-1) has no influence on the width of a path-decomposition.
Similar to the tree-width of a graph, the path-width of a graph G is limited by | V ( G ) | 1 , as all vertices of G can be stored in a single bag. However, deciding whether the path-width of a graph is at most a given integer w is NP-complete [30]. Even for special graph classes, such as bipartite graphs, complements of bipartite graphs [10], chordal graphs [31], bipartite distance hereditary graphs [32], and planar graphs with maximum vertex degree 3 [33], it is NP-complete to decide whether the path-width is at most a given integer w. On the other hand, there are also special graph classes, such as permutation graphs [34], circular arc graphs [35], and co-graphs [28], for which one can decide in polynomial time whether the path-width is at most a given integer w.
Example 2 
(Path-decomposition).  X = ( { a , b , c } , { c , f , g } , { c , d , e } ) is a path-decomposition of width 2 for the graph shown in Figure 1a.
Besides the definition of path-width by Robertson and Seymour, there are other definitions of path-width, for example, by the vertex separation number [36]. Again, we refer to the work by Bodlaender [7] for an overview of equivalent definitions.
With a small adaptation to the proof for Lemma 1, we obtain a similar result for path-width.
Lemma 5. 
Every graph of path-width at most k has a vertex of degree at most k.
Using this lemma, we obtain the following proposition for path-width with the same proof as that used for Proposition 1, adapted to path-width.
Proposition 3. 
Let G be a graph. Then, it holds that
| E ( G ) | p w ( G ) | V ( G ) | 1 2 pw ( G ) ( pw ( G ) + 1 ) .
The same work by Kneis et al. [26], which provides an upper bound for the tree-width of a graph in terms of its edges and vertices, also provides an upper bound for the path-width of a graph in terms of its edges and vertices.
Proposition 4. 
Let G be a graph. Then, it holds that
pw ( G ) | E ( G ) | 5.769 + O ( log ( | V ( G ) | ) ) .
Following the same line of argument as in Lemma 1, we obtain the following result for the path-width of k-connected graphs.
Lemma 6. 
Every k-connected graph has path-width at least k.
As every path is a tree, every path-decomposition X = ( X 1 , , X r ) can be interpreted as a tree-decomposition, such that the results from Lemmas 3 and 4 also hold for path-decompositions. Subsequently, we provide reformulations of the results by Bodlaender and Möhring [28], adjusted for path-width.
Lemma 7 
(Clique containment). Let X = ( X 1 , , X r ) be a path-decomposition for a graph G and C V ( G ) a clique in G. Then, there exists some 1 i r with C X i .
Lemma 8 
(Complete bipartite subgraph containment). Let X = ( X 1 , , X r ) be a path-decomposition for a graph G and A , B V ( G ) with A B = and { { u , v } u A , v B } E ( G ) . Then, there exists some 1 i r with A X i or B X i .

2.4. Graph Parameters and Relations

In this subsection, we provide results relating the parameters tree-width and path-width to each other as well as to other well-known graph parameters, such as the following:
  • The independence number  α ( G ) , specifying the size of the largest independent set in G;
  • The clique number  ω ( G ) , specifying the size of the largest clique in G;
  • The chromatic number  χ ( G ) , specifying the least number of distinct colors required to color all vertices of G, such that no two adjacent vertices obtain the same color.
Using the following theorem, we prove that the tree-width of a graph is always bounded by the path-width of the graph, whereas the path-width of a graph cannot be bounded only in the graph’s tree-width but in the tree-width and the number of vertices.
Theorem 1. 
For a graph G, it holds that
tw ( G ) pw ( G ) and pw ( G ) ( tw ( G ) + 1 ) ( log 3 ( 2 | V ( G ) | + 1 ) + 1 ) 1 .
Proof. 
The first relation follows from the definitions of tree-width and path-width, as every path-decomposition can also be interpreted as a tree-decomposition.
The second relation, making use of the idea of Theorem 6 in the work by Korach and Solel [37], can be shown as follows. Let ( X , T ) be a tree-decomposition for G and denote its bags by X u X for u V ( T ) . According to the result (10.16) in the book by Kleinberg and Tardos [38], we can assume ( X , T ) to be a non-redundant tree-decomposition for G, i.e., | V ( T ) | | V ( G ) | holds. Following Scheffler [25], the path-width of any tree S can be limited from above by pw ( S ) log 3 ( 2 | V ( S ) | + 1 ) . Thus, since ( X , T ) is a non-redundant tree-decomposition for G, it follows that there exists a path-decomposition Y for T of path-width pw ( T ) log 3 ( 2 | V ( G ) | + 1 ) . We denote the bags of Y by Y i Y for 1 i r . Given this path-decomposition Y for T, we construct Z = ( Z 1 , , Z r ) with Z i = u Y i X u . By Theorem 6 in the work by Korach and Solel [37], it follows that Z is a path-decomposition for G. We know that | X u | tw ( G ) + 1 holds for all u V ( T ) and that | Y i | log 3 ( 2 | V ( G ) | + 1 ) + 1 for 1 i r . Consequently, it follows that | Z i | ( tw ( G ) + 1 ) ( log 3 ( 2 | V ( G ) | + 1 ) + 1 ) is true for 1 i r , such that we obtain pw ( G ) ( tw ( G ) + 1 ) ( log 3 ( 2 | V ( G ) | + 1 ) + 1 ) 1 . □
By Lemmas 3 and 7, we know that for a complete graph with n N vertices, K n , it holds that tw ( K n ) = n 1 = pw ( K n ) . Consequently, the first inequality stated in Theorem 1 is tight.
For the second inequality, we recall that the path-width of perfect 2-ary trees of height h is h / 2 (cf. [25]) and that for k 3 , the path-width of perfect k-ary trees of height h is exactly h from [39] (Corollary 3.1). Thus, trees have tree-width one while their path-width grows asymptotically in height, which is at least logarithmic in the number of vertices, implying that the second inequality is asymptotically optimal.
The same two lemmas imply that for a graph G, every clique of G is a subset of at least one bag of every tree-decomposition and path-decomposition for G. With this in mind, the following proposition follows immediately.
Proposition 5. 
For a graph G, it holds that
ω ( G ) 1 tw ( G ) and ω ( G ) 1 pw ( G ) .
Chlebíková [40] proved the following proposition’s first bound, i.e., the one for tree-width. To do so, the author argued that by splitting a graph G’s vertices into an independent set I of size α ( G ) and | V ( G ) | α ( G ) subsets V i V ( G ) I of size one, it follows that G is a subgraph of a complete ( | V ( G ) | α ( G ) + 1 ) -partite graph. Then, it is easy to see that the bags X v = ( V ( G ) I ) { v } for v I allow a tree-decomposition of width | V ( G ) | α ( G ) for the ( | V ( G ) | α ( G ) + 1 ) -partite graph. As the same bags X v , v I , allow a path-decomposition as well, the same bound follows for path-width.
Proposition 6. 
For a graph G, it holds that
α ( G ) + tw ( G ) | V ( G ) | and α ( G ) + pw ( G ) | V ( G ) | .
Finally, Chlebíková [40] also proved the following proposition’s first bound. Making use of the first bound in Theorem 1, we extended this result to path-width, too.
Proposition 7. 
For a graph G, it holds that
χ ( G ) tw ( G ) + 1 and χ ( G ) pw ( G ) + 1 .

3. Unary Graph Operations and Graph Transformations

Let G be a non-empty graph and f be a unary graph transformation that creates a new graph f ( G ) from G. In this section, we consider the tree-width and path-width of graph f ( G ) with respect to the tree-width and path-width of G. In particular, we consider the following graph transformations: vertex deletion, vertex addition, edge deletion, edge addition, taking a subgraph, edge subdivision, vertex identification, edge contraction, taking a minor, powers of graphs, line graphs, edge complements, local complements, Seidel switching, and Seidel complementation.

3.1. Vertex Deletion and Vertex Addition

3.1.1. Vertex Deletion

Let G be a graph and v V ( G ) a vertex of G. By G v , we denote the graph we obtain from G when removing v and all its incident edges, i.e.,
G v = ( V ( G ) { v } , E ( G ) { { v , u } u N G ( v ) } ) .
With the graph operation of vertex deletion defined, we now consider the tree-width and path-width of G v .
Theorem 2. 
For a graph G and vertex v V ( G ) , it holds that
tw ( G ) 1 tw ( G v ) tw ( G ) and pw ( G ) 1 pw ( G v ) pw ( G ) .
Proof. 
By removing v from every bag of a tree-decomposition (path-decomposition) for G and deleting all resulting empty bags, we obtain a tree-decomposition (path-decomposition) for G v . Consequently, we obtain tw ( G v ) tw ( G ) and pw ( G v ) pw ( G ) . Adding v and its incident edges to G v results in G, such that the lower bounds follow from the upper bounds of Theorem 3. □

3.1.2. Vertex Addition

Let G be a graph, N V ( G ) be a subset of vertices from G, and v V ( G ) be a newly introduced vertex. By G + N v , we denote the graph we obtain from G when inserting v with neighborhood N G ( v ) = N , i.e.,
G + N v = ( V ( G ) { v } , E ( G ) { { v , u } u N } ) .
In the special case when N G ( v ) = { u } holds for a vertex u V ( G ) , we call v a pendant vertex of G. If N G ( v ) = V ( G ) { v } is true, we call v a dominating vertex of G. With vertex addition defined, we consider the tree-width and path-width of graph G + N v in the following theorem.
Theorem 3. 
For a graph G, a subset of vertices N V ( G ) , and a vertex v V ( G ) , it holds that
tw ( G ) tw ( G + N v ) tw ( G ) + 1 and pw ( G ) pw ( G + N v ) pw ( G ) + 1 .
Proof. 
By introducing v to all bags of a tree-decomposition (path-decomposition) of G, we obtain a tree-decomposition (path-decomposition) of G + N v . Thus, it follows that tw ( G + N v ) tw ( G ) + 1 and pw ( G + N v ) pw ( G ) + 1 are true. By removing v from G + N v , we obtain G. Consequently, the lower bounds follow from the upper bounds of Theorem 2. □
We can always add a pendant vertex to a graph without increasing the graph’s tree-width. To do so, we introduce a new bag that contains the new vertex and its sole neighbor. Then, the new bag is connected to any bag of a tree-decomposition for the graph that already contains the neighbor.
Corollary 1. 
For a graph G, a vertex u V ( G ) , and a newly introduced vertex v V ( G ) , it holds that
tw ( G + { u } v ) = max ( tw ( G ) , 1 ) .
Conversely, the following example shows that the previous statement does not hold with respect to path-width. Introducing a pendant vertex to a graph can increase its path-width.
Example 3. 
The path-decomposition X = ( { a , b } , { b , c } , { c , f } , { c , d } , { d , e } ) shows that the path-width of graph C in Figure 2c is one. By introducing pendant vertex g to C, as depicted in the graph I ( K 1 , 3 ) in Figure 2b, the path-width increases to two: X = ( { a , b } , { b , c } , { c , f , g } , { c , d } , { d , e } ) .

3.2. Edge Addition and Edge Deletion

3.2.1. Edge Deletion

Let G be a graph and v , w V ( G ) be two vertices. For { v , w } E ( G ) , we define by G { v , w } the graph we obtain from G by deleting the edge { v , w } , i.e.,
G { v , w } = ( V ( G ) , E ( G ) { { v , w } } ) .
With edge deletion defined, the following theorem shows that removing an edge from a graph decreases the width of the graph by at most one.
Theorem 4. 
For a graph G and two different vertices v , w V ( G ) , it holds that
tw ( G ) 1 tw ( G { v , w } ) tw ( G ) and pw ( G ) 1 pw ( G { v , w } ) pw ( G ) .
Proof. 
The upper bound follows immediately because a tree-decomposition (path-decomposition) for G is also a tree-decomposition (path-decomposition) for G { v , w } .
As G can be obtained from G { v , w } by adding edge { v , w } , the lower bound follows from the upper bound of Theorem 5. □

3.2.2. Edge Addition

Let G be a graph and v , w V ( G ) be two vertices. For { v , w } E ( G ) , we define by G + { v , w } the graph we obtain from G when adding the edge { v , w } , i.e.,
G + { v , w } = ( V ( G ) , E ( G ) { { v , w } } ) .
Having defined edge addition, our next theorem shows that inserting an edge into a graph increases the graph’s width by at most one.
Theorem 5. 
For a graph G and two different vertices v , w V ( G ) , it holds that
tw ( G ) tw ( G + { v , w } ) tw ( G ) + 1 and pw ( G ) pw ( G + { v , w } ) pw ( G ) + 1 .
Proof. 
Given a tree-decomposition (path-decomposition) for G, we obtain a tree-decomposition (path-decomposition) for G + { v , w } by adding one of the two vertices, v or w, to all its bags. Consequently, tw ( G + { v , w } ) tw ( G ) + 1 and pw ( G + { v , w } ) pw ( G ) + 1 hold.
The lower bounds follow from the fact that a tree-decomposition (path-decomposition) for G + { v , w } is also a tree-decomposition (path-decomposition) for G. □

3.3. Subgraph

So far, we have only studied unary graph operations in this work. However, in this subsection, we deviate from this path and study the unary graph transformation of taking a subgraph. This act of modifying a graph is not deterministic, since there are various subgraphs one can take from any given graph, and it is not explicitly defined which one should be taken. Consequently, taking a subgraph of a graph multiple times can result in different subgraphs, making the studied modification a graph transformation but not a graph operation.
Note that taking a subgraph of a graph can be interpreted as a sequence of vertex-deletion and edge-deletion operations. Hence, every subgraph of a graph can be obtained by deleting selected vertices and edges from the original graph, such that the corollary below follows immediately from Theorems 2 and 4.
Corollary 2. 
For a graph G and any subgraph H of G, it holds that tw ( H ) tw ( G ) and pw ( H ) pw ( G ) .

3.4. Vertex Identification

For a graph G and two different vertices v , w V ( G ) , the identification of v and w in G, denoted by Ident ( G , v , w ) , consists of a vertex set ( V ( G ) { v , w } ) { u } and an edge set
E ( G ) { { x , y } x V ( G ) , y { v , w } } { { x , u } x ( N G ( v ) N G ( w ) ) { v , w } } .
Given this definition of vertex identification, the following result summarizes the graph operation’s effect on the tree-width and path-width of the involved graph.
Theorem 6. 
For a graph G and two different vertices v , w V ( G ) , it holds that
tw ( G ) 1 tw ( Ident ( G , v , w ) ) tw ( G ) + 1 and pw ( G ) 1 pw ( Ident ( G , v , w ) ) pw ( G ) + 1 .
Proof. 
For the upper bounds, let ( X , T ) be a tree-decomposition ( X be a path-decomposition) for G of width tw ( G ) ( pw ( G ) ). To obtain a tree-decomposition (path-decomposition) for Ident ( G , v , w ) , we proceed as follows. In the first step, replace all occurrences of v and w in all bags of X with u and denote the result by X . Since { v , w } is not necessarily an edge of G, X could violate (tw-3) ((pw-3)), i.e., the bags of X containing u might not be connected. In this case, we add u to all bags between the disconnected components. With this, ( X , T ) is a valid tree-decomposition ( X is a valid path-decomposition) for Ident ( G , v , w ) . To obtain X from X , we increase the width by at most one, such that tw ( Ident ( G , v , w ) ) tw ( G ) + 1 ( pw ( Ident ( G , v , w ) ) pw ( G ) + 1 ) follows.
For the lower bounds, we proceed as follows. First, rename vertex u of Ident ( G , v , w ) to v and denote the resulting graph by G . Next, add a new vertex w with neighborhood N G ( w ) to G . By Theorem 3, it follows that tw ( G + N G ( w ) w ) tw ( G ) + 1 and pw ( G + N G ( w ) w ) pw ( G ) + 1 are true. Since G is a subgraph of G + N G ( w ) w , with Corollary 2, we obtain that
tw ( G ) tw ( G + N G ( w ) w ) tw ( Ident ( G , v , w ) ) + 1 and pw ( G ) pw ( G + N G ( w ) w ) pw ( Ident ( G , v , w ) ) + 1
hold, which yields the lower bounds tw ( G ) 1 tw ( Ident ( G , v , w ) ) and pw ( G ) 1 pw ( Ident ( G , v , w ) ) . □
Note that the upper bounds specified in the previous theorem are tight, since a vertex identification on the end vertices of a path results in a cycle with increased tree-width and path-width.

3.5. Edge Contraction

In the case that the two vertices v , w V ( G ) of a vertex identification Ident ( G , v , w ) are adjacent, i.e., { v , w } E ( G ) , we call the operation an edge contraction.
Theorem 7. 
For a graph G and two different vertices v , w V ( G ) with { v , w } E ( G ) , it holds that
tw ( G ) 1 tw ( Ident ( G , v , w ) ) tw ( G ) and pw ( G ) 1 pw ( Ident ( G , v , w ) ) pw ( G ) .
Proof. 
Let ( X , T ) be a tree-decomposition ( X be a path-decomposition) for G of width tw ( G ) ( pw ( G ) ). We replace all occurrences of v and w in all bags of X with u and denote the resulting decomposition by X . Since v and w are adjacent in G, we know by (tw-2) ((pw-2)) that there is at least one bag in X that contains v and w. Consequently, (tw-3) ((pw-3)) must hold for X , and it follows that ( X , T ) is a valid tree-decomposition ( X is a valid path-decomposition) for Ident ( G , v , w ) of width at most tw ( G ) ( pw ( G ) ). Because { v , w } E ( G ) is true, we can argue that (tw-3) ((pw-3)) holds for X . This argument is not valid for an arbitrary vertex identification, as v and w are not guaranteed to be adjacent (see Theorem 6).
The lower bounds follow from the same argument as for the lower bounds in the proof of Theorem 6. □
Contracting any edge of a clique K n of size n results in a clique K n 1 of size n 1 . By Lemma 3 (Lemma 7), we know that tw ( K n ) = n 1 ( pw ( K n ) = n 1 ) holds. Consequently, the lower bounds specified in the previous theorem are tight.

3.6. Edge Subdivision

Let G be a graph, u V ( G ) be a newly introduced vertex, and { v , w } E ( G ) be an edge of G. The edge subdivision of { v , w } in G, denoted by Subdiv ( G , v , w ) , consists of a vertex set V ( G ) { u } and an edge set ( E ( G ) { { v , w } } ) { { v , u } , { u , w } } .
With this definition, the following theorem states the effect of an edge subdivision on the tree-width and path-width of a given graph.
Theorem 8. 
For a graph G and an edge { v , w } E ( G ) , it holds that
tw ( Subdiv ( G , v , w ) ) = tw ( G ) and pw ( G ) pw ( Subdiv ( G , v , w ) ) pw ( G ) + 1 .
Proof. 
G is isomorphic to Ident ( Subdiv ( G , v , w ) , u , w ) , such that the upper bounds of Theorem 7 yield
tw ( G ) = tw ( Ident ( Subdiv ( G , v , w ) , u , w ) ) tw ( Subdiv ( G , v , w ) ) and pw ( G ) = pw ( Ident ( Subdiv ( G , v , w ) , u , w ) ) pw ( Subdiv ( G , v , w ) ) ,
resulting in this theorem’s lower bounds.
For the upper bound of tree-width, let us distinguish the following two cases:
Case 1: 
tw ( G ) = 1 . In this case, G is a forest. Since an edge subdivision does not alter this fact, Subdiv ( G , v , w ) is still a forest, and tw ( Subdiv ( G , v , w ) ) = 1 must hold.
Case 2: 
tw ( G ) > 1 . In this case, the biggest bag of every tree-decomposition of G contains at least three vertices. Furthermore, by (tw-2), it follows that in every tree-decomposition of G, there is at least one bag that contains v and w. Let us denote this bag by X. Adding a new bag X with vertices { u , v , w } and making it adjacent to X results in a tree-decomposition of Subdiv ( G , v , w ) with unaltered size, such that tw ( Subdiv ( G , v , w ) ) tw ( G ) follows.
For the upper bound of path-width, we proceed as follows. By (pw-2), we know that in every path-decomposition of G there exists a bag containing v and w. Adding u to this bag, we obtain a valid path-decomposition for Subdiv ( G , v , w ) . Consequently, pw ( Subdiv ( G , v , w ) ) pw ( G ) + 1 follows. □
The upper bound for path-width given in the previous theorem is tight. The path-width of the caterpillar graph C in Figure 2c is equal to one. A caterpillar graph is a tree for which the removal of all pendant vertices results in a chordless path. Conversely, the path-width of the graph obtained by subdividing edge { c , f } of C, depicted as I ( K 1 , 3 ) in Figure 2b, is two. Please note that I ( K 1 , 3 ) is one of the two forbidden minors of the set of all graphs of path-width one (see [41] and Section 3.7).
After subdividing all edges of a graph, the resulting graph must be bipartite. The resulting graph obtained after subdividing all edges of a graph G is called the incidence graph of G, denoted by I ( G ) . The following corollary provides bounds for a graph’s incidence graph and follows from Theorem 8.
Corollary 3. 
For a graph G, it holds that
tw ( I ( G ) ) = tw ( G ) and pw ( G ) pw ( I ( G ) ) pw ( G ) + 1 .
Proof. 
The result for tree-width follows directly from Theorem 8.
By contracting all subdivided edges of I ( G ) , we obtain G. By Theorem 7, we know that edge contractions do not increase the resulting graph’s path-width, such that pw ( G ) pw ( I ( G ) ) follows.
Denote by X a path-decomposition for G of width pw ( G ) , and let { v , w } E ( G ) be an edge of G and x { v , w } be the node introduced to subdivide the edge. By (pw-2), we know that there is a bag X in X with v , w X . We introduce a new bag X = X { x { v , w } } to X as a successor to X and denote the resulting decomposition by X . Then, X is a path-decomposition for Subdiv ( G , v , w ) of width pw ( G ) + 1 .
Vertex x { v , w } appears in exactly one modified bag, X , and X is a superset of the original bag X. Therefore, for every edge of G, we can repeat the previous argument and add a separate, modified bag to the same path-decomposition without increasing its final width by more than one. If required, multiple modified copies of the same original bag can be lined up as successors to each other. By doing so, we obtain a path-decomposition for I ( G ) of width pw ( G ) + 1 , such that pw ( I ( G ) ) pw ( G ) + 1 follows. □

3.7. Minor

Every graph H one may obtain from a given graph G, by applying a finite sequence of arbitrary edge-deletion and edge-contraction operations, is called a minor of G. Obviously, taking a minor is a graph transformation but not a graph operation, as the applied sequence of operations is not deterministic.
Given this definition, the theorem below follows immediately from Theorem 4 and Theorem 7.
Theorem 9. 
For a graph G and a minor H of G, it holds that tw ( H ) tw ( G ) and pw ( H ) pw ( G ) .
In other words, the fact that a graph has tree-width (path-width) at most k N is preserved under the graph transformation of taking a minor.
Subsequently, we cite probably one of the most important theorems in graph theory, the minor theorem, shown by Robertson and Seymour [42].
Theorem 10 
(Minor theorem). In every infinite set of graphs, there are two graphs such that one of them is a minor of the other.
Before the minor theorem was proven by Robertson and Seymour, it was known as Wagner’s conjecture [43]. The following theorem is an important corollary of the minor theorem [42].
Theorem 11. 
Every set of graphs that is closed under minors can be defined by a finite set of forbidden minors.
For k N , Theorem 9 implies that the set of graphs with tree-width (path-width) at most k is closed under minors. Consequently, Theorem 11 then implies that the set of graphs with tree-width (path-width) at most k can be characterized by a finite set of forbidden minors. For small values of k, these sets of forbidden minors are known. For example, Kinnersley and Langston [41] characterized the set of all graphs with path-width at most one by the forbidden minors K 3 and I ( K 1 , 3 ) (cf. Figure 2). Furthermore, they characterized the set of graphs with path-width at most two by 110 forbidden minors [41]. The set of all graphs with tree-width at most one is characterized by the forbidden minor K 3 , and the set of all graphs with tree-width at most two is characterized by the forbidden minor K 4 (see the work by Bodlaender and van Antwerpen-de Fluiter [44]). For the four forbidden minors that characterize the set of all graphs with tree-width at most three, see the work by Arnborg, Proskurowski, and Corneil [45].
The main algorithmic consequence of the minor theorem is stated in the following theorem, the minor test, also shown by Robertson and Seymour [46].
Theorem 12 
(Minor test). For a fixed graph H and a given graph G, one can decide in time in O ( | V ( G ) | 3 ) whether H is a minor of G.
A more precise formulation of the runtime would be O ( f ( k ) | V ( G ) | 3 ) for some function f and k size ( H ) .
From a parameterized point of view, the minor test is fixed-parameter tractable with respect to the parameter size ( H ) . However, the constant behind the O -notation in Theorem 12 depends on the parameter size ( H ) and is huge. Kawarabayashi, Kobayashi, and Reed [47] showed an improved version of the previous result, allowing one to decide the minor test in time in O ( | V ( G ) | 2 ) .
The corollary below follows immediately from Theorem 11 and the application of Theorem 12 for every forbidden minor.
Corollary 4. 
For every set of graphs G that is closed under minors, and for every graph G, one can decide in time polynomial in the size of G whether G G holds.
Nevertheless, an implicit precondition of the corollary is that the set of all forbidden minors characterizing G is known.
Another result by Robertson and Seymour [48] is the so-called grind minor theorem, also known as the excluded grid theorem.
Theorem 13 
(Grid minor theorem). There is a function f : N N , such that every graph with tree-width at least f ( k ) has a k × k -grid graph as a minor.
Even if the grid minor theorem seems very technical at first, it has a direct effect on the tree-width of a graph, as shown by the following theorem from the same work by Robertson and Seymour [48].
Theorem 14. 
For every planar graph H, there is an integer k N , such that every graph without H as a minor has tree-width at most k.
Prior to this result for tree-width, Robertson and Seymour [29] proved an analogue result with respect to path-width.
Theorem 15. 
For every forest H, there is an integer k N , such that every graph without H as a minor has path-width at most k.

3.8. Power of a Graph

For d N and a graph G, we denote the d-th power of G by G d . Thus, G d has the same set of vertices as G, i.e., V ( G d ) = V ( G ) , and two vertices of G d are adjacent if and only if there exists a path of length at most d in G between these vertices.
To begin, the following lemma provides an upper bound on the number of neighbors each vertex might have in the d-th power of a graph G.
Lemma 9. 
Given d N and a graph G, for every vertex v V ( G ) , it holds that
deg G d ( v ) Δ ( G ) i = 0 d 1 ( Δ ( G ) 1 ) i .
Proof. 
Let v V ( G ) be a vertex of G. To obtain an upper bound on the number of neighbors v might have in G d , we derive an upper bound for the number of vertices reachable from v within a distance of at most d in G. By definition, we know that deg G ( v ) Δ ( G ) holds, such that v has at most Δ ( G ) neighbors in G. By the same argument, every neighbor u of v in G has at most Δ ( G ) neighbors. However, one of those neighbors of u is v, such that u has at most Δ ( G ) 1 not-yet-considered neighbors. Repeating the previous argument d 1 times, we obtain an upper bound on the number of vertices at an exact distance d to v,
Δ ( G ) ( Δ ( G ) 1 ) d 1 .
Since we are interested in an upper bound on the number of vertices with a distance of at most d to v, we need to sum up the upper bounds for all intermediate distances from one up to d. By doing so, we obtain
Δ ( G ) + Δ ( G ) ( Δ ( G ) 1 ) + + Δ ( G ) ( Δ ( G ) 1 ) d 1 = Δ ( G ) i = 0 d 1 ( Δ ( G ) 1 ) i .
As every vertex that is reachable from v in G within a distance of at most d is adjacent to v in G d , it follows that
deg G d ( v ) Δ ( G ) i = 0 d 1 ( Δ ( G ) 1 ) i
holds. □
Note that the previously stated upper bound is tight. To see this, consider a tree T with root v V ( T ) and three binary subtrees of equal but arbitrary depth adjacent to v.
The following theorem makes use of this upper bound for a vertex’s number of neighbors in the d-th power of a graph to study the effect of raising a graph to the power of d with respect to tree-width and path-width.
Theorem 16. 
For d N and a graph G, it holds that
tw ( G ) tw ( G d ) ( tw ( G ) + 1 ) 1 + Δ ( G ) i = 0 d 1 ( Δ ( G ) 1 ) i 1 and pw ( G ) pw ( G d ) ( pw ( G ) + 1 ) 1 + Δ ( G ) i = 0 d 1 ( Δ ( G ) 1 ) i 1 .
Proof. 
The lower bounds follow from Corollary 2, as G is a subgraph of G d .
For the upper bounds, denote by ( X , T ) a tree-decomposition (by X a path-decomposition) of G. By constructing G d , we know all neighbors of every vertex v V ( G ) in G d . To obtain a tree-decomposition (path-decomposition) for G d , for every vertex v V ( G ) , we add all neighbors of v in G d , i.e., N G d ( v ) , to every bag X X containing v. We denote the resulting bag by X and the resulting set of bags by X . Then, by Lemma 9, every bag of X contains at most
( tw ( G ) + 1 ) 1 + Δ ( G ) i = 0 d 1 ( Δ ( G ) 1 ) i ( pw ( G ) + 1 ) 1 + Δ ( G ) i = 0 d 1 ( Δ ( G ) 1 ) i
vertices. Taking G to the power of d does not alter the set of vertices, i.e., V ( G ) = V ( G d ) , such that ( X , T ) ( X ) still satisfies (tw-1) ((pw-1)). By adding, for every vertex v V ( G ) , all neighbors of v in G d to every bag containing v, all new edges introduced into G d are covered, such that ( X , T ) ( X ) satisfies (tw-2) ((pw-2)). To see that ( X , T ) ( X ) satisfies (tw-3) ((pw-3)), let v V ( G ) be any vertex of G and denote by X s , X t X two bags with v X s , X t . We consider three cases:
  • If it holds that v X s , X t for X s , X t X , it immediately follows that v is also in all bags connecting X s and X t , since ( X , T ) ( X ) satisfies (tw-3) ((pw-3)).
  • If it holds that v X s but v X t , there must be a vertex u X t with dist G ( u , v ) d , as otherwise, v X t would not hold. Since dist G ( u , v ) d , there is a path p G between u and v in G of length at most d. Consequently, with ( X , T ) ( X ) satisfying (tw-2) ((pw-2)) and (tw-3) ((pw-3)), there must also be a path p T between s and t, such that for every t in p T , there is a vertex v in p G with v X t . For every such vertex v , it holds that dist G ( v , v ) dist G ( u , v ) d , so that by the construction of X , it follows that v X t holds. Therefore, also in this case, all bags between X s and X t must contain v.
  • Finally, if v X s and v X t , there must be at least one bag X r X with v X r , and we can repeat the previous argument for X r , X s and X r , X t .
Consequently, ( X , T ) ( X ) is a tree-decomposition (path-decomposition) for G d of width
( tw ( G ) + 1 ) 1 + Δ ( G ) i = 0 d 1 ( Δ ( G ) 1 ) i 1 ( pw ( G ) + 1 ) 1 + Δ ( G ) i = 0 d 1 ( Δ ( G ) 1 ) i 1
and the upper bound follows. □

3.9. Line Graph

In this subsection, we study the graph operation of creating a graph’s line graph, using the notation formulated by Harary and Norman [49].
For a graph G, its line graph, L ( G ) , is defined by
V ( L ( G ) ) = { x { u , v } { u , v } E ( G ) } and E ( L ( G ) ) = { { x e , x f } | e f | = 1 } .
In other words, the line graph L ( G ) of a graph G has a vertex for every edge of G, and two vertices of L ( G ) are adjacent if the corresponding edges in G are adjacent. The concept of a line graph, although not explicitly called a line graph, was first used by Whitney [27] in 1932.
Furthermore, the underlying graph G of a given line graph L ( G ) is called the root graph of L ( G ) .
Given a graph G, it is possible to bound the tree-width (path-width) of its line graph in terms of the tree-width (path-width) of G and G’s maximum vertex degree.
Theorem 17. 
For a graph G, it holds that
tw ( G ) 1 tw ( L ( G ) ) ( tw ( G ) + 1 ) Δ ( G ) 1 and 1 2 ( pw ( G ) + 1 ) 1 pw ( L ( G ) ) ( pw ( G ) + 1 ) Δ ( G ) 1 .
Proof. 
The stated lower bound for the tree-width of L ( G ) was shown by Harvey and Wood [50] in Proposition 2.3.
A slightly weaker bound can be obtained as follows. Let ( X , T ) be a tree-decomposition for L ( G ) of width tw ( L ( G ) ) . In every bag of ( X , T ) , replace each edge of G with both of its endpoints. Then, we can obtain a tree-decomposition for G of width at most 2 ( tw ( L ( G ) ) + 1 ) 1 , such that 1 2 ( tw ( G ) + 1 ) 1 tw ( L ( G ) ) follows. A similar argument results in the stated lower bound for path-width.
The upper bounds are known from several works [51,52,53] and can be obtained as follows. Let ( X , T ) be a tree-decomposition ( X a path-decomposition) for G of width tw ( G ) ( pw ( G ) ). If we replace every bag X u X with the set of all edges incident to at least one vertex in X u , we obtain a tree-decomposition (path-decomposition) for L ( G ) of width at most ( tw ( G ) + 1 ) Δ ( G ) 1 ( ( pw ( G ) + 1 ) Δ ( G ) 1 ). □
Stricter upper bounds than the ones shown in Theorem 17 can be found in Theorem 1.3 in the work by Harvey and Wood [50].
Furthermore, it is easy to confirm that for every graph G, the edges incident to a vertex of G with degree Δ ( G ) form a clique of size Δ ( G ) in L ( G ) . With Lemmas 3 and 7, the following corollary follows immediately.
Corollary 5. 
For a graph G, it holds that tw ( L ( G ) ) Δ ( G ) 1 and pw ( L ( G ) ) Δ ( G ) 1 .
For special graphs, the inequality turns into an equality, as the following result shows.
Proposition 8. 
Let G be a graph. If tw ( G ) = 1 is true, it holds that tw ( L ( G ) ) = Δ ( G ) 1 . If pw ( G ) = 1 is true, it holds that pw ( L ( G ) ) = Δ ( G ) 1 .
The statement for tree-width was shown by Harvey and Wood [50]. The statement for path-width follows from two arguments. For the lower bound, we refer to Corollary 5. For the upper bound, we know from Section 3.7 that a graph G of path-width one can be identified as a disjoint union of caterpillar graphs, allowing one to construct a path-decomposition of width at most Δ ( G ) 1 for L ( G ) .
In addition to providing a direct equation for how to obtain a line graph’s tree-width (path-width) from its root graph’s tree-width (path-width) if the root graph is a forest (caterpillar graph), the previous proposition shows that a line graph’s tree-width (path-width) cannot be bounded in terms of its root graph’s tree-width (path-width).
We conclude this subsection with a theorem by Harvey and Wood [54], showing how to derive a line graph’s tree-width (path-width) from its root graph if the root graph is a complete graph.
Theorem 18. 
For n 2 , it holds that
tw ( L ( K n ) ) = pw ( L ( K n ) ) = n 1 2 n 1 2 + n 2 , if n is odd , n 2 2 n 2 + n 2 , if n is even .

3.10. Edge Complement

In this subsection, we study the graph operation of creating a graph’s edge complement graph. The edge complement graph of a graph G, denoted by co- G , has the same vertex set as G, and two vertices are adjacent in co- G if and only if they are not adjacent in G, i.e.,
V ( co- G ) = V ( G ) and E ( co- G ) = { { u , v } u , v V ( G ) , u v , { u , v } E ( G ) } .
Let K 1 , be a star graph with one dominating vertex v in the center and vertices u i , 1 i , as satellites, all only adjacent to v. Then, the edge complement graph of K 1 , , co- K 1 , , consists of an isolated vertex v and a clique of size formed by all satellites u i , 1 i . Since neither K 3 nor I ( K 1 , 3 ) is a minor of K 1 , , we know from Section 3.7 that pw ( K 1 , ) = tw ( K 1 , ) = 1 holds. However, by Lemmas 3 and 7, it follows that tw ( co- K 1 , ) = pw ( co- K 1 , ) = 1 is true. Therefore, it is generally impossible to bound the tree-width (path-width) of an edge complement graph co- G in terms of the tree-width (path-width) of the original graph G.
Nevertheless, Joret and Wood [55] proved the following theorem, providing a lower bound for the tree-width of a graph’s edge complement graph. Note that formulating bounds of the form f ( G ) + f ( co- G ) for a graph parameter f is known as the Nordhaus–Gaddum problem.
Theorem 19. 
For a graph G, it holds that
tw ( G ) + tw ( co - G ) | V ( G ) | 2 .
In their work, Joret and Wood also showed that the specified bound is tight. As pw ( G ) tw ( G ) is true for every graph G, the corollary below follows immediately.
Corollary 6. 
For a graph G, it holds that
pw ( G ) + pw ( co - G ) | V ( G ) | 2 .
For the path with four vertices, P 4 , it holds that co- P 4 P 4 as well as pw ( P 4 ) = 1 . Consequently, we obtain
pw ( P 4 ) + pw ( co- P 4 ) = pw ( P 4 ) + pw ( P 4 ) = 2 = | V ( P 4 ) | 2 ,
such that the bound specified in Corollary 6 is also tight.

3.11. Local Complementation

In his work, Bouchet [56] introduced the graph operation local complementation. Given a graph G and a vertex v V ( G ) , the local complementation of G, denoted by L C ( G , v ) , is defined by
V ( L C ( G , v ) ) = V ( G ) and E ( L C ( G , v ) ) = E ( G ) { { u , w } u , w N G ( v ) } { { u , w } u , w N G ( v ) , u w , { u , w } E ( G ) } .
In other words, L C ( G , v ) is obtained from a graph G by replacing the subgraph of G induced by N G ( v ) with its edge complement. Recall that v N G ( v ) holds, such that the neighborhood of v in L C ( G , v ) is the same as in G.
Denote by K 1 , the star graph we already made use of in Section 3.10. By applying a local complementation to the dominating vertex v, it is easy to see that L C ( K 1 , , v ) equals a clique of size + 1 . The star K 1 , has tree-width and path-width one, while L C ( K 1 , , v ) has tree-width and path-width . Therefore, in general, the tree-width (path-width) of a graph G’s local complement L C ( G , v ) cannot be bounded in terms of the tree-width (path-width) of G.

3.12. Seidel Switching

The Seidel switching operation was introduced by the Dutch mathematician J.J. Seidel in connection with regular structures, such as systems of equiangular lines, strongly regular graphs, or so-called two-graphs [57,58,59]. Several examples of applications of Seidel switching can be found in algorithms, e.g., in a polynomial-time algorithm for the P 3 -structure recognition problem [60] or in an algorithm for the construction of bi-join decompositions of graphs [61].
For a graph G and a vertex v V ( G ) , the graph resulting from a Seidel switching operation, denoted by S ( G , v ) , is defined as follows. The vertex set of S ( G , v ) is the same as the vertex set of G, i.e., V ( S ( G , v ) ) = V ( G ) , and the edge set of S ( G , v ) is defined as
E ( S ( G , v ) ) = E ( G ) { { v , w } w N G ( v ) } { { v , w } w V ( G ) ( N G ( v ) { v } ) } .
In other words, every neighbor of v in G is a non-neighbor of v in S ( G , v ) , and every non-neighbor of v in G is a neighbor of v in S ( G , v ) .
Given this definition of Seidel switching, by extending a result by Bodlaender and Hage [62], we show that a single Seidel switching operation increases or decreases a graph’s tree-width and path-width by at most one.
Theorem 20. 
For a graph G and a vertex v V ( G ) , it holds that
tw ( G ) 1 tw ( S ( G , v ) ) tw ( G ) + 1 and pw ( G ) 1 pw ( S ( G , v ) ) pw ( G ) + 1 .
Proof. 
For the upper bounds, let ( X , T ) be a tree-decomposition ( X a path-decomposition) for G of width tw ( G ) ( pw ( G ) ). When we add v to all bags of X , denoting the resulting set of bags by X , we obtain a tree-decomposition ( X , T ) (a path-decomposition X ) for S ( G , v ) of width at most tw ( G ) + 1 ( pw ( G ) + 1 ). Consequently, tw ( S ( G , v ) ) tw ( G ) + 1 ( pw ( S ( G , v ) ) pw ( G ) + 1 ) follows.
Since S ( S ( G , v ) , v ) = G holds, we can derive the lower bound from the upper bound via tw ( G ) = tw ( S ( S ( G , v ) , v ) tw ( S ( G , v ) ) + 1 ( pw ( G ) = pw ( S ( S ( G , v ) , v ) ) pw ( S ( G , v ) ) + 1 ). □
Note that the bounds shown in Theorem 20 are tight. To convince oneself of this fact, consider the path with four vertices, P 4 . Its tree-width and path-width are one. Denote by v one of the two vertices in P 4 with degree one. Then, S ( P 4 , v ) contains K 3 as a minor, such that a tree-width and path-width of at least two follow. Following the example in the opposite direction, i.e., applying the Seidel switching operation to S ( P 4 , v ) for the same vertex v provides an example that the lower bound is also tight.
In 1980, Colbourn and Corneil [63] studied the complexity of the decision problem of whether two graphs are switching equivalent. In their work, they proved that this decision problem is polynomial-time equivalent to the decision problem of graph isomorphism. Thus, two graphs G and G with the same vertex set V are called switching equivalent if there exists a sequence of vertices ( v 1 , , v ) in V, such that for G 0 = G and G i = S ( G i 1 , v i ) , 1 i , it holds that G = G . In 2012, Bodlaender and Hage [62] considered in their work the tree-width of switching classes. By the definition of switching equivalence and via Theorem 20, we can formulate the following corollary, contributing to the research on the tree-width of switching classes initiated by Bodlaender and Hage.
Corollary 7. 
Let G and G be two switching equivalent graphs and denote by ( v 1 , , v ) a sequence of vertices such that G = G is true. Then, it holds that
tw ( G ) tw ( G ) + and pw ( G ) pw ( G ) + .

3.13. Seidel Complementation

Limouzy [64] defined the Seidel complementation operation in order to provide a characterization for permutation graphs. For a graph G and a vertex v V ( G ) , the graph resulting from the Seidel complementation operation, denoted by S C ( G , v ) , has the same vertices as G, i.e., V ( S C ( G , v ) ) = V ( G ) , and edge set
E ( S C ( G , v ) ) = E ( G ) { { x , y } { v , x } E ( G ) , { v , y } E ( G ) } .
In other words, the edge set of S C ( G , v ) equals the edge set of G, with edges and non-edges between the neighborhood and non-neighborhood of v complemented.
Let G be a graph that consists of two parts. The first part is a star with vertex v as the dominating vertex and N satellites u 1 , , u , adjacent to v. The second part is a set of isolated vertices, w 1 , , w . Since G has neither a K 3 nor an I ( K 1 , 3 ) as a minor, we know that tw ( G ) = pw ( G ) = 1 holds. By applying the Seidel complementation operation to vertex v, S C ( G , v ) contains a complete bipartite subgraph formed by the vertices u 1 , , u , w 1 , , w . By Lemma 4 (Lemma 8), it follows that tw ( S C ( G , v ) ) 1 ( pw ( S C ( G , v ) ) 1 ) is true. Consequently, we conclude that, given a graph G and a vertex v V ( G ) , the tree-width (path-width) of S C ( G , v ) cannot be bounded by the tree-width (path-width) of G.

4. Binary Graph Operations

Let G 1 , G 2 be two non-empty graphs and f be a binary graph operation that creates a new graph f ( G 1 , G 2 ) from G 1 and G 2 . In this section, we consider the tree-width and path-width of f ( G 1 , G 2 ) with respect to those of the initial graphs G 1 and G 2 . In particular, we study the following binary graph operations disjoint union, join, union, substitution, various types of graph products, 1-sum, and corona.

4.1. Disjoint Union

The disjoint union of two vertex-disjoint graphs G 1 and G 2 , denoted by G 1 G 2 , is defined as the graph with vertex set V ( G 1 ) V ( G 2 ) and edge set E ( G 1 ) E ( G 2 ) .
Bodlaender and Möhring [28] proved the following theorem with respect to the tree-width and path-width of a graph that is the disjoint union of two vertex-disjoint graphs.
Theorem 21. 
Let G 1 and G 2 be two vertex-disjoint graphs. Then, it holds that
tw ( G 1 G 2 ) = max ( tw ( G 1 ) , tw ( G 2 ) )
and
pw ( G 1 G 2 ) = max ( pw ( G 1 ) , pw ( G 2 ) ) .
These bounds imply that the tree-width and path-width of a graph can be derived from the tree-width and path-width of its connected components.
Corollary 8. 
Let G be a graph. It holds that the tree-width of G is equal to the maximum tree-width, and the path-width of G is equal to the maximum path-width of its connected components.

4.2. Join

The join of two vertex-disjoint graphs G 1 and G 2 , denoted by G 1 G 2 , is defined as the graph with vertex set V ( G 1 ) V ( G 2 ) and edge set
E ( G 1 ) E ( G 2 ) { { v 1 , v 2 } v 1 V ( G 1 ) , v 2 V ( G 2 ) } .
As with the disjoint union of two graphs, Bodlaender and Möhring [28] proved the following theorem with respect to the tree-width and path-width of a graph that is the join of two vertex-disjoint graphs.
Theorem 22. 
Let G 1 and G 2 be two vertex-disjoint graphs. Then, for the join of G 1 and G 2 , it holds that
tw ( G 1 G 2 ) = min ( tw ( G 1 ) + | V ( G 2 ) | , tw ( G 2 ) + | V ( G 1 ) | )
and
pw ( G 1 G 2 ) = min ( pw ( G 1 ) + | V ( G 2 ) | , pw ( G 2 ) + | V ( G 1 ) | ) .
Combining Theorems 21 and 22 implies that for every co-graph G, it holds that tw ( G ) = pw ( G ) , and both widths can be computed in linear time [28].

4.3. Union

The union of two graphs G 1 and G 2 with V ( G 1 ) = V ( G 2 ) , denoted by G 1 G 2 , is defined as the graph with vertices V ( G 1 ) and edge set E ( G 1 ) E ( G 2 ) . Thus, two vertices are adjacent in G 1 G 2 if and only if they are adjacent in G 1 or in G 2 .
In general, it is not possible to bound the tree-width (path-width) of the union of two graphs in terms of the tree-widths (path-widths) of the individual graphs. To see why this is the case, consider the following example.
Example 4. 
For m , n N , define the set of vertices V = { v i , j 1 i m , 1 j n } . Next, denote by G 1 the disjoint union of m paths with n vertices from V, P n i = ( { v i , j 1 j n } , { { v i , j , v i , j + 1 } 1 j < n } ) , 1 i m , and by G 2 the disjoint union of n paths on m vertices from V, P m j = ( { v i , j 1 i m } , { { v i , j , v i + 1 , j } 1 i < m } ) , 1 j n . Since paths have a tree-width (path-width) of 1, it follows from Theorem 21 that tw ( G 1 ) = tw ( G 2 ) = 1 ( pw ( G 1 ) = pw ( G 2 ) = 1 ) holds.
The union, G 1 G 2 , of G 1 and G 2 is an n × m -grid graph, and Bodlaender [7] proved that the tree-width (path-width) of an n × m -grid graph equals min ( n , m ) . Consequently, it is not possible to bound the tree-width (path-width) of G 1 G 2 in the tree-widths (path-widths) of G 1 and G 2 .
See Figure 3 for an explicit example of G 1 , G 2 and the resulting union G 1 G 2 .

4.4. Substitution

Let G 1 and G 2 be two vertex-disjoint graphs, and let v V ( G 1 ) be a vertex. The substitution of v by G 2 in G 1 , denoted by G 1 [ v / G 2 ] , is defined as the graph with vertex set ( V ( G 1 ) { v } ) V ( G 2 ) and edge set
( E ( G 1 ) { { v , w } w N G 1 ( v ) } ) { { u , w } u V ( G 2 ) , w N G 1 ( v ) } E ( G 2 ) .
The vertex set V ( G 2 ) is called a module of the graph G 1 [ v / G 2 ] , since all vertices of V ( G 2 ) are adjacent to the same vertices of V ( G 1 [ v / G 2 ] ) V ( G 2 ) in G 1 [ v / G 2 ] .
Given this definition of substitution, the following theorem considers the tree-width (path-width) of G 1 [ v / G 2 ] in terms of the tree-width (path-width) of G 1 and G 2 .
Theorem 23. 
For two vertex-disjoint graphs G 1 , G 2 and vertex v V ( G 1 ) , it holds that
max ( tw ( G 1 ) , tw ( G 2 ) ) tw ( G 1 [ v / G 2 ] ) min ( tw ( G 1 ) + | V ( G 2 ) | , tw ( G 2 ) + | V ( G 1 ) | ) 1
and
max ( pw ( G 1 ) , pw ( G 2 ) ) pw ( G 1 [ v / G 2 ] ) min ( pw ( G 1 ) + | V ( G 2 ) | , pw ( G 2 ) + | V ( G 1 ) | ) 1 .
Proof. 
The lower bounds follow from Corollary 2, as G 1 and G 2 are subgraphs of G 1 [ v / G 2 ] . For the upper bounds, this can be achieved in two ways:
  • Replace v in every bag of a tree-decomposition (path-decomposition) of width tw ( G 1 ) ( pw ( G 1 ) ) for G 1 with V ( G 2 ) ;
  • Add to every bag of a tree-decomposition (path-decomposition) of width tw ( G 2 ) ( pw ( G 2 ) ) for G 2 the set V ( G 1 ) { v } .
As both alternatives result in a valid tree-decomposition (path-decomposition) for G 1 [ v / G 2 ] , the upper bound follows. □
Note that the upper bounds described in the previous theorem are tight, as for two cliques K n , K m and a vertex v V ( K n ) , we have K n [ v / K m ] = K n + m 1 with
tw ( K n + m 1 ) = n + m 2 = min ( tw ( K n ) + m , tw ( K m ) + n ) 1 and pw ( K n + m 1 ) = n + m 2 = min ( pw ( K n ) + m , pw ( K m ) + n ) 1 .
Besides this general upper bound for tree-width, the following proposition can provide an even stricter upper bound in specific situations.
Proposition 9. 
Let G 1 , G 2 be two vertex-disjoint graphs, and let v V ( G 1 ) be a non-isolated vertex. Then, it holds that
tw ( G 1 [ v / G 2 ] ) max ( tw ( G 1 ) 1 , tw ( G 2 ) ) + | N G 1 ( v ) | .
Proof. 
Let ( X 1 , T 1 ) be a tree-decomposition for G 1 of width tw ( G 1 ) , and let ( X 2 , T 2 ) be a tree-decomposition for G 2 of width tw ( G 2 ) . Replace v with N G 1 ( v ) in every bag of X 1 , and denote the modified set of bags by X 1 . Then, ( X 1 , T 1 ) is a tree-decomposition for G 1 { v } of width at most tw ( G 1 ) 1 + | N G 1 ( v ) | . Subsequently, add N G 1 ( v ) to all bags of X 2 , and denote the modified set of bags by X 2 . Let v 1 V ( T 1 ) be a vertex of T 1 with N G 1 ( v ) X v 1 for X v 1 X 1 , and let v 2 be any vertex of T 2 . Then, ( X , T ) with X = X 1 X 2 , V ( T ) = V ( T 1 ) V ( T 2 ) , and E ( T ) = E ( T 1 ) E ( T 2 ) { v 1 , v 2 } is a tree-decomposition for G 1 [ v / G 2 ] of width at most max ( tw ( G 1 ) 1 , tw ( G 2 ) ) + | N G 1 ( v ) | . □

4.5. Graph Product

The graph product of two vertex-disjoint graphs G 1 and G 2 is a new graph with vertex set V ( G 1 ) × V ( G 2 ) and an edge set derived from the adjacency, equality, or non-adjacency of vertices in the original graphs G 1 and G 2 . In this work, we consider the Cartesian [65], categorical [66], co-normal [67], lexicographic [68], and normal [65] graph products, as well as the symmetric difference [67] and the rejection [67]. Weichsel introduced the categorical graph product as the “Kronecker product”, while Harary and Wilcox referred to it as the “conjunction”. The normal graph product was introduced by Sabidussi as the “strong product”. The co-normal graph product was introduced by Harary and Wilcox as the “disjunction”, and the lexicographic graph product was initially defined by Harary as the “composition”. All graph products, their respective notations, and the edge sets of the resulting graphs are listed in Table 1. For more exhaustive definitions and in-depth results on these graph products, we refer to the works by Imrich and Klavzar [69] and Jensen and Toft [70].
Besides these graph products, Teh and Yap defined the γ -product of two graphs G 1 and G 2 as G 1 ¯ G 2 ¯ ¯ [71]. By transforming the edge set of the γ -product of two graphs G 1 and G 2 , it follows that G 1 ¯ G 2 ¯ ¯ = G 1 G 2 holds. In other words, the γ -product is merely a different formulation for the normal product of two graphs. Furthermore, by transforming the edge set of G 1 | G 2 , we obtain G 1 | G 2 = G 1 ¯ G 2 ¯ , while transforming the edge set of G 1 G 2 results in G 1 G 2 = ( G 1 × G 2 ) G 1 cat G 2 ¯ G 1 ¯ cat G 2 .
For two paths P n , P m with n , m N , it holds that P n × P m is an n × m -grid graph. Consequently, for two graphs G 1 and G 2 , it is generally not possible to bound the tree-width (path-width) of G 1 × G 2 from above by the tree-widths (path-widths) of G 1 and G 2 (cf. Example 4). With P n × P m being a subgraph of P n P m , P n P m , and P n P m , the same result follows from Corollary 2 for the co-normal and normal graph products, as well as the symmetric difference. Next, P n cat P m has an a × a -grid graph, with a proportional to min ( n , m ) as a subgraph, so that by the same argument as before, the tree-width (path-width) of G 1 cat G 2 can generally not be bound from above by the tree-widths (path-widths) of G 1 and G 2 . For n , m N , let I n and I m denote the graphs that contain n and m isolated vertices. From our earlier observation, we know that I n | I m = K n K m holds. Consequently, the tree-width (path-width) of I n | I m cannot be bound from above by the tree-widths (path-widths) of I n and I m , as tw ( I n ) = pw ( I n ) = 1 holds, while K n and K m are subgraphs of I n | I m , such that by Lemma 3 (Lemma 7), tw ( I n | I m ) max ( n , m ) 1 ( pw ( I n | I m ) max ( n , m ) 1 ) follows. Therefore, for two graphs G 1 and G 2 , the tree-width (path-width) of the rejection G 1 | G 2 can generally not be bound from above by the tree-widths (path-widths) of G 1 and G 2 . The following corollary summarizes these observations.
Corollary 9. 
Let G 1 and G 2 be two graphs. It is not possible to provide an upper bound for the tree-width (path-width) of the two graphs’ Cartesian, categorical, co-normal, and normal graph products, as well as their rejection or symmetric difference, in terms of the tree-widths (path-widths) of G 1 and G 2 .
Lower bounds for the tree-width (using the notation of bramble number [22]) of the Cartesian and the normal product of two graphs are given in terms of the Hadwiger, PI, and bramble number in the work by Kozawa, Otachi, and Yamazaki [72].
Having discussed all previously defined graph products, except for the lexicographic graph product, we now provide bounds for this operation. First, for two graphs G 1 and G 2 , it holds that G 1 and G 2 are subgraphs of G 1 [ G 2 ] . Consequently, from Corollary 2, it follows that the tree-width (path-width) of G 1 [ G 2 ] is at least as large as the maximum over the tree-widths (path-widths) of G 1 and G 2 . Second, to obtain a tree-decomposition (path-decomposition) for G 1 [ G 2 ] , we begin with a tree-decomposition (path-decomposition) for G 1 and replace every vertex v i V ( G 1 ) in every bag with ( v i , v j ) for all v j V ( G 2 ) . This results in a tree-decomposition (path-decomposition) for G 1 [ G 2 ] of width ( tw ( G 1 ) + 1 ) | V ( G 2 ) | 1 ( ( pw ( G 1 ) + 1 ) | V ( G 2 ) | 1 ).
Corollary 10. 
Let G 1 and G 2 be two vertex-disjoint graphs. It holds that
max ( tw ( G 1 ) , tw ( G 2 ) ) tw ( G 1 [ G 2 ] ) ( tw ( G 1 ) + 1 ) | V ( G 2 ) | 1 and , max ( pw ( G 1 ) , pw ( G 2 ) ) pw ( G 1 [ G 2 ] ) ( pw ( G 1 ) + 1 ) | V ( G 2 ) | 1 .
Bodlaender et al. [73] showed that if G 2 is a clique, the upper bounds for tw ( G 1 [ G 2 ] ) and pw ( G 1 [ G 2 ] ) , as stated above, are tight.
Theorem 24. 
Let G be a graph and q N . It holds that tw ( G [ K q ] ) = ( tw ( G ) + 1 ) q 1 and pw ( G [ K q ] ) = ( pw ( G ) + 1 ) q 1 .

4.6. 1-Sum

Let G 1 and G 2 be two vertex-disjoint graphs, and let v V ( G 1 ) and w V ( G 2 ) be two vertices. The 1-sum of G 1 and G 2 , denoted by G 1 v , w G 2 , consists of the disjoint union of G 1 and G 2 , with vertices v and w identified. More specifically, graph G 1 v , w G 2 has vertex set ( V ( G 1 ) V ( G 2 ) { z } ) { v , w } for a newly introduced vertex z and edge set
E ( G 1 ) E ( G 2 ) { { v , v 1 } v 1 N G 1 ( v ) } { { w , w 1 } w 1 N G 2 ( w ) } { { z , z 1 } z 1 ( N G 1 ( v ) N G 2 ( w ) ) } .
With the 1-sum of two graphs G 1 and G 2 formally defined, the following theorem considers the tree-width and path-width of G 1 v , w G 2 .
Theorem 25. 
Let G 1 and G 2 be two vertex-disjoint graphs, and let v V ( G 1 ) and w V ( G 2 ) be two vertices. Then, it holds that
tw ( G 1 v , w G 2 ) = max ( tw ( G 1 ) , tw ( G 2 ) ) and max ( pw ( G 1 ) , pw ( G 2 ) ) pw ( G 1 v , w G 2 ) max ( pw ( G 1 ) , pw ( G 2 ) ) + 1 .
Proof. 
The lower bounds follow from Corollary 2, as G 1 and G 2 are subgraphs of G 1 v , w G 2 .
Let ( X 1 , T 1 ) be a tree-decomposition for G 1 of width tw ( G 1 ) , and let ( X 2 , T 2 ) be a tree-decomposition for G 2 of width tw ( G 2 ) . To define a tree-decomposition ( X , T ) for G 1 v , w G 2 , we replace every occurrence of v in X 1 and every occurrence of w in X 2 with z. Then, we choose a vertex u 1 in V ( T 1 ) such that z belongs to X u 1 X 1 , and a vertex u 2 in V ( T 2 ) such that z belongs to X u 2 X 2 . We define T as the disjoint union of T 1 and T 2 with the additional edge { u 1 , u 2 } and X as the union of X 1 and X 2 . This results in a tree-decomposition ( X , T ) for G 1 v , w G 2 of width max ( tw ( G 1 ) , tw ( G 2 ) ) .
In order to define a path-decomposition for G 1 v , w G 2 , let X 1 be a path-decomposition for G 1 of width pw ( G 1 ) , and let X 2 be a path-decomposition for G 2 of width pw ( G 2 ) . Then, we can either proceed as with tree-width, replacing v in all bags of X 1 and w in all bags of X 2 with z, and concatenate both sequences of bags into a new path X , resulting in a path-decomposition for G 1 v , w G 2 of width max ( pw ( G 1 ) , pw ( G 2 ) ) , or, if the resulting concatenation violates (pw-3), add z to all remaining bags of X , resulting in a path-decomposition of width at most max ( pw ( G 1 ) , pw ( G 2 ) ) + 1 . □
If v V ( G 1 ) and w V ( G 2 ) have degree at least one in G 1 and G 2 , i.e., they are not isolated vertices, the new vertex z in G 1 v , w G 2 is called an articulation vertex of G 1 v , w G 2 , since ( G 1 v , w G 2 ) z has more connected components than G 1 v , w G 2 . For a graph G, a maximal biconnected subgraph without any articulation vertex is called a block or a biconnected component of G. The bounds of Theorem 25 for tree-width imply that the tree-width of a graph equals the maximum tree-width of its biconnected components.
Corollary 11. 
Let G be a graph. It holds that the tree-width of G equals the maximum tree-width of its biconnected components.
Conversely, the following example shows that Corollary 11 does not hold for path-width.
Example 5. 
Denote the vertices of P 3 by V ( P 3 ) = { v 1 , v 2 , v 3 } and the vertices of P 5 by V ( P 5 ) = { u 1 , u 2 , u 3 , u 4 , u 5 } . Then, the incidence graph I ( K 1 , 3 ) from Figure 2b can be created as P 3 v 3 , u 3 P 5 . We know that pw ( P 3 ) = pw ( P 5 ) = 1 holds, and we showed in Example 2 that pw ( I ( K 1 , 3 ) ) = 2 is true. As all biconnected components of I ( K 1 , 3 ) are subgraphs of P 3 or P 5 , it follows that all biconnected components have a path-width of one. Consequently, the path-width of I ( K 1 , 3 ) cannot equal the maximum path-width of any of its biconnected components.
However, the bounds of Theorem 25 for path-width imply that the path-width of a graph can be bounded by its number of biconnected components and their maximum path-widths.

4.7. Corona

Frucht and Harary [74] introduced the corona of two graphs when they constructed a graph whose automorphism group is the wreath product of the two graphs’ automorphism groups. The corona of two vertex-disjoint graphs G 1 and G 2 , denoted by G 1 G 2 , consists of the disjoint union of one copy of G 1 and | V ( G 1 ) | copies of G 2 , where each vertex of the copy of G 1 is connected to all vertices of one copy of G 2 . In other words, | V ( G 1 ) | | V ( G 2 ) | edges are inserted into the disjoint union of the | V ( G 1 ) | + 1 graphs.
Alternatively, the corona of G 1 and G 2 can also be obtained by applying 1-sum and dominating vertex operations as follows. Let V ( G 1 ) = { v 1 , , v n } be the vertex set of G 1 . For i = 1 , , n , we take a copy of G 2 , insert a dominating vertex w i (cf. Section 3.1) into that copy, and obtain the resulting graph G 2 , i . Then, the following sequence of 1-sums,
( ( G 1 v 1 , w 1 G 2 , 1 ) v 2 , w 2 G 2 , 2 ) v n , w n G 2 , n ,
results in the corona G 1 G 2 of G 1 and G 2 .
With this observation, we can bound the tree-width (path-width) of G 1 G 2 in the tree-width (path-width) of its combined graphs as follows.
Theorem 26. 
Let G 1 and G 2 be two vertex-disjoint graphs. Then, it holds that
max ( tw ( G 1 ) , tw ( G 2 ) ) tw ( G 1 G 2 ) max ( tw ( G 1 ) , tw ( G 2 ) ) + 1 and max ( pw ( G 1 ) , pw ( G 2 ) ) pw ( G 1 G 2 ) max ( pw ( G 1 ) , pw ( G 2 ) ) + | V ( G 1 ) | .
Proof. 
The lower bounds follow from Corollary 2 since G 1 and G 2 are subgraphs of G 1 G 2 .
For the upper bounds, we make use of our earlier observation that we can obtain the corona of G 1 and G 2 by applying 1-sum and dominating vertex operations as described in Equation (1). By Theorem 3, it follows that tw ( G 2 , i ) tw ( G 2 ) + 1 and pw ( G 2 , i ) pw ( G 2 ) + 1 . By Theorem 25 and Equation (1), it follows that tw ( G 1 G 2 ) max ( tw ( G 1 ) , tw ( G 2 ) ) + 1 and pw ( G 1 G 2 ) max ( pw ( G 1 ) , pw ( G 2 ) ) + | V ( G 1 ) | . □
With the previous theorem proved, we ask ourselves whether there exists a constant integer c N , such that for all graphs G 1 , G 2 , it holds that pw ( G 1 G 2 ) max ( pw ( G 1 ) , pw ( G 2 ) ) + c , similar to the upper bound for tree-width. The following proposition provides a negative answer to this question.
Proposition 10. 
For n 2 and m 1 , it holds that
pw ( K n K m ) = n + max 0 , m n 2 1 .
Proof. 
We write K n = ( { v 1 , , v n } , { { v i , v j } 1 i < j n } ) and K m = ( { u 1 , , u m } , { { u i , u j } 1 i < j m } ) . For 1 i n , we denote the n copies of K m in K n K m as K m i with V ( K m i ) = { u 1 i , , u m i } . By construction of K n K m , every vertex v i of K n gets connected to all vertices of K m i , resulting in n cliques of size m + 1 , which we denote by K m + 1 i with V ( K m + 1 i ) = V ( K m i ) { v i } for 1 i n .
Since K m + 1 i , 1 i n , and K n are subgraphs of K n K m , it follows from Corollary 2 that max ( n 1 , m ) pw ( K n K m ) must hold.
Next, let us construct the following path-decomposition X = ( X 1 , , X n + 1 ) for K n K m . We define the following:
  • X i = V ( K m i ) { v 1 , , v i } for 1 i n 2 ;
  • X n 2 + 1 = V ( K n ) ;
  • X i + 1 = V ( K m i ) { v i , , v n } for n 2 < i n .
It is easy to check that X satisfies all three requirements of a path-decomposition for K n K m . Furthermore, we note that (a) max 1 i n 2 | X i | = m + n 2 , (b) | X n 2 + 1 | = n , and (c) max n 2 < i n | X i + 1 | = m + n n 2 hold.
Next, let us differentiate two cases, m n 2 and m > n 2 :
Case 1: 
m n 2
In this case, we have for (a) m + n 2 n 2 + n 2 n and for (c) m + ( n n 2 ) n 2 + n n 2 = n , such that max 1 i n + 1 | X i | = n holds. Thus, we know that the path-decomposition X has a width of n 1 , yielding
max ( n 1 , m ) = n 1 pw ( K n K m ) n 1 .
Consequently, in this case, we obtain
pw ( K n K m ) = n 1 = n + max 0 , m n 2 1 .
Case 2: 
m > n 2
In this case, we have for (a) m + n n 2 = m + n 2 m + n 2 and for (c) m + n n 2 = m + n 2 n 2 + 1 + n 2 = n + 1 n , such that max 1 i n + 1 | X i | = m + n n 2 holds. Thus, the width of path-decomposition X is m + n n 2 1 = n + max ( 0 , m n 2 ) 1 , and it follows that
pw ( K n K m ) n + max ( 0 , m n 2 ) 1
holds. Lastly, we show that there cannot exist any path-decomposition X for K n K m of width smaller than n + max ( 0 , m n 2 ) 1 . To do so, let us assume that X is a minimum path-decomposition for K n K m of the smallest possible width.
As K n is a subgraph of K n K m , we know by Lemma 7 that there must exist at least one bag X in X with V ( K n ) X . Furthermore, as K m + 1 i is a subgraph of K n K m for 1 i n , we know by the same argument that there must exist at least one bag Y i in X with V ( K m + 1 i ) Y i for every 1 i n .
Assuming that X and Y i , 1 i n , contain no more than the previously mentioned sets of vertices, V ( K n K m ) = X i = 1 n Y i is true, and for every edge { u , v } E ( K n K m ) , it holds that u , v X if u , v V ( K n ) or u , v Y i if u , v V ( K m + 1 i ) . Consequently, the bags X , Y 1 , , Y n satisfy (pw-1) and (pw-2). Furthermore, note that every u j i V ( K m i ) , 1 j m , 1 i n , satisfies N K n K m ( u j i ) Y i , such that u j i only needs to be part of bag Y i and would violate the assumption of X being minimal.
As every v i , 1 i n , is part of X and exactly one other bag, namely Y i , no ordering of the bags X , Y 1 , , Y n can satisfy (pw-3). The minimal size-increasing modification of the bags, such that they satisfy (pw-3) is to add the set { v 1 , , v i } to Y i for 1 i n 2 and the set { v j , , v n } to Y j for n 2 < j n . In other words, allocate vertices v 1 , , v n 2 to the predecessor bags of X and vertices v n 2 + 1 , , v n to the successor bags of X, resulting in
Y 1 { v 1 } , , Y n 2 { v 1 , , v n 2 } , X , Y n 2 + 1 { v n 2 + 1 , , v n } , , Y n { v n } .
Every other allocation of the vertices of X to its predecessor and successor bags satisfying (pw-3) would result in its direct predecessor or successor containing at least n 2 + 1 additional vertices, i.e., one more than in the current allocation, violating the assumption that X is minimal. But then, X is equal to X , and X is already a minimal path-decomposition for K n K m , such that
pw ( K n K m ) = n + max ( 0 , m n 2 ) 1
follows.
This completes the proof of the proposition. □
Note that for n = 1 , one can verify that pw ( K 1 K m ) = pw ( K m + 1 ) = m holds.

5. Conclusions and Outlook

In Section 3, we showed how the tree-width or path-width of a given graph changes if we apply a certain, unary graph transformation f to this graph. In all cases in which it is possible to bound the tree-width or path-width of the resulting graph f ( G ) , we also showed how to compute the corresponding decomposition in time linear in the size of the decomposition for G. Table 2 summarizes the results. It is noteworthy that the behavior of tree-width and path-width under the considered transformations is almost identical.
Furthermore, in Section 4, we considered various binary graph operations f, creating a new graph f ( G 1 , G 2 ) out of two graphs G 1 and G 2 . In all cases in which it is possible to bound the tree-width or path-width of the combined graph f ( G 1 , G 2 ) in terms of the tree-width or path-width of G 1 and G 2 , we showed how to compute the corresponding decomposition in time linear in the size of the decompositions for G 1 and G 2 , such that our results are constructive. In Table 3, we summarize these results, which show that, with the exception of the corona of two graphs, the behavior of tree-width and path-width under the considered operations is nearly identical.
The results in Section 3.2 and Section 3.3 allow for generalizing known results on the stability of trees and forests [75,76] to the stability of graph classes of bounded tree-width [77].
Most of our results provide tight upper and lower bounds for the tree-width and path-width of the resulting graph in terms of those of the initial graphs or argue why such bounds are impossible.
For the remaining case, it has yet to be shown whether our bounds are the best possible or whether stricter bounds can be provided. The bounds for the tree-width and path-width of the power of a graph, as shown in Section 3.8, are very rough, as all vertex degrees are approximated by the maximum degree of the graph. Furthermore, we did not provide lower bounds for the tree-width (path-width) of the categorical or co-normal graph product of two graphs, nor for the symmetric difference or rejection of two graphs.

Author Contributions

Conceptualization, F.G.; methodology, F.G. and R.W.; validation, F.G. and R.W.; writing—original draft preparation, F.G. and R.W.; writing—review and editing, F.G. and R.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Robertson, N.; Seymour, P. Graph Minors II. Algorithmic aspects of tree width. J. Algorithms 1986, 7, 309–322. [Google Scholar] [CrossRef]
  2. Arnborg, S. Efficient algorithms for combinatorial problems on graphs with bounded decomposability—A survey. BIT 1985, 25, 2–23. [Google Scholar] [CrossRef]
  3. Arnborg, S.; Proskurowski, A. Linear Time Algorithms for NP-hard Problems restricted to partial k-trees. Discret. Appl. Math. 1989, 23, 11–24. [Google Scholar] [CrossRef]
  4. Hagerup, T. Dynamic Algorithms for Graphs of Bounded Treewidth. Algorithmica 2000, 27, 292–315. [Google Scholar] [CrossRef]
  5. Kashem, M.; Zhou, X.; Nishizeki, T. Algorithms for generalized vertex-rankings of partial k-trees. Theor. Comput. Sci. 2000, 240, 407–427. [Google Scholar] [CrossRef]
  6. Robertson, N.; Seymour, P. Graph Minors—A Survey. In Surveys in Combinatorics; Cambridge University Press: Cambridge, UK, 1985; pp. 153–171. [Google Scholar]
  7. Bodlaender, H. A partial k-arboretum of graphs with bounded treewidth. Theor. Comput. Sci. 1998, 209, 1–45. [Google Scholar] [CrossRef]
  8. Bodlaender, H. Classes of Graphs with Bounded Treewidth; Technical Report RUU-CS-86-22; Universiteit Utrecht: Utrecht, The Netherlands, 1986. [Google Scholar]
  9. Bodlaender, H. Classes of graphs with bounded tree-width. Bull. Eur. Assoc. Theor. Comput. Sci. 1988, 36, 116–125. [Google Scholar]
  10. Arnborg, S.; Corneil, D.; Proskurowski, A. Complexity of finding embeddings in a k-tree. SIAM J. Algebr. Discret. Methods 1987, 8, 277–284. [Google Scholar] [CrossRef]
  11. Bodlaender, H. A Linear-Time Algorithm for Finding Tree-Decompositions of Small Treewidth. SIAM J. Comput. 1996, 25, 1305–1317. [Google Scholar] [CrossRef]
  12. Bondy, J.; Murty, U. Graph Theory with Applications; North-Holland: New York, NY, USA; Amsterdam, The Netherlands; Oxford, UK, 1976. [Google Scholar]
  13. Harary, F. Graph Theory; Addison-Wesley Publishing Company: Boston, MA, USA, 1969. [Google Scholar]
  14. Courcelle, B. The Monadic Second-Order Logic of Graphs XV: A conjecture by D. Seese. J. Appl. Log. 2006, 4, 79–114. [Google Scholar] [CrossRef]
  15. Courcelle, B.; Engelfriet, J. Graph Structure and Monadic Second-Order Logic. A Language-Theoretic Approach; Encyclopedia of Mathematics and Its Applications; Cambridge University Press: Cambridge, UK, 2012. [Google Scholar]
  16. Chvatalova, J.; Opatrny, J. The bandwidth problem and operations on graphs. Discret. Math. 1986, 61, 141–150. [Google Scholar] [CrossRef]
  17. Courcelle, B. Clique-width and edge contraction. Inf. Process. Lett. 2014, 114, 42–44. [Google Scholar] [CrossRef]
  18. Hliněný, P.; Oum, S.; Seese, D.; Gottlob, G. Width Parameters Beyond Tree-width and Their Applications. Comput. J. 2008, 51, 326–362. [Google Scholar] [CrossRef]
  19. Gurski, F. The Behavior of Clique-Width under Graph Operations and Graph Transformations. Theory Comput. Syst. 2017, 60, 346–376. [Google Scholar] [CrossRef]
  20. Brandstädt, A.; Le, V.; Spinrad, J. Graph Classes: A Survey; SIAM Monographs on Discrete Mathematics and Applications; SIAM: Philadelphia, PA, USA, 1999. [Google Scholar]
  21. Bertelè, U.; Brioschi, F. On Non-serial Dynamic Programming. J. Comb. Theory 1973, 14, 137–148. [Google Scholar] [CrossRef]
  22. Reed, B. Tree Width and Tangles: A New Connectivity Measure and Some Applications. In Surveys in Combinatorics, 1997; Bailey, R., Ed.; London Mathematical Society Lecture Note Series; Cambridge University Press: Cambridge, UK, 1997; pp. 87–162. [Google Scholar]
  23. Seymour, P.; Thomas, R. Graph Searching and a Min-Max Theorem for Tree-Width. J. Comb. Theory Ser. B 1993, 58, 22–33. [Google Scholar] [CrossRef]
  24. Rose, D. On simple characterizations of k-trees. Discret. Math. 1974, 7, 317–322. [Google Scholar] [CrossRef]
  25. Scheffler, P. Die Baumweite von Graphen als ein Mass für Die Kompliziertheit Algorithmischer Probleme. Ph.D. Thesis, Akademie der Wissenschaften der DDR, Berlin, Germany, 1989. [Google Scholar]
  26. Kneis, J.; Mölle, D.; Richter, S.; Rossmanith, P. A Bound on the Pathwidth of Sparse Graphs with Applications to Exact Algorithms. SIAM J. Discret. Math. 2009, 23, 407–427. [Google Scholar] [CrossRef]
  27. Whitney, H. Congruent graphs and the connectivity of graphs. Am. J. Math. 1932, 54, 150–168. [Google Scholar] [CrossRef]
  28. Bodlaender, H.; Möhring, R. The pathwidth and treewidth of cographs. SIAM J. Disc. Math. 1993, 6, 181–188. [Google Scholar] [CrossRef]
  29. Robertson, N.; Seymour, P. Graph Minors I. Excluding a forest. J. Comb. Theory Ser. B 1983, 35, 39–61. [Google Scholar] [CrossRef]
  30. Kashiwabara, T.; Fujisawa, T. NP-completeness of the problem of finding a minimum-clique-number interval graph containing a given graph as a subgraph. In Proceedings of the International Symposium on Circuits and Systems, Tokyo, Japan, 17–19 July 1979; pp. 657–660. [Google Scholar]
  31. Gusted, J. On the pathwidth of chordal graphs. Discret. Appl. Math. 1993, 45, 233–248. [Google Scholar] [CrossRef]
  32. Kloks, T.; Bodlaender, H.; Müller, H.; Kratsch, D. Computing treewidth and minimum fill-in: All you need are the minimal separators. In Proceedings of the Annual European Symposium on Algorithms (ESA), Bad Honnef, Germany, 30 September–2 October 1993; Springer: Heidelberg/Berlin, Germany, 1993. LNCS. Volume 726, pp. 260–271. [Google Scholar]
  33. Monien, B.; Sudborough, I. Min Cut is NP-complete for edge weighted trees. Theor. Comput. Sci. 1988, 58, 209–229. [Google Scholar] [CrossRef]
  34. Bodlaender, H.; Kloks, T.; Kratsch, D. Treewidth and pathwidth of permutation graphs. In Proceedings of the International Colloquium on Automata, Languages and Programming (ICALP), Lund, Sweden, 5–9 July 1993; Springer: Heidelberg/Berlin, Germany, 1993. LNCS. Volume 700, pp. 114–125. [Google Scholar]
  35. Suchan, K.; Todinca, I. Pathwidth of circular-arc graphs. In Proceedings of the Graph-Theoretical Concepts in Computer Science (WG), Dornburg, Germany, 21–23 June 2007; Springer: Heidelberg/Berlin, Germany, 2007. LNCS. Volume 4769, pp. 258–269. [Google Scholar]
  36. Kinnersley, N. The vertex separation number of a graph equals its path width. Inf. Process. Lett. 1992, 42, 345–350. [Google Scholar] [CrossRef]
  37. Korach, E.; Solel, N. Tree-width, path-width, and cutwidth. Discret. Appl. Math. 1993, 43, 97–101. [Google Scholar] [CrossRef]
  38. Kleinberg, J.; Tardos, E. Algorithm Design; Addison-Wesley Publishing Company: Boston, MA, USA, 2004. [Google Scholar]
  39. Ellis, J.; Sudborough, I.; Turner, J. The Vertex Separation and Search Number of a Graph. Inf. Comput. 1994, 113, 50–79. [Google Scholar] [CrossRef]
  40. Chlebíková, J. Partial k-trees with maximum chromatic number. Discret. Math. 2002, 259, 269–276. [Google Scholar] [CrossRef]
  41. Kinnersley, N.; Langston, M. Obstruction Set Isolation for the Gate Matrix Layout Problem. Discret. Appl. Math. 1994, 54, 169–213. [Google Scholar] [CrossRef]
  42. Robertson, N.; Seymour, P. Graph Minors XX. Wagners conjecture. J. Comb. Theory Ser. B 2004, 92, 325–357. [Google Scholar] [CrossRef]
  43. Wagner, K. Graphentheorie; B. J. Hochschultaschenbücher: Mannheim, Germany, 1970; Volume 248/248a. [Google Scholar]
  44. Bodlaender, H.; van Antwerpen-de Fluiter, B. Parallel algorithms for series parallel graphs and graphs with tree-width two. Algorithmica 2001, 29, 543–559. [Google Scholar] [CrossRef]
  45. Arnborg, S.; Proskurowski, A.; Corneil, D. Forbidden minors characterization of partial 3-trees. Discret. Math. 1990, 80, 1–19. [Google Scholar] [CrossRef]
  46. Robertson, N.; Seymour, P. Graph Minors. XIII. The Disjoint Paths Problem. J. Comb. Theory Ser. B 1995, 63, 65–110. [Google Scholar] [CrossRef]
  47. Kawarabayashi, K.; Kobayashi, Y.; Reed, B. The disjoint paths problem in quadratic time. J. Comb. Theory Ser. 2012, 102, 424–435. [Google Scholar] [CrossRef]
  48. Robertson, N.; Seymour, P. Graph Minors V. Excluding a planar graph. J. Comb. Theory Ser. B 1986, 41, 92–114. [Google Scholar] [CrossRef]
  49. Harary, F.; Norman, R.Z. Some properties of line digraphs. Rend. Del Circ. Mat. Palermo 1960, 9, 161–168. [Google Scholar] [CrossRef]
  50. Harvey, D.; Wood, D. The treewidth of line graphs. J. Comb. Theory Ser. B 2018, 132, 157–179. [Google Scholar] [CrossRef]
  51. Atserias, A. On digraph coloring problems and treewidth duality. Eur. J. Comb. 2008, 29, 796–820. [Google Scholar] [CrossRef]
  52. Bodlaender, H. Complexity of path-forming games. Theor. Comput. Sci. 1993, 110, 215–245. [Google Scholar] [CrossRef]
  53. Calinescu, G.; Fernandes, C.; Reed, B. Multicuts in unweighted graphs and digraphs with bounded degree and bounded tree-width. J. Algorithms 2003, 48, 333–359. [Google Scholar] [CrossRef]
  54. Harvey, D.; Wood, D. Treewidth of the Line Graph of a Complete Graph. J. Graph Theory 2015, 79, 48–54. [Google Scholar] [CrossRef]
  55. Joret, G.; Wood, D. Nordhaus-Gaddum for treewidth. Eur. J. Comb. 2012, 33, 488–490. [Google Scholar] [CrossRef]
  56. Bouchet, A. Circle graph obstructions. J. Comb. Theory Ser. B 1994, 60, 107–144. [Google Scholar] [CrossRef]
  57. Seidel, J. Graphs and two-graphs. In Proceedings of the 5th Southeastern Conference on Combinatorics, Graph Theory, and Computing, Boca Raton, FL, USA, 7–11 March 1974. [Google Scholar]
  58. Seidel, J. A survey of two-graphs. In Proceedings of the Colloquio Internazionale sulle Teorie Combinatorie, Rome, Italy, 3–15 September 1973; Accademia Nazionale dei Lincei: Rome, Italy, 1976; Volume 17, pp. 481–511. [Google Scholar]
  59. Seidel, J.; Taylor, D. Two-graphs, a second survey. In Algebraic Methods in Graph Theory; North-Holland Publishing Company: Amsterdam, The Netherlands, 1981; Volume II, pp. 689–711. [Google Scholar]
  60. Hayward, R. Recognizing P3-structure: A switching approach. J. Comb. Theory Ser. B 1996, 66, 247–262. [Google Scholar] [CrossRef]
  61. de Montgolfier, F.; Rao, M. The bi-join decomposition. Electron. Notes Discret. Math. 2005, 22, 173–177. [Google Scholar] [CrossRef]
  62. Bodlaender, H.; Hage, J. On switching classes, NLC-width, cliquewidth and treewidth. Theor. Comput. Sci. 2012, 429, 30–35. [Google Scholar] [CrossRef]
  63. Colbourn, C.; Corneil, D. On deciding switching equivalence of graphs. Discret. Appl. Math. 1980, 2, 181–184. [Google Scholar] [CrossRef]
  64. Limouzy, V. Seidel Minor, Permutation Graphs and Combinatorial Properties. In Proceedings of the International Symposium on Algorithms and Computation, Jeju Island, Republic of Korea, 15–17 December 2010; Springer: Heidelberg/Berlin, Germany, 2010. LNCS. Volume 6506, pp. 194–205. [Google Scholar]
  65. Sabidussi, G. Graph Multiplication. Math. Z. 1959, 72, 446–457. [Google Scholar] [CrossRef]
  66. Weichsel, P. The Kronecker product of graphs. Proc. Am. Math. Soc. 1962, 3, 47–52. [Google Scholar] [CrossRef]
  67. Harary, F.; Wilcox, G. Boolean Operations on Graphs. Math. Scand. 1967, 20, 41–51. [Google Scholar] [CrossRef]
  68. Harary, F. On the number of bicolored graphs. Pac. J. Math. 1958, 8, 743–755. [Google Scholar] [CrossRef]
  69. Imrich, W.; Klavzar, S. Product Graphs: Structure and Recognition; Series in Discrete Mathematics and Optimization; Wiley-Interscience: New York, NY, USA, 2000. [Google Scholar]
  70. Jensen, T.; Toft, B. Graph Coloring Problems; John Wiley & Sons: New York, NY, USA, 1994. [Google Scholar]
  71. Teh, H.H.; Yap, H.D. Some construction problems of homogeneous graphs. Bull. Math. Soc. Nanying Univ. 1964, 164–196. [Google Scholar]
  72. Kozawa, K.; Otachi, Y.; Yamazaki, K. Lower bounds for treewidth of product graphs. Discret. Appl. Math. 2014, 162, 251–258. [Google Scholar] [CrossRef]
  73. Bodlaender, H.; Gilbert, J.; Hafsteinsson, H.; Kloks, T. Approximating treewidth, pathwidth, frontsize, and shortest elimination tree. J. Algorithms 1995, 18, 238–255. [Google Scholar] [CrossRef]
  74. Frucht, R.; Haray, F. On the coronas of two graphs. Aequationes Math. 1970, 4, 322–324. [Google Scholar] [CrossRef]
  75. Weishaupt, R.; Rothe, J. Stability of Special Graph Classes. In Proceedings of the 22nd Italian Conference on Theoretical Computer Science, Bologna, Italy, 13–15 September 2021; Coen, C.S., Salvo, I., Eds.; RWTH Aachen: Aachen, Germany, 2021. CEUR Workshop Proceedings. Volume 3072, pp. 234–248. [Google Scholar]
  76. Weishaupt, R.; Rothe, J. Stability of Special Graph Classes. arXiv 2021, arXiv:2106.01496. [Google Scholar]
  77. Gurski, F.; Rothe, J.; Weishaupt, R. Stability, Vertex Stability, and Unfrozenness for Special Graph Classes. Theory Comput. Syst. 2024, 68, 75–102. [Google Scholar] [CrossRef]
Figure 1. (a) A graph and (b) a corresponding tree-decomposition.
Figure 1. (a) A graph and (b) a corresponding tree-decomposition.
Algorithms 18 00386 g001
Figure 2. Special graphs. (a) K 1 , 3 ; (b) I ( K 1 , 3 ) ; (c) C.
Figure 2. Special graphs. (a) K 1 , 3 ; (b) I ( K 1 , 3 ) ; (c) C.
Algorithms 18 00386 g002
Figure 3. (a) G 1 , (b) G 2 , and (c) G 1 G 2 for m = n = 3 in Example 4.
Figure 3. (a) G 1 , (b) G 2 , and (c) G 1 G 2 for m = n = 3 in Example 4.
Algorithms 18 00386 g003
Table 1. Graph products.
Table 1. Graph products.
Graph ProductNotationEdge Set { { ( u 1 , u 2 ) , ( v 1 , v 2 ) }
Cartesian G 1 × G 2 ( u 1 = v 1 { u 2 , v 2 } E ( G 2 ) )
    ( u 2 = v 2 { u 1 , v 1 } E ( G 1 ) ) }
Categorical G 1 cat G 2 { u 1 , v 1 } E ( G 1 ) { u 2 , v 2 } E ( G 2 ) }
Co-Normal G 1 G 2 { u 1 , v 1 } E ( G 1 ) { u 2 , v 2 } E ( G 2 ) }
Lexicographic G 1 [ G 2 ] ( { u 1 , v 1 } E ( G 1 ) ) ( u 1 = v 1 { u 2 , v 2 } E ( G 2 ) ) }
Normal (strong) G 1 G 2 ( u 1 = v 1 { u 2 , v 2 } E ( G 2 ) )
    ( { u 1 , v 1 } E ( G 1 ) u 2 = v 2 )
    ( { u 1 , v 1 } E ( G 1 ) { u 2 , v 2 } E ( G 2 ) ) }
Symmetric difference G 1 G 2 { u 1 , v 1 } E ( G 1 ) { u 2 , v 2 } E ( G 2 ) }
Rejection G 1 | G 2 { u 1 , v 1 } E ( G 1 ) { u 2 , v 2 } E ( G 2 ) }
Table 2. Let G be a graph of tree-width (path-width) k, and let f be the unary graph transformation in the first column. The second column lists the upper bound for the tree-width, and the third column lists the upper bound for the path-width of f ( G ) .
Table 2. Let G be a graph of tree-width (path-width) k, and let f be the unary graph transformation in the first column. The second column lists the upper bound for the tree-width, and the third column lists the upper bound for the path-width of f ( G ) .
Transformation f tw ( f ( G ) ) pw ( f ( G ) )
Vertex deletionkk
Vertex addition k + 1 k + 1
Edge deletionkk
Edge addition k + 1 k + 1
Subgraphkk
Vertex identification k + 1 k + 1
Edge contractionkk
Edge subdivisionk k + 1
Minorkk
Switching k + 1 k + 1
Table 3. Let G 1 and G 2 be two graphs of tree-width (path-width) k 1 and k 2 , respectively, and let f be the binary graph operation from the first column. Let n 1 denote the number of vertices of G 1 and n 2 the number of vertices of G 2 . The second column lists the upper bound for the tree-width, and the third column lists the upper bound for the path-width of the graph f ( G 1 , G 2 ) .
Table 3. Let G 1 and G 2 be two graphs of tree-width (path-width) k 1 and k 2 , respectively, and let f be the binary graph operation from the first column. Let n 1 denote the number of vertices of G 1 and n 2 the number of vertices of G 2 . The second column lists the upper bound for the tree-width, and the third column lists the upper bound for the path-width of the graph f ( G 1 , G 2 ) .
Operation f tw ( f ( G 1 , G 2 ) ) pw ( f ( G 1 , G 2 ) )
Disjoint union max   ( k 1 , k 2 ) max   ( k 1 , k 2 )
Join min ( k 1 + n 2 , k 2 + n 1 ) min ( k 1 + n 2 , k 2 + n 1 )
Substitution min ( k 1 + n 2 , k 2 + n 1 ) 1 min ( k 1 + n 2 , k 2 + n 1 ) 1
Lexicographic product ( k 1 + 1 ) n 2 1 ( k 1 + 1 ) n 2 1
1-sum max   ( k 1 , k 2 ) max   ( k 1 , k 2 ) + 1
Corona max   ( k 1 , k 2 ) + 1 max ( k 1 , k 2 ) + n 1
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Gurski, F.; Weishaupt, R. The Behavior of Tree-Width and Path-Width Under Graph Operations and Graph Transformations. Algorithms 2025, 18, 386. https://doi.org/10.3390/a18070386

AMA Style

Gurski F, Weishaupt R. The Behavior of Tree-Width and Path-Width Under Graph Operations and Graph Transformations. Algorithms. 2025; 18(7):386. https://doi.org/10.3390/a18070386

Chicago/Turabian Style

Gurski, Frank, and Robin Weishaupt. 2025. "The Behavior of Tree-Width and Path-Width Under Graph Operations and Graph Transformations" Algorithms 18, no. 7: 386. https://doi.org/10.3390/a18070386

APA Style

Gurski, F., & Weishaupt, R. (2025). The Behavior of Tree-Width and Path-Width Under Graph Operations and Graph Transformations. Algorithms, 18(7), 386. https://doi.org/10.3390/a18070386

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop