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
[
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
from a number of
input graphs
. 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
, 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
in terms of the tree-width or path-width of the graphs
and
, we show how to compute a corresponding decomposition in time linear in the size of the decompositions for
and
. Finally, we summarize our results and provide some conclusions, as well as an outlook for future work, in
Section 5.
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 from G. In this section, we consider the tree-width and path-width of graph 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
a vertex of
G. By
, we denote the graph we obtain from
G when removing
v and all its incident edges, i.e.,
With the graph operation of vertex deletion defined, we now consider the tree-width and path-width of .
Theorem 2. For a graph G and vertex , it holds that 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 . Consequently, we obtain and . Adding v and its incident edges to 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,
be a subset of vertices from
G, and
be a newly introduced vertex. By
, we denote the graph we obtain from
G when inserting
v with neighborhood
, i.e.,
In the special case when holds for a vertex , we call v a pendant vertex of G. If is true, we call v a dominating vertex of G. With vertex addition defined, we consider the tree-width and path-width of graph in the following theorem.
Theorem 3. For a graph G, a subset of vertices , and a vertex , it holds that Proof. By introducing v to all bags of a tree-decomposition (path-decomposition) of G, we obtain a tree-decomposition (path-decomposition) of . Thus, it follows that and are true. By removing v from , 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 , and a newly introduced vertex , it holds that 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 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 in Figure 2b, the path-width increases to two: . 3.2. Edge Addition and Edge Deletion
3.2.1. Edge Deletion
Let
G be a graph and
be two vertices. For
, we define by
the graph we obtain from
G by deleting the edge
, i.e.,
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 , it holds that Proof. The upper bound follows immediately because a tree-decomposition (path-decomposition) for G is also a tree-decomposition (path-decomposition) for .
As G can be obtained from by adding edge , the lower bound follows from the upper bound of Theorem 5. □
3.2.2. Edge Addition
Let
G be a graph and
be two vertices. For
, we define by
the graph we obtain from
G when adding the edge
, i.e.,
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 , it holds that Proof. Given a tree-decomposition (path-decomposition) for G, we obtain a tree-decomposition (path-decomposition) for by adding one of the two vertices, v or w, to all its bags. Consequently, and hold.
The lower bounds follow from the fact that a tree-decomposition (path-decomposition) for 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 and .
3.4. Vertex Identification
For a graph
G and two different vertices
, the
identification of
v and
w in
G, denoted by
, consists of a vertex set
and an edge set
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 , it holds that Proof. For the upper bounds, let be a tree-decomposition ( be a path-decomposition) for G of width (). To obtain a tree-decomposition (path-decomposition) for , we proceed as follows. In the first step, replace all occurrences of v and w in all bags of with u and denote the result by . Since is not necessarily an edge of G, could violate (tw-3) ((pw-3)), i.e., the bags of containing u might not be connected. In this case, we add u to all bags between the disconnected components. With this, is a valid tree-decomposition ( is a valid path-decomposition) for . To obtain from , we increase the width by at most one, such that () follows.
For the lower bounds, we proceed as follows. First, rename vertex
u of
to
v and denote the resulting graph by
. Next, add a new vertex
w with neighborhood
to
. By Theorem 3, it follows that
and
are true. Since
G is a subgraph of
, with Corollary 2, we obtain that
hold, which yields the lower bounds
and
. □
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 of a vertex identification are adjacent, i.e., , we call the operation an edge contraction.
Theorem 7. For a graph G and two different vertices with , it holds that Proof. Let be a tree-decomposition ( be a path-decomposition) for G of width (). We replace all occurrences of v and w in all bags of with u and denote the resulting decomposition by . Since v and w are adjacent in G, we know by (tw-2) ((pw-2)) that there is at least one bag in that contains v and w. Consequently, (tw-3) ((pw-3)) must hold for , and it follows that is a valid tree-decomposition ( is a valid path-decomposition) for of width at most (). Because is true, we can argue that (tw-3) ((pw-3)) holds for . 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 of size n results in a clique of size . By Lemma 3 (Lemma 7), we know that () holds. Consequently, the lower bounds specified in the previous theorem are tight.
3.6. Edge Subdivision
Let G be a graph, be a newly introduced vertex, and be an edge of G. The edge subdivision of in G, denoted by , consists of a vertex set and an edge set .
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 , it holds that Proof. G is isomorphic to
, such that the upper bounds of Theorem 7 yield
resulting in this theorem’s lower bounds.
For the upper bound of tree-width, let us distinguish the following two cases:
- Case 1:
. In this case, G is a forest. Since an edge subdivision does not alter this fact, is still a forest, and must hold.
- Case 2:
. 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 with vertices and making it adjacent to X results in a tree-decomposition of with unaltered size, such that 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 . Consequently, 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
of
C, depicted as
in
Figure 2b, is two. Please note that
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 . 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 Proof. The result for tree-width follows directly from Theorem 8.
By contracting all subdivided edges of , we obtain G. By Theorem 7, we know that edge contractions do not increase the resulting graph’s path-width, such that follows.
Denote by a path-decomposition for G of width , and let be an edge of G and be the node introduced to subdivide the edge. By (pw-2), we know that there is a bag X in with . We introduce a new bag to as a successor to X and denote the resulting decomposition by . Then, is a path-decomposition for of width .
Vertex appears in exactly one modified bag, , and 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 of width , such that 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 and .
In other words, the fact that a graph has tree-width (path-width) at most 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
, 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
and
(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
, and the set of all graphs with tree-width at most two is characterized by the forbidden minor
(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 whether H is a minor of G.
A more precise formulation of the runtime would be for some function f and .
From a parameterized point of view, the minor test is fixed-parameter tractable with respect to the parameter
. However, the constant behind the
-notation in Theorem 12 depends on the parameter
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
.
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 that is closed under minors, and for every graph G, one can decide in time polynomial in the size of G whether holds.
Nevertheless, an implicit precondition of the corollary is that the set of all forbidden minors characterizing 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 , such that every graph with tree-width at least has a -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 , 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 , such that every graph without H as a minor has path-width at most k.
3.8. Power of a Graph
For and a graph G, we denote the d-th power of G by . Thus, has the same set of vertices as G, i.e., , and two vertices of 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 and a graph G, for every vertex , it holds that Proof. Let
be a vertex of
G. To obtain an upper bound on the number of neighbors
v might have in
, 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
holds, such that
v has at most
neighbors in
G. By the same argument, every neighbor
u of
v in
G has at most
neighbors. However, one of those neighbors of
u is
v, such that
u has at most
not-yet-considered neighbors. Repeating the previous argument
times, we obtain an upper bound on the number of vertices at an exact distance
d to
v,
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
As every vertex that is reachable from
v in
G within a distance of at most
d is adjacent to
v in
, it follows that
holds. □
Note that the previously stated upper bound is tight. To see this, consider a tree T with root 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 and a graph G, it holds that Proof. The lower bounds follow from Corollary 2, as G is a subgraph of .
For the upper bounds, denote by
a tree-decomposition (by
a path-decomposition) of
G. By constructing
, we know all neighbors of every vertex
in
. To obtain a tree-decomposition (path-decomposition) for
, for every vertex
, we add all neighbors of
v in
, i.e.,
, to every bag
containing
v. We denote the resulting bag by
and the resulting set of bags by
. Then, by Lemma 9, every bag of
contains at most
vertices. Taking
G to the power of
d does not alter the set of vertices, i.e.,
, such that
(
) still satisfies (tw-1) ((pw-1)). By adding, for every vertex
, all neighbors of
v in
to every bag containing
v, all new edges introduced into
are covered, such that
(
) satisfies (tw-2) ((pw-2)). To see that
(
) satisfies (tw-3) ((pw-3)), let
be any vertex of
G and denote by
two bags with
. We consider three cases:
If it holds that for , it immediately follows that v is also in all bags connecting and , since () satisfies (tw-3) ((pw-3)).
If it holds that but , there must be a vertex with , as otherwise, would not hold. Since , there is a path between u and v in G of length at most d. Consequently, with () satisfying (tw-2) ((pw-2)) and (tw-3) ((pw-3)), there must also be a path between s and t, such that for every in , there is a vertex in with . For every such vertex , it holds that , so that by the construction of , it follows that holds. Therefore, also in this case, all bags between and must contain v.
Finally, if and , there must be at least one bag with , and we can repeat the previous argument for and .
Consequently,
(
is a tree-decomposition (path-decomposition) for
of width
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,
, is defined by
In other words, the line graph
of a graph
G has a vertex for every edge of
G, and two vertices of
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 is called the root graph of .
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 Proof. The stated lower bound for the tree-width of
was shown by Harvey and Wood [
50] in Proposition 2.3.
A slightly weaker bound can be obtained as follows. Let be a tree-decomposition for of width . In every bag of , replace each edge of G with both of its endpoints. Then, we can obtain a tree-decomposition for G of width at most , such that 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
be a tree-decomposition (
a path-decomposition) for
G of width
(
). If we replace every bag
with the set of all edges incident to at least one vertex in
, we obtain a tree-decomposition (path-decomposition) for
of width at most
(
). □
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 form a clique of size in . With Lemmas 3 and 7, the following corollary follows immediately.
Corollary 5. For a graph G, it holds that and .
For special graphs, the inequality turns into an equality, as the following result shows.
Proposition 8. Let G be a graph. If is true, it holds that . If is true, it holds that .
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
for
.
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 , it holds that 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
, has the same vertex set as
G, and two vertices are adjacent in
if and only if they are not adjacent in
G, i.e.,
Let
be a star graph with one dominating vertex
v in the center and
ℓ vertices
,
, as satellites, all only adjacent to
v. Then, the edge complement graph of
,
, consists of an isolated vertex
v and a clique of size
ℓ formed by all satellites
,
. Since neither
nor
is a minor of
, we know from
Section 3.7 that
holds. However, by Lemmas 3 and 7, it follows that
is true. Therefore, it is generally impossible to bound the tree-width (path-width) of an edge complement graph
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
for a graph parameter
f is known as the
Nordhaus–Gaddum problem.
Theorem 19. For a graph G, it holds that In their work, Joret and Wood also showed that the specified bound is tight. As is true for every graph G, the corollary below follows immediately.
Corollary 6. For a graph G, it holds that For the path with four vertices,
, it holds that
as well as
. Consequently, we obtain
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
, the
local complementation of
G, denoted by
, is defined by
In other words, is obtained from a graph G by replacing the subgraph of G induced by with its edge complement. Recall that holds, such that the neighborhood of v in is the same as in G.
Denote by
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
equals a clique of size
. The star
has tree-width and path-width one, while
has tree-width and path-width
ℓ. Therefore, in general, the tree-width (path-width) of a graph
G’s local complement
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
-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
, the graph resulting from a
Seidel switching operation, denoted by
, is defined as follows. The vertex set of
is the same as the vertex set of
G, i.e.,
, and the edge set of
is defined as
In other words, every neighbor of
v in
G is a non-neighbor of
v in
, and every non-neighbor of
v in
G is a neighbor of
v in
.
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 , it holds that Proof. For the upper bounds, let be a tree-decomposition ( a path-decomposition) for G of width (). When we add v to all bags of , denoting the resulting set of bags by , we obtain a tree-decomposition (a path-decomposition ) for of width at most (). Consequently, () follows.
Since holds, we can derive the lower bound from the upper bound via (). □
Note that the bounds shown in Theorem 20 are tight. To convince oneself of this fact, consider the path with four vertices, . Its tree-width and path-width are one. Denote by v one of the two vertices in with degree one. Then, contains 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 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
with the same vertex set
V are called
switching equivalent if there exists a sequence of vertices
in
V, such that for
and
,
, it holds that
. 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 be two switching equivalent graphs and denote by a sequence of vertices such that is true. Then, it holds that 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
, the graph resulting from the
Seidel complementation operation, denoted by
, has the same vertices as
G, i.e.,
, and edge set
In other words, the edge set of
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 satellites , adjacent to v. The second part is a set of ℓ isolated vertices, . Since G has neither a nor an as a minor, we know that holds. By applying the Seidel complementation operation to vertex v, contains a complete bipartite subgraph formed by the vertices . By Lemma 4 (Lemma 8), it follows that () is true. Consequently, we conclude that, given a graph G and a vertex , the tree-width (path-width) of cannot be bounded by the tree-width (path-width) of G.
4. Binary Graph Operations
Let , be two non-empty graphs and f be a binary graph operation that creates a new graph from and . In this section, we consider the tree-width and path-width of with respect to those of the initial graphs and . 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 and , denoted by , is defined as the graph with vertex set and edge set .
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 and be two vertex-disjoint graphs. Then, it holds thatand 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
and
, denoted by
, is defined as the graph with vertex set
and edge set
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 and be two vertex-disjoint graphs. Then, for the join of and , it holds thatand Combining Theorems 21 and 22 implies that for every co-graph
G, it holds that
, and both widths can be computed in linear time [
28].
4.3. Union
The union of two graphs and with , denoted by , is defined as the graph with vertices and edge set . Thus, two vertices are adjacent in if and only if they are adjacent in or in .
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 , define the set of vertices . Next, denote by the disjoint union of m paths with n vertices from V, , , , and by the disjoint union of n paths on m vertices from V, , . Since paths have a tree-width (path-width) of 1, it follows from Theorem 21 that () holds.
The union, , of and is an -grid graph, and Bodlaender [7] proved that the tree-width (path-width) of an -grid graph equals . Consequently, it is not possible to bound the tree-width (path-width) of in the tree-widths (path-widths) of and . See Figure 3 for an explicit example of and the resulting union . 4.4. Substitution
Let
and
be two vertex-disjoint graphs, and let
be a vertex. The
substitution of
v by
in
, denoted by
, is defined as the graph with vertex set
and edge set
The vertex set
is called a
module of the graph
, since all vertices of
are adjacent to the same vertices of
in
.
Given this definition of substitution, the following theorem considers the tree-width (path-width) of in terms of the tree-width (path-width) of and .
Theorem 23. For two vertex-disjoint graphs , and vertex , it holds thatand Proof. The lower bounds follow from Corollary 2, as and are subgraphs of . For the upper bounds, this can be achieved in two ways:
Replace v in every bag of a tree-decomposition (path-decomposition) of width () for with ;
Add to every bag of a tree-decomposition (path-decomposition) of width () for the set .
As both alternatives result in a valid tree-decomposition (path-decomposition) for , the upper bound follows. □
Note that the upper bounds described in the previous theorem are tight, as for two cliques
and a vertex
, we have
with
Besides this general upper bound for tree-width, the following proposition can provide an even stricter upper bound in specific situations.
Proposition 9. Let , be two vertex-disjoint graphs, and let be a non-isolated vertex. Then, it holds that Proof. Let be a tree-decomposition for of width , and let be a tree-decomposition for of width . Replace v with in every bag of , and denote the modified set of bags by . Then, is a tree-decomposition for of width at most . Subsequently, add to all bags of , and denote the modified set of bags by . Let be a vertex of with for , and let be any vertex of . Then, with , , and is a tree-decomposition for of width at most . □
4.5. Graph Product
The graph product of two vertex-disjoint graphs
and
is a new graph with vertex set
and an edge set derived from the adjacency, equality, or non-adjacency of vertices in the original graphs
and
. 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
and
as
[
71]. By transforming the edge set of the
-product of two graphs
and
, it follows that
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
, we obtain
, while transforming the edge set of
results in
.
For two paths , with , it holds that is an -grid graph. Consequently, for two graphs and , it is generally not possible to bound the tree-width (path-width) of from above by the tree-widths (path-widths) of and (cf. Example 4). With being a subgraph of , , and , the same result follows from Corollary 2 for the co-normal and normal graph products, as well as the symmetric difference. Next, has an -grid graph, with a proportional to as a subgraph, so that by the same argument as before, the tree-width (path-width) of can generally not be bound from above by the tree-widths (path-widths) of and . For , let and denote the graphs that contain n and m isolated vertices. From our earlier observation, we know that holds. Consequently, the tree-width (path-width) of cannot be bound from above by the tree-widths (path-widths) of and , as holds, while and are subgraphs of , such that by Lemma 3 (Lemma 7), () follows. Therefore, for two graphs and , the tree-width (path-width) of the rejection can generally not be bound from above by the tree-widths (path-widths) of and . The following corollary summarizes these observations.
Corollary 9. Let and 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 and .
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 and , it holds that and are subgraphs of . Consequently, from Corollary 2, it follows that the tree-width (path-width) of is at least as large as the maximum over the tree-widths (path-widths) of and . Second, to obtain a tree-decomposition (path-decomposition) for , we begin with a tree-decomposition (path-decomposition) for and replace every vertex in every bag with for all . This results in a tree-decomposition (path-decomposition) for of width ().
Corollary 10. Let and be two vertex-disjoint graphs. It holds that Bodlaender et al. [
73] showed that if
is a clique, the upper bounds for
and
, as stated above, are tight.
Theorem 24. Let G be a graph and . It holds that and .
4.6. 1-Sum
Let
and
be two vertex-disjoint graphs, and let
and
be two vertices. The
1-sum of
and
, denoted by
, consists of the disjoint union of
and
, with vertices
v and
w identified. More specifically, graph
has vertex set
for a newly introduced vertex
z and edge set
With the 1-sum of two graphs and formally defined, the following theorem considers the tree-width and path-width of .
Theorem 25. Let and be two vertex-disjoint graphs, and let and be two vertices. Then, it holds that Proof. The lower bounds follow from Corollary 2, as and are subgraphs of .
Let be a tree-decomposition for of width , and let be a tree-decomposition for of width . To define a tree-decomposition for , we replace every occurrence of v in and every occurrence of w in with z. Then, we choose a vertex in such that z belongs to , and a vertex in such that z belongs to . We define T as the disjoint union of and with the additional edge and as the union of and . This results in a tree-decomposition for of width .
In order to define a path-decomposition for , let be a path-decomposition for of width , and let be a path-decomposition for of width . Then, we can either proceed as with tree-width, replacing v in all bags of and w in all bags of with z, and concatenate both sequences of bags into a new path , resulting in a path-decomposition for of width , or, if the resulting concatenation violates (pw-3), add z to all remaining bags of , resulting in a path-decomposition of width at most . □
If and have degree at least one in and , i.e., they are not isolated vertices, the new vertex z in is called an articulation vertex of , since has more connected components than . 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 by and the vertices of by . Then, the incidence graph from Figure 2b can be created as . We know that holds, and we showed in Example 2 that is true. As all biconnected components of are subgraphs of or , it follows that all biconnected components have a path-width of one. Consequently, the path-width of 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
and
, denoted by
, consists of the disjoint union of one copy of
and
copies of
, where each vertex of the copy of
is connected to all vertices of one copy of
. In other words,
edges are inserted into the disjoint union of the
graphs.
Alternatively, the corona of
and
can also be obtained by applying 1-sum and dominating vertex operations as follows. Let
be the vertex set of
. For
, we take a copy of
, insert a dominating vertex
(cf.
Section 3.1) into that copy, and obtain the resulting graph
. Then, the following sequence of 1-sums,
results in the corona
of
and
.
With this observation, we can bound the tree-width (path-width) of in the tree-width (path-width) of its combined graphs as follows.
Theorem 26. Let and be two vertex-disjoint graphs. Then, it holds that Proof. The lower bounds follow from Corollary 2 since and are subgraphs of .
For the upper bounds, we make use of our earlier observation that we can obtain the corona of
and
by applying 1-sum and dominating vertex operations as described in Equation (
1). By Theorem 3, it follows that
and
. By Theorem 25 and Equation (
1), it follows that
and
. □
With the previous theorem proved, we ask ourselves whether there exists a constant integer , such that for all graphs , it holds that , similar to the upper bound for tree-width. The following proposition provides a negative answer to this question.
Proposition 10. For and , it holds that Proof. We write and . For , we denote the n copies of in as with . By construction of , every vertex of gets connected to all vertices of , resulting in n cliques of size , which we denote by with for .
Since , , and are subgraphs of , it follows from Corollary 2 that must hold.
Next, let us construct the following path-decomposition for . We define the following:
for ;
;
for .
It is easy to check that satisfies all three requirements of a path-decomposition for . Furthermore, we note that (a) , (b) , and (c) hold.
Next, let us differentiate two cases, and :
- Case 1:
In this case, we have for (a)
and for (c)
, such that
holds. Thus, we know that the path-decomposition
has a width of
, yielding
Consequently, in this case, we obtain
- Case 2:
In this case, we have for (a)
and for (c)
, such that
holds. Thus, the width of path-decomposition
is
, and it follows that
holds. Lastly, we show that there cannot exist any path-decomposition
for
of width smaller than
. To do so, let us assume that
is a minimum path-decomposition for
of the smallest possible width.
As is a subgraph of , we know by Lemma 7 that there must exist at least one bag X in with . Furthermore, as is a subgraph of for , we know by the same argument that there must exist at least one bag in with for every .
Assuming that X and , , contain no more than the previously mentioned sets of vertices, is true, and for every edge , it holds that if or if . Consequently, the bags satisfy (pw-1) and (pw-2). Furthermore, note that every , , , satisfies , such that only needs to be part of bag and would violate the assumption of being minimal.
As every
,
, is part of
X and exactly one other bag, namely
, no ordering of the bags
can satisfy (pw-3). The minimal size-increasing modification of the bags, such that they satisfy (pw-3) is to add the set
to
for
and the set
to
for
. In other words, allocate vertices
to the predecessor bags of
X and vertices
to the successor bags of
X, resulting in
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
additional vertices, i.e., one more than in the current allocation, violating the assumption that
is minimal. But then,
is equal to
, and
is already a minimal path-decomposition for
, such that
follows.
This completes the proof of the proposition. □
Note that for , one can verify that 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
, 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
out of two graphs
and
. In all cases in which it is possible to bound the tree-width or path-width of the combined graph
in terms of the tree-width or path-width of
and
, we showed how to compute the corresponding decomposition in time linear in the size of the decompositions for
and
, 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.