HOME

TheInfoList



OR:

In
graph theory In mathematics, graph theory is the study of '' graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of '' vertices'' (also called ''nodes'' or ''points'') which are conn ...
, the treewidth of an undirected graph is an
integer An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language ...
number which specifies, informally, how far the graph is from being a
tree In botany, a tree is a perennial plant with an elongated stem, or trunk, usually supporting branches and leaves. In some usages, the definition of a tree may be narrower, including only woody plants with secondary growth, plants that are ...
. The smallest treewidth is 1; the graphs with treewidth 1 are exactly the trees and the
forests A forest is an area of land dominated by trees. Hundreds of definitions of forest are used throughout the world, incorporating factors such as tree density, tree height, land use, legal standing, and ecological function. The United Nations' ...
. The graphs with treewidth at most 2 are the series–parallel graphs. The maximal graphs with treewidth exactly are called '' -trees'', and the graphs with treewidth at most are called '' partial -trees''. Many other well-studied graph families also have bounded treewidth. Treewidth may be formally defined in several equivalent ways: in terms of the size of the largest vertex set in a tree decomposition of the graph, in terms of the size of the largest
clique A clique ( AusE, CanE, or ), in the social sciences, is a group of individuals who interact with one another and share similar interests. Interacting with cliques is part of normative social development regardless of gender, ethnicity, or popula ...
in a chordal completion of the graph, in terms of the maximum order of a
haven Haven or The Haven may refer to: * Harbor or haven, a sheltered body of water where ships can be docked Arts and entertainment Fictional characters * Haven (Anita Blake: Vampire Hunter), from the novel series * Haven (comics), from the ''X-Men ...
describing a strategy for a pursuit–evasion game on the graph, or in terms of the maximum order of a bramble, a collection of connected subgraphs that all touch each other. Treewidth is commonly used as a parameter in the
parameterized complexity In computer science, parameterized complexity is a branch of computational complexity theory that focuses on classifying computational problems according to their inherent difficulty with respect to ''multiple'' parameters of the input or output. ...
analysis of graph
algorithm In mathematics and computer science, an algorithm () is a finite sequence of rigorous instructions, typically used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for performing ...
s. Many algorithms that are
NP-hard In computational complexity theory, NP-hardness ( non-deterministic polynomial-time hardness) is the defining property of a class of problems that are informally "at least as hard as the hardest problems in NP". A simple example of an NP-hard pr ...
for general graphs, become easier when the treewidth is bounded by a constant. The concept of treewidth was originally introduced by under the name of ''dimension''. It was later rediscovered by , based on properties that it shares with a different graph parameter, the Hadwiger number. Later it was again rediscovered by and has since been studied by many other authors.


Definition

A tree decomposition of a graph is a tree with nodes , where each is a subset of , satisfying the following properties (the term ''node'' is used to refer to a vertex of to avoid confusion with vertices of ): # The union of all sets equals . That is, each graph vertex is contained in at least one tree node. # If and both contain a vertex , then all nodes of in the (unique) path between and contain as well. Equivalently, the tree nodes containing vertex form a connected subtree of . # For every edge in the graph, there is a subset that contains both and . That is, vertices are adjacent in the graph only when the corresponding subtrees have a node in common. The ''width'' of a tree decomposition is the size of its largest set minus one. The treewidth of a graph is the minimum width among all possible tree decompositions of . In this definition, the size of the largest set is diminished by one in order to make the treewidth of a tree equal to one. Equivalently, the treewidth of is one less than the size of the largest
clique A clique ( AusE, CanE, or ), in the social sciences, is a group of individuals who interact with one another and share similar interests. Interacting with cliques is part of normative social development regardless of gender, ethnicity, or popula ...
in the chordal graph containing with the smallest clique number. A chordal graph with this clique size may be obtained by adding to an edge between every two vertices that both belong to at least one of the sets . Treewidth may also be characterized in terms of havens, functions describing an evasion strategy for a certain pursuit–evasion game defined on a graph. A graph has treewidth if and only if it has a haven of order but of no higher order, where a haven of order is a function that maps each set of at most vertices in into one of the connected components of and that obeys the monotonicity property that whenever . A similar characterization can also be made using
brambles A bramble is any rough, tangled, prickly shrub, usually in the genus '' Rubus'', which grows blackberries, raspberries, or dewberries. "Bramble" is also used to describe other prickly shrubs, such as roses (''Rosa'' species). The fruits in ...
, families of connected subgraphs that all touch each other (meaning either that they share a vertex or are connected by an edge). The order of a bramble is the smallest hitting set for the family of subgraphs, and the treewidth of a graph is one less than the maximum order of a bramble.


Examples

Every
complete graph In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices ...
has treewidth. This is most easily seen using the definition of treewidth in terms of chordal graphs: the complete graph is already chordal, and adding more edges cannot reduce the size of its largest clique. A connected graph with at least two vertices has treewidth 1 if and only if it is a tree. A tree has treewidth one by the same reasoning as for complete graphs (namely, it is chordal, and has maximum clique size two). Conversely, if a graph has a cycle, then every chordal completion of the graph includes at least one triangle consisting of three consecutive vertices of the cycle, from which it follows that its treewidth is at least two.


Bounded treewidth


Graph families with bounded treewidth

For any fixed constant , the graphs of treewidth at most are called the partial -trees. Other families of graphs with bounded treewidth include the
cactus graph In graph theory, a cactus (sometimes called a cactus tree) is a connected graph in which any two simple cycles have at most one vertex in common. Equivalently, it is a connected graph in which every edge belongs to at most one simple cycle, or ...
s,
pseudoforest In graph theory, a pseudoforest is an undirected graphThe kind of undirected graph considered here is often called a multigraph or pseudograph, to distinguish it from a simple graph. in which every connected component has at most one cycle. Tha ...
s, series–parallel graphs, outerplanar graphs, Halin graphs, and Apollonian networks.. The
control-flow graph In computer science, a control-flow graph (CFG) is a representation, using graph notation, of all paths that might be traversed through a program during its execution. The control-flow graph was discovered by Frances E. Allen, who noted tha ...
s arising in the compilation of structured programs also have bounded treewidth, which allows certain tasks such as
register allocation In compiler optimization, register allocation is the process of assigning local automatic variables and expression results to a limited number of processor registers. Register allocation can happen over a basic block (''local register allocat ...
to be performed efficiently on them. The
planar graph In graph theory, a planar graph is a graph that can be embedded in the plane, i.e., it can be drawn on the plane in such a way that its edges intersect only at their endpoints. In other words, it can be drawn in such a way that no edges cro ...
s do not have bounded treewidth, because the grid graph is a planar graph with treewidth exactly . Therefore, if is a
minor-closed graph family In graph theory, an undirected graph is called a minor of the graph if can be formed from by deleting edges and vertices and by contracting edges. The theory of graph minors began with Wagner's theorem that a graph is planar if and only i ...
with bounded treewidth, it cannot include all planar graphs. Conversely, if some planar graph cannot occur as a minor for graphs in family , then there is a constant such that all graphs in have treewidth at most . That is, the following three conditions are equivalent to each other: # is a minor-closed family of bounded-treewidth graphs; #One of the finitely many forbidden minors characterizing is planar; # is a minor-closed graph family that does not include all planar graphs.


Forbidden minors

For every finite value of , the graphs of treewidth at most may be characterized by a finite set of
forbidden minor In graph theory, a branch of mathematics, many important families of graphs can be described by a finite set of individual graphs that do not belong to the family and further exclude all graphs from the family which contain any of these forbidde ...
s. (That is, any graph of treewidth includes one of the graphs in the set as a minor.) Each of these sets of forbidden minors includes at least one planar graph. *For , the unique forbidden minor is a 3-vertex cycle graph.. *For , the unique forbidden minor is the 4-vertex
complete graph In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices ...
. *For , there are four forbidden minors: , the graph of the
octahedron In geometry, an octahedron (plural: octahedra, octahedrons) is a polyhedron with eight faces. The term is most commonly used to refer to the regular octahedron, a Platonic solid composed of eight equilateral triangles, four of which meet at e ...
, the pentagonal prism graph, and the
Wagner graph In the mathematical field of graph theory, the Wagner graph is a 3- regular graph with 8 vertices and 12 edges. It is the 8-vertex Möbius ladder graph. Properties As a Möbius ladder, the Wagner graph is nonplanar but has crossing number one ...
. Of these, the two polyhedral graphs are planar. For larger values of , the number of forbidden minors grows at least as quickly as the exponential of the square root of . However, known upper bounds on the size and number of forbidden minors are much higher than this lower bound.


Algorithms


Computing the treewidth

It is NP-complete to determine whether a given graph has treewidth at most a given variable . However, when is any fixed constant, the graphs with treewidth can be recognized, and a width tree decomposition constructed for them, in linear time.. The time dependence of this algorithm on is exponential. Due to the roles the treewidth plays in an enormous number of fields, different practical and theoretical algorithms computing the treewidth of a graph were developed. Depending on the application on hand, one can prefer better approximation ratio, or better dependence in the running time from the size of the input or the treewidth. The table below provides an overview of some of the treewidth algorithms. Here is the treewidth and is the number of vertices of an input graph . Each of the algorithms outputs in time a decomposition of width given in the Approximation column. For example, the algorithm of in time either constructs a tree decomposition of the input graph of width at most or reports that the treewidth of is more than . Similarly, the algorithm of in time either constructs a tree decomposition of the input graph of width at most or reports that the treewidth of is more than . improved this to in the same running time. It is not known whether determining the treewidth of
planar graph In graph theory, a planar graph is a graph that can be embedded in the plane, i.e., it can be drawn on the plane in such a way that its edges intersect only at their endpoints. In other words, it can be drawn in such a way that no edges cro ...
s is NP-complete, or whether their treewidth can be computed in polynomial time. In practice, an algorithm of can determine the treewidth of graphs with up to 100 vertices and treewidth up to 11, finding a chordal completion of these graphs with the optimal treewidth. For larger graphs, one can use search-based techniques such as branch and bound search (BnB) and
best-first search Best-first search is a class of search algorithms, which explore a graph by expanding the most promising node chosen according to a specified rule. Judea Pearl described the best-first search as estimating the promise of node ''n'' by a "heuristic ...
to compute the treewidth. These algorithms are
anytime Anytime may refer to: * ''Anytime'' (Brian McKnight album), and the title song * ''Anytime'' (Eddy Arnold album), 1956 * ''Anytime'', originally ''Slim Whitman Sings'' (1962 album) * "Anytime" (1921 song), a popular song by Herbert "Happy" Laws ...
in that when stopped early, they will output an upper bound on the treewidth. The first BnB algorithm for computing treewidth, called the QuickBB algorithm was proposed by Gogate and Dechter. Since the quality of any BnB algorithm is highly dependent on the quality of the lower bound used, Gogate and Dechter also proposed a novel algorithm for computing a lower-bound on treewidth called minor-min-width. At a high level, the minor-min-width algorithm combines the facts that the treewidth of a graph is never larger than its minimum
degree Degree may refer to: As a unit of measurement * Degree (angle), a unit of angle measurement ** Degree of geographical latitude ** Degree of geographical longitude * Degree symbol (°), a notation used in science, engineering, and mathemati ...
or its minor to yield a lower bound on treewidth. The minor-min-width algorithm repeatedly constructs a
graph minor In graph theory, an undirected graph is called a minor of the graph if can be formed from by deleting edges and vertices and by contracting edges. The theory of graph minors began with Wagner's theorem that a graph is planar if and only i ...
by contracting an edge between a minimum degree vertex and one of its neighbors, until just one vertex remains. The maximum of the minimum degree over these constructed minors is guaranteed to be a lower bound on the treewidth of the graph. Dow and Korf improved the QuickBB algorithm using
best-first search Best-first search is a class of search algorithms, which explore a graph by expanding the most promising node chosen according to a specified rule. Judea Pearl described the best-first search as estimating the promise of node ''n'' by a "heuristic ...
. On certain graphs, this best-first search algorithm is an order of magnitude faster than QuickBB.


Solving other problems on graphs of small treewidth

At the beginning of the 1970s, it was observed that a large class of combinatorial optimization problems defined on graphs could be efficiently solved by non serial dynamic programming as long as the graph had a bounded ''dimension'', a parameter shown to be equivalent to treewidth by . Later, several authors independently observed at the end of the 1980s that many algorithmic problems that are
NP-complete In computational complexity theory, a problem is NP-complete when: # it is a problem for which the correctness of each solution can be verified quickly (namely, in polynomial time) and a brute-force search algorithm can find a solution by tryin ...
for arbitrary graphs may be solved efficiently by dynamic programming for graphs of bounded treewidth, using the tree-decompositions of these graphs. As an example, the problem of coloring a graph of treewidth may be solved by using a dynamic programming algorithm on a tree decomposition of the graph. For each set of the tree decomposition, and each partition of the vertices of into color classes, the algorithm determines whether that coloring is valid and can be extended to all descendant nodes in the tree decomposition, by combining information of a similar type computed and stored at those nodes. The resulting algorithm finds an optimal coloring of an -vertex graph in time , a time bound that makes this problem fixed-parameter tractable.


Courcelle's theorem

For a large class of problems, there is a linear time algorithm to solve a problem from the class if a tree-decomposition with constant bounded treewidth is provided. Specifically,
Courcelle's theorem In the study of graph theory, graph algorithms, Courcelle's theorem is the statement that every graph property definable in the monadic second-order logic, monadic second-order logic of graphs can be decided in linear time on graphs of bounded treew ...
states that if a graph problem can be expressed in the logic of graphs using monadic second order logic, then it can be solved in linear time on graphs with bounded treewidth. Monadic second order logic is a language to describe graph properties that uses the following constructions: * Logic operations, such as \wedge ,\vee ,\neg ,\Rightarrow * Membership tests, such as , * Quantifications over vertices, edges, sets of vertices, and/or sets of edges, such as , , , * Adjacency tests ( is an endpoint of ), and some extensions that allow for things such as optimization. Consider for example the 3-coloring problem for graphs. For a graph , this problem asks if it is possible to assign each vertex one of the 3 colors such that no two adjacent vertices are assigned the same color. This problem can be expressed in monadic second order logic as follows: : \exists W_1 \subseteq V : \exists W_2 \subseteq V : \exists W_3 \subseteq V : \forall v \in V : (v \in W_1 \vee v \in W_2 \vee v \in W_3) \wedge : \forall v \in V : \forall w \in V : (v,w) \in E \Rightarrow (\neg (v \in W_1 \wedge w \in W_1) \wedge \neg (v \in W_2 \wedge w \in W_2) \wedge \neg (v \in W_3 \wedge w \in W_3)), where , , represent the subsets of vertices having each of the 3 colors. Therefore, by Courcelle's results, the 3-coloring problem can be solved in linear time for a graph given a tree-decomposition of bounded constant treewidth.


Related parameters


Pathwidth

The pathwidth of a graph has a very similar definition to treewidth via tree decompositions, but is restricted to tree decompositions in which the underlying tree of the decomposition is a
path graph In the mathematical field of graph theory, a path graph or linear graph is a graph whose vertices can be listed in the order such that the edges are where . Equivalently, a path with at least two vertices is connected and has two terminal ...
. Alternatively, the pathwidth may be defined from
interval graph In graph theory, an interval graph is an undirected graph formed from a set of intervals on the real line, with a vertex for each interval and an edge between vertices whose intervals intersect. It is the intersection graph of the intervals. ...
s analogously to the definition of treewidth from chordal graphs. As a consequence, the pathwidth of a graph is always at least as large as its treewidth, but it can only be larger by a logarithmic factor. Another parameter, the graph bandwidth, has an analogous definition from proper interval graphs, and is at least as large as the pathwidth. Other related parameters include the
tree-depth In graph theory, the tree-depth of a connected undirected graph G is a numerical invariant of G, the minimum height of a Trémaux tree for a supergraph of G. This invariant and its close relatives have gone under many different names in the l ...
, a number that is bounded for a minor-closed graph family if and only if the family excludes a path, and the degeneracy, a measure of the sparsity of a graph that is at most equal to its treewidth.


Grid minor size

Because the treewidth of an grid graph is , the treewidth of a graph is always greater than or equal to the size of the largest square grid minor of . In the other direction, the ''grid minor theorem'' by Robertson and
Seymour Seymour may refer to: Places Australia *Seymour, Victoria, a township *Electoral district of Seymour, a former electoral district in Victoria *Rural City of Seymour, a former local government area in Victoria *Seymour, Tasmania, a locality ...
shows that there exists an unbounded function such that the largest square grid minor has size at least where is the treewidth. The best bounds known on are that must be at least for some fixed constant , and at most :O \left( \sqrt \right). For the notation in the lower bound, see big O notation. Tighter bounds are known for restricted graph families, leading to efficient algorithms for many graph optimization problems on those families through the theory of bidimensionality. Halin's grid theorem provides an analogue of the relation between treewidth and grid minor size for infinite graphs.


Diameter and local treewidth

A family of graphs closed under taking subgraphs is said to have bounded local treewidth, or the diameter-treewidth property, if the treewidth of the graphs in the family is
upper bound In mathematics, particularly in order theory, an upper bound or majorant of a subset of some preordered set is an element of that is greater than or equal to every element of . Dually, a lower bound or minorant of is defined to be an elem ...
ed by a function of their
diameter In geometry, a diameter of a circle is any straight line segment that passes through the center of the circle and whose endpoints lie on the circle. It can also be defined as the longest chord of the circle. Both definitions are also valid fo ...
. If the class is also assumed to be closed under taking minors, then has bounded local treewidth if and only if one of the
forbidden minor In graph theory, a branch of mathematics, many important families of graphs can be described by a finite set of individual graphs that do not belong to the family and further exclude all graphs from the family which contain any of these forbidde ...
s for is an apex graph. The original proofs of this result showed that treewidth in an apex-minor-free graph family grows at most doubly exponentially as a function of diameter; later this was reduced to singly exponential and finally to a linear bound. Bounded local treewidth is closely related to the algorithmic theory of bidimensionality,; . and every graph property definable in first order logic can be decided for an apex-minor-free graph family in an amount of time that is only slightly superlinear. It is also possible for a class of graphs that is not closed under minors to have bounded local treewidth. In particular this is trivially true for a class of bounded degree graphs, as bounded diameter subgraphs have bounded size. Another example is given by 1-planar graphs, graphs that can be drawn in the plane with one crossing per edge, and more generally for the graphs that can be drawn on a surface of bounded genus with a bounded number of crossings per edge. As with minor-closed graph families of bounded local treewidth, this property has pointed the way to efficient approximation algorithms for these graphs.


Hadwiger number and ''S''-functions

defines a class of graph parameters that he calls -functions, which include the treewidth. These functions from graphs to integers are required to be zero on graphs with no edges, to be minor-monotone (a function is referred to as "minor-monotone" if, whenever is a minor of , one has ), to increase by one when a new vertex is added that is adjacent to all previous vertices, and to take the larger value from the two subgraphs on either side of a
clique A clique ( AusE, CanE, or ), in the social sciences, is a group of individuals who interact with one another and share similar interests. Interacting with cliques is part of normative social development regardless of gender, ethnicity, or popula ...
separator Separator can refer to: * A mechanical device to separate fluids and solids, like ** Cream separator, separates cream from milk ** Demister (vapor), removal of liquid droplets entrained in a vapor stream ** Separator (oil production), of an oil pr ...
. The set of all such functions forms a
complete lattice In mathematics, a complete lattice is a partially ordered set in which ''all'' subsets have both a supremum (join) and an infimum (meet). A lattice which satisfies at least one of these properties is known as a ''conditionally complete lattice.'' S ...
under the operations of elementwise minimization and maximization. The top element in this lattice is the treewidth, and the bottom element is the Hadwiger number, the size of the largest complete minor in the given graph.


Notes


References

*. *. *. *. *. * *. *. *. *. *. *. *. *. *. *. *. *. *. *. *. *. *. *. *. *. *. *. * *. *. *. *. *. *. *. *. *. *. *. *. *. *. {{refend Graph invariants Graph minor theory