Twin-width

From HandWiki
Revision as of 21:55, 6 February 2024 by QCDvac (talk | contribs) (correction)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The twin-width of an undirected graph is a natural number associated with the graph, used to study the parameterized complexity of graph algorithms. Intuitively, it measures how similar the graph is to a cograph, a type of graph that can be reduced to a single vertex by repeatedly merging together twins, vertices that have the same neighbors. The twin-width is defined from a sequence of repeated mergers where the vertices are not required to be twins, but have nearly equal sets of neighbors.

Definition

Twin-width is defined for finite simple undirected graphs. These have a finite set of vertices, and a set of edges that are unordered pairs of vertices. The open neighborhood of any vertex is the set of other vertices that it is paired with in edges of the graph; the closed neighborhood is formed from the open neighborhood by including the vertex itself. Two vertices are true twins when they have the same closed neighborhood, and false twins when they have the same open neighborhood; more generally, both true twins and false twins can be called twins, without qualification.[1]

The cographs have many equivalent definitions,[2] but one of them is that these are the graphs that can be reduced to a single vertex by a process of repeatedly finding any two twin vertices and merging them into a single vertex. For a cograph, this reduction process will always succeed, no matter which choice of twins to merge is made at each step. For a graph that is not a cograph, it will always get stuck in a subgraph with more than two vertices that has no twins.[1]

The definition of twin-width mimics this reduction process. A contraction sequence, in this context, is a sequence of steps, beginning with the given graph, in which each step replaces a pair of vertices by a single vertex. This produces a sequence of graphs, with edges colored red and black; in the given graph, all edges are assumed to be black. When two vertices are replaced by a single vertex, the neighborhood of the new vertex is the union of the neighborhoods of the replaced vertices. In this new neighborhood, an edge that comes from black edges in the neighborhoods of both vertices remains black; all other edges are colored red.[1]

A contraction sequence is called a [math]\displaystyle{ d }[/math]-sequence if, throughout the sequence, every vertex touches at most [math]\displaystyle{ d }[/math] red edges. The twin-width of a graph is the smallest value of [math]\displaystyle{ d }[/math] for which it has a [math]\displaystyle{ d }[/math]-sequence.[1]

A dense graph may still have bounded twin-width; for instance, the cographs include all complete graphs. A variation of twin-width, sparse twin-width, applies to families of graphs rather than to individual graphs. For a family of graphs that is closed under taking induced subgraphs and has bounded twin-width, the following properties are equivalent:[3]

  • The graphs in the family are sparse, meaning that they have a number of edges bounded by a linear function of their number of vertices.
  • The family does not include all complete bipartite graphs.
  • The family of all subgraphs of graphs in the given family has bounded twin-width.
  • The family has bounded expansion, meaning that all its shallow minors are sparse.

Such a family is said to have bounded sparse twin-width.[3]

The concept of twin-width can be generalized from graphs to various totally ordered structures (including graphs equipped with a total ordering on their vertices), and is in many ways simpler for ordered structures than for unordered graphs.[4] It is also possible to formulate equivalent definitions for other notions of graph width using contraction sequences with different requirements than having bounded degree.[5]

Graphs of bounded twin-width

Cographs have twin-width zero. In the reduction process for cographs, there will be no red edges: when two vertices are merged, their neighborhoods are equal, so there are no edges coming from only one of the two neighborhoods to be colored red. In any other graph, any contraction sequence will produce some red edges, and the twin-width will be greater than zero.[1]

The path graphs with at most three vertices are cographs, but every larger path graph has twin-width one. For a contraction sequence that repeatedly merges the last two edges of the path, only the edge incident to the single merged vertex will be red, so this is a 1-sequence. Trees have twin-width at most two, and for some trees this is tight. A 2-contraction sequence for any tree may be found by choosing a root, and then repeatedly merging two leaves that have the same parent or, if this is not possible, merging the deepest leaf into its parent. The only red edges connect leaves to their parents, and when there are two at the same parent they can be merged, keeping the red degree at most two.[1]

More generally, the following classes of graphs have bounded twin-width, and a contraction sequence of bounded width can be found for them in polynomial time:

  • Every graph of bounded clique-width, or of bounded rank-width, also has bounded twin-width. The twin-width is at most exponential in the clique-width, and at most doubly exponential in the rank-width.[1] These graphs include, for instance, the distance-hereditary graphs, the k-leaf powers for bounded values of k, and the graphs of bounded treewidth.
  • Indifference graphs (equivalently, unit interval graphs or proper interval graphs) have twin-width at most two.[6]
  • Unit disk graphs defined from sets of unit disks that cover each point of the plane a bounded number of times have bounded twin-width. The same is true for unit ball graphs in higher dimensions.[1]
  • The permutation graphs coming from permutations with a forbidden permutation pattern have bounded twin-width. This allows twin-width to be applied to algorithmic problems on permutations with forbidden patterns.[1]
  • Every family of graphs defined by forbidden minors has bounded twin-width. For instance, by Wagner's theorem, the forbidden minors for planar graphs are the two graphs [math]\displaystyle{ K_5 }[/math] and [math]\displaystyle{ K_{3,3} }[/math], so the planar graphs have bounded twin-width.[1]
  • Every graph of bounded stack number or bounded queue number also has bounded twin-width.[3] There exist families of graphs of bounded sparse twin-width that do not have bounded stack number, but the corresponding question for queue number remains open.[7]
  • The strong product of any two graphs of bounded twin-width, one of which has bounded degree, again has bounded twin-width. This can be used to prove the bounded twin-width of classes of graphs that have decompositions into strong products of paths and bounded-treewidth graphs, such as the k-planar graphs.[3] For the lexicographic product of graphs, the twin-width is exactly the maximum of the widths of the two factor graphs.[8] Twin-width also behaves well under several other standard graph products, but not the modular product of graphs.[9]

In every hereditary family of graphs of bounded twin-width, it is possible to find a family of total orders for the vertices of its graphs so that the inherited ordering on an induced subgraph is also an ordering in the family, and so that the family is small with respect to these orders. This means that, for a total order on [math]\displaystyle{ n }[/math] vertices, the number of graphs in the family consistent with that order is at most singly exponential in [math]\displaystyle{ n }[/math]. Conversely, every hereditary family of ordered graphs that is small in this sense has bounded twin-width.[4] It was originally conjectured that every hereditary family of labeled graphs that is small, in the sense that the number of graphs is at most a singly exponential factor times [math]\displaystyle{ n! }[/math], has bounded twin-width.[3] However, this conjecture was disproved using a family of induced subgraphs of an infinite Cayley graph that are small as labeled graphs but do not have bounded twin-width.[10]

There exist graphs of unbounded twin-width within the following families of graphs:

In each of these cases, the result follows by a counting argument: there are more graphs of the given type than there can be graphs of bounded twin-width.[1]

Properties

If a graph has bounded twin-width, then it is possible to find a versatile tree of contractions. This is a large family of contraction sequences, all of some (larger) bounded width, so that at each step in each sequence there are linearly many disjoint pairs of vertices each of which could be contracted at the next step in the sequence. It follows from this that the number of graphs of bounded twin-width on any set of [math]\displaystyle{ n }[/math] given vertices is larger than [math]\displaystyle{ n! }[/math] by only a singly exponential factor, that the graphs of bounded twin-width have an adjacency labelling scheme with only a logarithmic number of bits per vertex, and that they have universal graphs of polynomial size in which each [math]\displaystyle{ n }[/math]-vertex graph of bounded twin-width can be found as an induced subgraph.[3]

Algorithms

The graphs of twin-width at most one can be recognized in polynomial time.[8] However, it is NP-complete to determine whether a given graph has twin-width at most four, and NP-hard to approximate the twin-width with an approximation ratio better than 5/4. Under the exponential time hypothesis, computing the twin-width requires time at least exponential in [math]\displaystyle{ n/\log n }[/math], on [math]\displaystyle{ n }[/math]-vertex graphs.[11] In practice, it is possible to compute the twin-width of graphs of moderate size using SAT solvers.[12] For most of the known families of graphs of bounded twin-width, it is possible to construct a contraction sequence of bounded width in polynomial time.[1]

Once a contraction sequence has been given or constructed, many different algorithmic problems can be solved using it, in many cases more efficiently than is possible for graphs that do not have bounded twin-width. As detailed below, these include exact parameterized algorithms and approximation algorithms for NP-hard problems, as well as some problems that have classical polynomial time algorithms but can nevertheless be sped up using the assumption of bounded twin-width.

Parameterized algorithms

An algorithmic problem on graphs having an associated parameter is called fixed-parameter tractable if it has an algorithm that, on graphs with [math]\displaystyle{ n }[/math] vertices and parameter value [math]\displaystyle{ k }[/math], runs in time [math]\displaystyle{ O(n^c\, f(k)) }[/math] for some constant [math]\displaystyle{ c }[/math] and computable function [math]\displaystyle{ f }[/math]. For instance, a running time of [math]\displaystyle{ O(n2^k) }[/math] would be fixed-parameter tractable in this sense. This style of analysis is generally applied to problems that do not have a known polynomial-time algorithm, because otherwise fixed-parameter tractability would be trivial. Many such problems have been shown to be fixed-parameter tractable with twin-width as a parameter, when a contraction sequence of bounded width is given as part of the input. This applies, in particular, to the graph families of bounded twin-width listed above, for which a contraction sequence can be constructed efficiently. However, it is not known how to find a good contraction sequence for an arbitrary graph of low twin-width, when no other structure in the graph is known.

The fixed-parameter tractable problems for graphs of bounded twin-width with given contraction sequences include:

  • Testing whether the given graph models any given property in the first-order logic of graphs. Here, both the twin-width and the description length of the property are parameters of the analysis. Problems of this type include subgraph isomorphism for subgraphs of bounded size, and the vertex cover and dominating set problems for covers or dominating sets of bounded size.[1] The dependence of these general methods on the length of the logical formula describing the property is tetrational, but for independent set, dominating set, and related problems it can be reduced to exponential in the size of the independent or dominating set, and for subgraph isomorphism it can be reduced to factorial in the number of vertices of the subgraph. For instance, the time to find a [math]\displaystyle{ k }[/math]-vertex independent set, for an [math]\displaystyle{ n }[/math]-vertex graph with a given [math]\displaystyle{ d }[/math]-sequence, is [math]\displaystyle{ O(k^2d^{2k}n) }[/math], by a dynamic programming algorithm that considers small connected subgraphs of the red graphs in the forward direction of the contraction sequence. These time bounds are optimal, up to logarithmic factors in the exponent, under the exponential time hypothesis.[6] For an extension of the first-order logic of graphs to graphs with totally ordered vertices, and logical predicates that can test this ordering, model checking is still fixed-parameter tractable for hereditary graph families of bounded twin-width, but not (under standard complexity-theoretic assumptions) for hereditary families of unbounded twin-width.[13]
  • Coloring graphs of bounded twin-width, using a number of colors that is bounded by a function of their twin-width and of the size of their largest clique. For instance, triangle-free graphs of twin-width [math]\displaystyle{ d }[/math] can be [math]\displaystyle{ (d+2) }[/math]-colored by a greedy coloring algorithm that colors vertices in the reverse of the order they were contracted away.[6] This result shows that the graphs of bounded twin-width are χ-bounded.[6][14] For graph families of bounded sparse twin-width, the generalized coloring numbers are bounded. Here, the generalized coloring number [math]\displaystyle{ \operatorname{col}_r(G) }[/math] is at most [math]\displaystyle{ k }[/math] if the vertices can be linearly ordered in such a way that each vertex can reach at most [math]\displaystyle{ k-1 }[/math] earlier vertices in the ordering, through paths of length [math]\displaystyle{ r }[/math] through later vertices in the ordering.[15]

Speedups of classical algorithms

In graphs of bounded twin-width, it is possible to perform a breadth-first search, on a graph with [math]\displaystyle{ n }[/math] vertices, in time [math]\displaystyle{ O(n\log n) }[/math], even when the graph is dense and has more edges than this time bound.[6]

Approximation algorithms

Twin-width has also been applied in approximation algorithms. In particular, in the graphs of bounded twin-width, it is possible to find an approximation to the minimum dominating set with bounded approximation ratio. This is in contrast to more general graphs, for which it is NP-hard to obtain an approximation ratio that is better than logarithmic.[6]

The maximum independent set and graph coloring problems can be approximated to within an approximation ratio of [math]\displaystyle{ n^{\varepsilon} }[/math], for every [math]\displaystyle{ \varepsilon\gt 0 }[/math], in polynomial time on graphs of bounded twin-width. In contrast, without the assumption of bounded twin-width, it is NP-hard to achieve any approximation ratio of this form with [math]\displaystyle{ \varepsilon\lt 1 }[/math].[16]

References

  1. 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 Bonnet, Édouard (2022), "Twin-width I: Tractable FO model checking", Journal of the ACM 69 (1): A3:1–A3:46, doi:10.1145/3486655 
  2. "Cograph graphs", Information System on Graph Class Inclusions, http://www.graphclasses.org/classes/gc_151.html 
  3. 3.0 3.1 3.2 3.3 3.4 3.5 Bonnet, Édouard; Geniet, Colin (2022), "Twin-width II: small classes", Combinatorial Theory 2 (2): P10:1–P10:42, doi:10.5070/C62257876 
  4. 4.0 4.1 Bonnet, Édouard; Giocanti, Ugo; de Mendez, Patrice Ossona; Simon, Pierre; Thomassé, Stéphan; Torunczyk, Szymon (2022), "Twin-width IV: ordered graphs and matrices", in Leonardi, Stefano; Gupta, Anupam, STOC '22: 54th Annual ACM SIGACT Symposium on Theory of Computing, Rome, Italy, June 20–24, 2022, Association for Computing Machinery, pp. 924–937, doi:10.1145/3519935.3520037 
  5. Bonnet, Édouard (2022), "Twin-width VI: the lens of contraction sequences", in Naor, Joseph (Seffi); Buchbinder, Niv, Proceedings of the 2022 ACM-SIAM Symposium on Discrete Algorithms, SODA 2022, Virtual Conference / Alexandria, VA, USA, January 9–12, 2022, Society for Industrial and Applied Mathematics, pp. 1036–1056, doi:10.1137/1.9781611977073.45 
  6. 6.0 6.1 6.2 6.3 6.4 6.5 Bonnet, Édouard; Geniet, Colin (2021), "Twin-width III: Max independent set, min dominating set, and coloring", in Bansal, Nikhil; Merelli, Emanuela; Worrell, James, 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, July 12–16, 2021, Glasgow, Scotland (Virtual Conference), LIPIcs, 198, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 35:1–35:20, doi:10.4230/LIPIcs.ICALP.2021.35, ISBN 9783959771955 
  7. "Stack-Number is not bounded by queue-number", Combinatorica 42 (2): 151–164, August 2021, doi:10.1007/s00493-021-4585-7 
  8. 8.0 8.1 Bonnet, Édouard (2022), "Twin-width and polynomial kernels", Algorithmica 84 (11): 3300–3337, doi:10.1007/s00453-022-00965-5 
  9. Pettersson, William; Pettersson, John (June 2023), "Bounds on the twin-width of product graphs", Discrete Mathematics & Theoretical Computer Science 25 (1), doi:10.46298/dmtcs.10091 
  10. Bonnet, Édouard; Geniet, Colin; Tessera, Romain; Thomassé, Stéphan (2022), "Twin-width VII: groups", arXiv:2204.12330 [math.GR]
  11. Bergé, Pierre; Bonnet, Édouard; Déprés, Hugues (2022), "Deciding twin-width at most 4 Is NP-complete", in Bojanczyk, Mikolaj; Merelli, Emanuela; Woodruff, David P., 49th International Colloquium on Automata, Languages, and Programming, ICALP 2022, July 4–8, 2022, Paris, France, LIPIcs, 229, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 18:1–18:20, doi:10.4230/LIPIcs.ICALP.2022.18, ISBN 9783959772358 
  12. Schidler, André; Szeider, Stefan (2022), "A SAT approach to twin-width", Proceedings of the Symposium on Algorithm Engineering and Experiments, ALENEX 2022, Alexandria, VA, USA, January 9–10, 2022, Society for Industrial and Applied Mathematics, pp. 67–77, doi:10.1137/1.9781611977042.6 
  13. Simon, Pierre; Toruńczyk, Szymon (2021), Ordered graphs of bounded twin-width 
  14. Pilipczuk, Marek; Sokołowski, Michał (2023), "Graphs of bounded twin-width are quasi-polynomially [math]\displaystyle{ \chi }[/math]-bounded", Journal of Combinatorial Theory, Series B 161: 382–406, doi:10.1016/j.jctb.2023.02.006 
  15. Dreier, Jan; Gajarský, Jakub; Jiang, Yiting; Ossona de Mendez, Patrice; Raymond, Jean-Florent (2022), "Twin-width and generalized coloring numbers", Discrete Mathematics 345 (3): Paper 112746, doi:10.1016/j.disc.2021.112746 
  16. Bergé, Pierre; Bonnet, Édouard; Déprés, Hugues; Watrigant, Rémi (2023), "Approximating highly inapproximable problems on graphs of bounded twin-width", in Berenbrink, Petra, 40th International Symposium on Theoretical Aspects of Computer Science, STACS 2023, March 7-9, 2023, Hamburg, Germany, LIPIcs, 254, Schloss Dagstuhl - Leibniz-Zentrum für Informatik, pp. 10:1–10:15, doi:10.4230/LIPIcs.STACS.2023.10 

Further reading

  • Ahn, Jungho; Hendrey, Kevin; Kim, Donggyu; Oum, Sang-Il (2022), "Bounds for the twin-width of graphs", SIAM Journal on Discrete Mathematics 36 (3): 2352–2366, doi:10.1137/21M1452834 
  • Balabán, Jakub; Hlinený, Petr (2021), "Twin-width is linear in the poset width", in Golovach, Petr A.; Zehavi, Meirav, 16th International Symposium on Parameterized and Exact Computation, IPEC 2021, September 8–10, 2021, Lisbon, Portugal, LIPIcs, 214, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 6:1–6:13, doi:10.4230/LIPIcs.IPEC.2021.6, ISBN 9783959772167 
  • Balabán, Jakub; Hlinený, Petr; Jedelský, Jan (2022), "Twin-width and transductions of proper k-mixed-thin graphs", in Bekos, Michael A.; Kaufmann, Michael, Graph-Theoretic Concepts in Computer Science - 48th International Workshop, WG 2022, Tübingen, Germany, June 22–24, 2022, Revised Selected Papers, Lecture Notes in Computer Science, 13453, Springer, pp. 43–55, doi:10.1007/978-3-031-15914-5_4 
  • Bonnet, Édouard; Chakraborty, Dibyayan (2022), "Twin-Width VIII: Delineation and win-wins", in Dell, Holger; Nederlof, Jesper, 17th International Symposium on Parameterized and Exact Computation, IPEC 2022, September 7–9, 2022, Potsdam, Germany, LIPIcs, 249, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 9:1–9:18, doi:10.4230/LIPIcs.IPEC.2022.9 
  • Bonnet, Édouard; Déprés, Hugues (2023), "Twin-width can be exponential in treewidth", Journal of Combinatorial Theory, Series B 161: 1–14, doi:10.1016/j.jctb.2023.01.003 
  • Bonnet, Édouard; Giocanti, Ugo; de Mendez, Patrice Ossona; Thomassé, Stéphan (2023), "Twin-width V: linear minors, modular counting, and matrix multiplication", in Berenbrink, Petra, 40th International Symposium on Theoretical Aspects of Computer Science, STACS 2023, March 7–9, 2023, Hamburg, Germany, LIPIcs, 254, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 15:1–15:16, doi:10.4230/LIPIcs.STACS.2023.15 
  • Bonnet, Édouard; Kwon, O-joung (2022), "Reduced bandwidth: a qualitative strengthening of twin-width in minor-closed classes (and beyond)", arXiv:2202.11858 [math.CO]
  • Bonnet, Édouard; Nešetřil, Jaroslav; Ossona de Mendez, Patrice; Siebertz, Sebastian; Thomassé, Stephan (August 2023), "Twin-width and permutations", European Conference on Combinatorics, Graph Theory and Applications (EUROCOMB'23), Masaryk University Press, pp. 156–162, doi:10.5817/cz.muni.eurocomb23-022 
  • Gajarský, Jakub; Pilipczuk, Michal; Przybyszewski, Wojciech; Toruńczyk, Szymon (2022), "Twin-width and types", in Bojanczyk, Mikolaj; Merelli, Emanuela; Woodruff, David P., 49th International Colloquium on Automata, Languages, and Programming, ICALP 2022, July 4–8, 2022, Paris, France, LIPIcs, 229, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 123:1–123:21, doi:10.4230/LIPIcs.ICALP.2022.123, ISBN 9783959772358 
  • Gajarský, Jakub; Pilipczuk, Michal; Toruńczyk, Szymon (2022), "Stable graphs of bounded twin-width", LICS '22: 37th Annual ACM/IEEE Symposium on Logic in Computer Science, Haifa, Israel, August 2–5, 2022, Association for Computing Machinery, pp. 39:1–39:12, doi:10.1145/3531130.3533356 
  • Geniet, Colin; Thomassé, Stéphan (2023), "First order logic and twin-width in tournaments", in Gørtz, Inge Li, 31st Annual European Symposium on Algorithms, ESA 2023, September 4–6, 2023, Amsterdam, The Netherlands, LIPIcs, 274, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 53:1–53:14, doi:10.4230/LIPICS.ESA.2023.53 
  • Jacob, Hugo; Pilipczuk, Marcin (2022), "Bounding twin-width for bounded-treewidth graphs, planar graphs, and bipartite graphs", in Bekos, Michael A.; Kaufmann, Michael, Graph-Theoretic Concepts in Computer Science – 48th International Workshop, WG 2022, Tübingen, Germany, June 22–24, 2022, Revised Selected Papers, Lecture Notes in Computer Science, 13453, Springer, pp. 287–299, doi:10.1007/978-3-031-15914-5_21 
  • Pilipczuk, Michal; Sokolowski, Marek; Zych-Pawlewicz, Anna (2022), "Compact representation for matrices of bounded twin-width", in Berenbrink, Petra; Monmege, Benjamin, 39th International Symposium on Theoretical Aspects of Computer Science, STACS 2022, March 15–18, 2022, Marseille, France (Virtual Conference), LIPIcs, 219, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 52:1–52:14, doi:10.4230/LIPIcs.STACS.2022.52, ISBN 9783959772228 
  • Przybyszewski, Wojciech (2022), VC-density and abstract cell decomposition for edge relation in graphs of bounded twin-width 
  • Thomassé, Stéphan (2022), "A brief tour in twin-width (invited talk)", in Bojanczyk, Mikolaj; Merelli, Emanuela; Woodruff, David P., 49th International Colloquium on Automata, Languages, and Programming, ICALP 2022, July 4–8, 2022, Paris, France, LIPIcs, 229, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 6:1–6:5, doi:10.4230/LIPIcs.ICALP.2022.6, ISBN 9783959772358