Papers
Topics
Authors
Recent
Search
2000 character limit reached

Contraction Width in Graph & Tensor Networks

Updated 12 July 2026
  • Contraction width is a family of measures that quantifies structural irregularities during vertex contractions, as seen in twin-width and tensor-network analyses.
  • It underpins methods that compute bounded contraction sequences, enabling linear-time algorithms for important graph classes and facilitating FO model checking.
  • Variants like total twin-width and component twin-width reveal tight links with clique-width and rank-width, shaping both theoretical insights and practical algorithms.

Searching arXiv for the cited works to ground the synthesis. {"query":"(Hliněný et al., 2022) contraction width twin-width planar graphs (Jakes-Schauer et al., 2019) carving-width contraction trees tensor networks (Bernstein et al., 2017) distance-preserving graph contractions (Kráľ et al., 2023) graphs on surfaces twin-width (Baril et al., 5 Sep 2025) component twin-width (Gajarský et al., 2022) twin-width and types", "max_results": 10} Contraction width denotes a family of context-dependent measurements attached to contraction processes. In graph structure theory, its most prominent incarnation is twin-width: a graph is viewed as a trigraph, vertices are merged until one vertex remains, and the width of a contraction sequence is the maximum red degree appearing along the sequence (Bonnet et al., 2020). In tensor-network algorithms, contraction width is expressed through contraction trees and the induced space and time bottlenecks, most notably Bs(G)B_{\mathrm{s}}(G) and Bt(G)B_{\mathrm{t}}(G), with carving-width capturing the logarithm of the spatial bottleneck (Jakes-Schauer et al., 2019). In distance-preserving graph compression, the term is not fixed as a single formal invariant, but the framework explicitly suggests width-like quantities based on how much edge or vertex mass can be contracted under a tolerance function φ(x)=x/α−β\varphi(x)=x/\alpha-\beta (Bernstein et al., 2017). This suggests that contraction width is best regarded as a family of contraction-based invariants rather than a single universally standardized parameter.

1. Twin-width as contraction width

In the twin-width setting, the basic object is a trigraph: a graph in which some edges are marked red. Starting from an ordinary graph GG with no red edges, one repeatedly contracts pairs of vertices. If x1,x2x_1,x_2 are contracted into x0x_0, then the full neighborhood of x0x_0 is

NG′(x0)=(NG(x1)∪NG(x2))∖{x1,x2},N_{G'}(x_0)=\bigl(N_G(x_1)\cup N_G(x_2)\bigr)\setminus\{x_1,x_2\},

while the red neighborhood is

NG′r(x0)=(NGr(x1)∪NGr(x2)∪(NG(x1)ΔNG(x2)))∖{x1,x2}.N_{G'}^r(x_0)=\bigl(N_G^r(x_1)\cup N_G^r(x_2)\cup (N_G(x_1)\Delta N_G(x_2))\bigr)\setminus\{x_1,x_2\}.

Red edges therefore record neighborhood disagreements created by contraction (Hliněný et al., 2022).

A contraction sequence is a sequence

G=G0,G1,…,Gn−1,G=G_0,G_1,\dots,G_{n-1},

where each Bt(G)B_{\mathrm{t}}(G)0 is obtained from Bt(G)B_{\mathrm{t}}(G)1 by contracting a pair of vertices and the final trigraph has one vertex. The width of such a sequence is

Bt(G)B_{\mathrm{t}}(G)2

that is, the maximum red degree ever attained. Twin-width is the minimum possible width: Bt(G)B_{\mathrm{t}}(G)3 Equivalently, Bt(G)B_{\mathrm{t}}(G)4 has twin-width at most Bt(G)B_{\mathrm{t}}(G)5 if and only if it admits a contraction sequence in which the red degree of every vertex, at every step, is at most Bt(G)B_{\mathrm{t}}(G)6 (Hliněný et al., 2022).

An equivalent formulation uses partitions and impurity graphs. For a partition Bt(G)B_{\mathrm{t}}(G)7 of Bt(G)B_{\mathrm{t}}(G)8, the quotient trigraph Bt(G)B_{\mathrm{t}}(G)9 has one vertex per part, with an impure pair corresponding to a red edge. The width of a contraction sequence is then the maximum degree of the impurity graphs φ(x)=x/α−β\varphi(x)=x/\alpha-\beta0 over all times φ(x)=x/α−β\varphi(x)=x/\alpha-\beta1; the twin-width of φ(x)=x/α−β\varphi(x)=x/\alpha-\beta2 is the minimum such width (Gajarský et al., 2022). In this sense, “contraction width” in the twin-width literature is exactly the maximal local irregularity generated during iterative merging.

2. Explicit contraction-width bounds in graph classes

A major line of work studies explicit bounded-width contraction sequences for concrete graph classes. For planar graphs, the twin-width is at most φ(x)=x/α−β\varphi(x)=x/\alpha-\beta3, and a witnessing contraction sequence can be found in linear time (Hliněný et al., 2022). The same paper also proves explicit upper bounds of φ(x)=x/α−β\varphi(x)=x/\alpha-\beta4 for simple bipartite planar graphs, φ(x)=x/α−β\varphi(x)=x/\alpha-\beta5 for simple 1-planar graphs, φ(x)=x/α−β\varphi(x)=x/\alpha-\beta6 for the square of any bipartite planar graph, and φ(x)=x/α−β\varphi(x)=x/\alpha-\beta7 for map graphs, all via a recursive decomposition based on skeletal trigraphs, BFS trees, wrapped faces, and level-respecting contractions (Hliněný et al., 2022).

For graphs embeddable in a surface of Euler genus φ(x)=x/α−β\varphi(x)=x/\alpha-\beta8, the twin-width is at most

φ(x)=x/α−β\varphi(x)=x/\alpha-\beta9

and the proof yields a quadratic-time algorithm to construct a corresponding contraction sequence (Kráľ et al., 2023). The same work gives a lower bound of

GG0

so the dependence on GG1 is asymptotically GG2 (Kráľ et al., 2023).

For posets, the paper on width-bounded posets defines a natural twin-width directly on red posets and proves that a poset of width GG3 has natural twin-width at most GG4, hence symmetric twin-width at most GG5; the corresponding contraction sequence can be constructed in time GG6 (Balabán et al., 2021). This is asymptotically tight up to constants, since there exists a poset of width GG7 whose natural twin-width is at least GG8 (Balabán et al., 2021). In the special case of width GG9, the worst-case value is exactly x1,x2x_1,x_20, and a width-x1,x2x_1,x_21 contraction sequence can be computed in linear time (Balabán et al., 2021).

Bounded VC-dimension yields sub-linear contraction width. For graphs with VC-dimension at most x1,x2x_1,x_22, the twin-width is

x1,x2x_1,x_23

obtained by partitioning the vertex set into blocks whose members have similar neighborhoods toward later blocks (Biedl et al., 19 Jun 2026). Interval graphs admit a sharper upper bound x1,x2x_1,x_24, while there also exist x1,x2x_1,x_25-vertex interval graphs with twin-width at least

x1,x2x_1,x_26

(Biedl et al., 19 Jun 2026).

3. Variants of contraction width and relations to other width parameters

The contraction-sequence viewpoint supports several refinements of twin-width. Component twin-width measures the maximum size of a red-connected component; total twin-width measures the number of red edges; total vertex twin-width measures the number of vertices incident to a red edge (Baril et al., 5 Sep 2025). These variants admit unexpectedly tight comparisons with clique-width parameters: x1,x2x_1,x_27 and

x1,x2x_1,x_28

while total twin-width satisfies

x1,x2x_1,x_29

(Baril et al., 5 Sep 2025). A separate synthesis through contraction sequences shows that component twin-width is functionally equivalent to rank-width, and total twin-width is functionally equivalent to linear rank-width (Bonnet et al., 2021).

These relations clarify that the width measured along a contraction sequence can be tuned to recover older decomposition paradigms. In sparse regimes, this becomes particularly sharp. If a graph class excludes x0x_00 and has twin-width at most x0x_01, then its tree-width is bounded by a polynomial in x0x_02, more precisely by x0x_03 (Bergougnoux et al., 2023). Conversely, there is a x0x_04-free graph class of twin-width x0x_05 and unbounded tree-width, showing that the twin-width-x0x_06 threshold is structurally special (Bergougnoux et al., 2023).

The “lens of contraction sequences” perspective also introduces oriented twin-width, where newly created red edges are oriented away from the contracted vertex and only the red out-degree is bounded. Although this looks weaker, bounded oriented twin-width and bounded twin-width coincide as graph classes (Bonnet et al., 2021). The same paper defines spanning twin-width and shows that, for monotone classes, bounded spanning twin-width is equivalent to being proper minor-closed (Bonnet et al., 2021).

4. Logical and algorithmic significance of bounded contraction width

Bounded contraction width is algorithmically meaningful only when a witnessing sequence is available. For graphs of bounded twin-width, given a x0x_07-contraction sequence, FO model checking is fixed-parameter tractable in the formula size and runs in time

x0x_08

where x0x_09 is computable and x0x_00 is the domain of the input binary structure (Bonnet et al., 2020). The same framework is preserved under FO interpretations and transductions, including operations such as squaring and complementation (Bonnet et al., 2020).

A more refined local-type methodology shows that bounded contraction width supports much stronger data-structural consequences. For a fixed FO formula x0x_01 and fixed width bound x0x_02, one can, from a graph x0x_03 together with a contraction sequence of width at most x0x_04, build in x0x_05 time a data structure answering tuple queries in x0x_06 time; with x0x_07-time preprocessing, the query time can be reduced to x0x_08 (Gajarský et al., 2022). After x0x_09-time preprocessing, one can also enumerate all satisfying tuples with NG′(x0)=(NG(x1)∪NG(x2))∖{x1,x2},N_{G'}(x_0)=\bigl(N_G(x_1)\cup N_G(x_2)\bigr)\setminus\{x_1,x_2\},0 delay (Gajarský et al., 2022). The same local-type machinery yields the VC-density bound that, for a graph NG′(x0)=(NG(x1)∪NG(x2))∖{x1,x2},N_{G'}(x_0)=\bigl(N_G(x_1)\cup N_G(x_2)\bigr)\setminus\{x_1,x_2\},1 of twin-width NG′(x0)=(NG(x1)∪NG(x2))∖{x1,x2},N_{G'}(x_0)=\bigl(N_G(x_1)\cup N_G(x_2)\bigr)\setminus\{x_1,x_2\},2, a subset NG′(x0)=(NG(x1)∪NG(x2))∖{x1,x2},N_{G'}(x_0)=\bigl(N_G(x_1)\cup N_G(x_2)\bigr)\setminus\{x_1,x_2\},3, and an FO formula NG′(x0)=(NG(x1)∪NG(x2))∖{x1,x2},N_{G'}(x_0)=\bigl(N_G(x_1)\cup N_G(x_2)\bigr)\setminus\{x_1,x_2\},4, the number of subsets of NG′(x0)=(NG(x1)∪NG(x2))∖{x1,x2},N_{G'}(x_0)=\bigl(N_G(x_1)\cup N_G(x_2)\bigr)\setminus\{x_1,x_2\},5 definable by NG′(x0)=(NG(x1)∪NG(x2))∖{x1,x2},N_{G'}(x_0)=\bigl(N_G(x_1)\cup N_G(x_2)\bigr)\setminus\{x_1,x_2\},6 using NG′(x0)=(NG(x1)∪NG(x2))∖{x1,x2},N_{G'}(x_0)=\bigl(N_G(x_1)\cup N_G(x_2)\bigr)\setminus\{x_1,x_2\},7-tuples of parameters is NG′(x0)=(NG(x1)∪NG(x2))∖{x1,x2},N_{G'}(x_0)=\bigl(N_G(x_1)\cup N_G(x_2)\bigr)\setminus\{x_1,x_2\},8 (Gajarský et al., 2022).

On the algorithmic side of computing contraction sequences, the feedback-edge-number parameterization gives concrete positive results. If NG′(x0)=(NG(x1)∪NG(x2))∖{x1,x2},N_{G'}(x_0)=\bigl(N_G(x_1)\cup N_G(x_2)\bigr)\setminus\{x_1,x_2\},9, then deciding whether NG′r(x0)=(NGr(x1)∪NGr(x2)∪(NG(x1)ΔNG(x2)))∖{x1,x2}.N_{G'}^r(x_0)=\bigl(N_G^r(x_1)\cup N_G^r(x_2)\cup (N_G(x_1)\Delta N_G(x_2))\bigr)\setminus\{x_1,x_2\}.0 has twin-width at most NG′r(x0)=(NGr(x1)∪NGr(x2)∪(NG(x1)ΔNG(x2)))∖{x1,x2}.N_{G'}^r(x_0)=\bigl(N_G^r(x_1)\cup N_G^r(x_2)\cup (N_G(x_1)\Delta N_G(x_2))\bigr)\setminus\{x_1,x_2\}.1 admits a linear bikernel, and a corresponding 2-contraction sequence can be computed in time

NG′r(x0)=(NGr(x1)∪NGr(x2)∪(NG(x1)ΔNG(x2)))∖{x1,x2}.N_{G'}^r(x_0)=\bigl(N_G^r(x_1)\cup N_G^r(x_2)\cup (N_G(x_1)\Delta N_G(x_2))\bigr)\setminus\{x_1,x_2\}.2

(Balabán et al., 2023). More generally, there is an algorithm running in time NG′r(x0)=(NGr(x1)∪NGr(x2)∪(NG(x1)ΔNG(x2)))∖{x1,x2}.N_{G'}^r(x_0)=\bigl(N_G^r(x_1)\cup N_G^r(x_2)\cup (N_G(x_1)\Delta N_G(x_2))\bigr)\setminus\{x_1,x_2\}.3 that outputs a contraction sequence of width at most NG′r(x0)=(NGr(x1)∪NGr(x2)∪(NG(x1)ΔNG(x2)))∖{x1,x2}.N_{G'}^r(x_0)=\bigl(N_G^r(x_1)\cup N_G^r(x_2)\cup (N_G(x_1)\Delta N_G(x_2))\bigr)\setminus\{x_1,x_2\}.4 (Balabán et al., 2023). The same paper also proves that every graph with feedback edge number NG′r(x0)=(NGr(x1)∪NGr(x2)∪(NG(x1)ΔNG(x2)))∖{x1,x2}.N_{G'}^r(x_0)=\bigl(N_G^r(x_1)\cup N_G^r(x_2)\cup (N_G(x_1)\Delta N_G(x_2))\bigr)\setminus\{x_1,x_2\}.5 has twin-width at most NG′r(x0)=(NGr(x1)∪NGr(x2)∪(NG(x1)ΔNG(x2)))∖{x1,x2}.N_{G'}^r(x_0)=\bigl(N_G^r(x_1)\cup N_G^r(x_2)\cup (N_G(x_1)\Delta N_G(x_2))\bigr)\setminus\{x_1,x_2\}.6 (Balabán et al., 2023).

5. Tensor-network contraction width

In tensor-network algorithms, contraction width is formalized through contraction trees rather than red-degree sequences. A tensor network is modeled as an undirected weighted graph NG′r(x0)=(NGr(x1)∪NGr(x2)∪(NG(x1)ΔNG(x2)))∖{x1,x2}.N_{G'}^r(x_0)=\bigl(N_G^r(x_1)\cup N_G^r(x_2)\cup (N_G(x_1)\Delta N_G(x_2))\bigr)\setminus\{x_1,x_2\}.7, and a contraction ordering is represented by a rooted or free contraction tree whose leaves correspond to tensors and whose arcs and internal nodes are labeled by cuts of the original graph (Jakes-Schauer et al., 2019).

For a contraction tree NG′r(x0)=(NGr(x1)∪NGr(x2)∪(NG(x1)ΔNG(x2)))∖{x1,x2}.N_{G'}^r(x_0)=\bigl(N_G^r(x_1)\cup N_G^r(x_2)\cup (N_G(x_1)\Delta N_G(x_2))\bigr)\setminus\{x_1,x_2\}.8, the paper defines the spatial and temporal bottlenecks. If an arc NG′r(x0)=(NGr(x1)∪NGr(x2)∪(NG(x1)ΔNG(x2)))∖{x1,x2}.N_{G'}^r(x_0)=\bigl(N_G^r(x_1)\cup N_G^r(x_2)\cup (N_G(x_1)\Delta N_G(x_2))\bigr)\setminus\{x_1,x_2\}.9 induces a bipartition G=G0,G1,…,Gn−1,G=G_0,G_1,\dots,G_{n-1},0, its weight is

G=G0,G1,…,Gn−1,G=G_0,G_1,\dots,G_{n-1},1

which is the size of the corresponding intermediate tensor. The space bottleneck is

G=G0,G1,…,Gn−1,G=G_0,G_1,\dots,G_{n-1},2

If an internal node G=G0,G1,…,Gn−1,G=G_0,G_1,\dots,G_{n-1},3 induces a tripartition G=G0,G1,…,Gn−1,G=G_0,G_1,\dots,G_{n-1},4, then

G=G0,G1,…,Gn−1,G=G_0,G_1,\dots,G_{n-1},5

and the time bottleneck is

G=G0,G1,…,Gn−1,G=G_0,G_1,\dots,G_{n-1},6

The total time is

G=G0,G1,…,Gn−1,G=G_0,G_1,\dots,G_{n-1},7

(Jakes-Schauer et al., 2019).

In this setting, contraction width is best understood as these bottleneck quantities, especially G=G0,G1,…,Gn−1,G=G_0,G_1,\dots,G_{n-1},8 and G=G0,G1,…,Gn−1,G=G_0,G_1,\dots,G_{n-1},9. The paper proves

Bt(G)B_{\mathrm{t}}(G)00

and identifies carving-width as the logarithm of the spatial bottleneck: Bt(G)B_{\mathrm{t}}(G)01 (Jakes-Schauer et al., 2019). For planar tensor networks, the Ratcatcher algorithm of Seymour and Thomas computes carving-width, and the resulting contraction trees provide a practical heuristic for controlling both memory and time in exact contraction (Jakes-Schauer et al., 2019).

6. Distance-preserving contractions and adjacent contraction-centered notions

A different notion arises in metric compression. Given an edge-weighted graph Bt(G)B_{\mathrm{t}}(G)02 with positive lengths and a tolerance function Bt(G)B_{\mathrm{t}}(G)03, a set of edges Bt(G)B_{\mathrm{t}}(G)04 is a strong Bt(G)B_{\mathrm{t}}(G)05-distance-preserving contraction if

Bt(G)B_{\mathrm{t}}(G)06

where Bt(G)B_{\mathrm{t}}(G)07 sets contracted edges to length Bt(G)B_{\mathrm{t}}(G)08 (Bernstein et al., 2017). For affine tolerances

Bt(G)B_{\mathrm{t}}(G)09

the framework studies how much a graph can be compressed subject to multiplicative and additive distortion (Bernstein et al., 2017).

The paper explicitly remarks that it does not use the term “contraction width,” but it naturally suggests width-like parameters such as edge-contraction width

Bt(G)B_{\mathrm{t}}(G)10

vertex-contraction width

Bt(G)B_{\mathrm{t}}(G)11

and tolerance width for a target compressed size (Bernstein et al., 2017). In this metric setting, contraction width quantifies compressibility under distortion rather than red-degree irregularity. The paper gives linear-time greedy algorithms for paths and cycles with unit lengths, dynamic programming for strong contractions on trees in Bt(G)B_{\mathrm{t}}(G)12 time and for weak contractions in Bt(G)B_{\mathrm{t}}(G)13 time, as well as NP-hardness and inapproximability results on more general graph classes (Bernstein et al., 2017).

Adjacent literature uses contraction as an algorithmic mechanism even when no standalone “contraction width” parameter is defined. A contraction-recursive treewidth algorithm interleaves an exact treewidth routine with recursive calls on edge contractions Bt(G)B_{\mathrm{t}}(G)14, and may return a minimal contraction Bt(G)B_{\mathrm{t}}(G)15 of Bt(G)B_{\mathrm{t}}(G)16 such that Bt(G)B_{\mathrm{t}}(G)17 as a certificate (Tamaki, 2023). By contrast, clique-width behaves badly under unrestricted edge contraction: graphs of clique-width at most Bt(G)B_{\mathrm{t}}(G)18 can yield, after edge contractions, graphs of unbounded clique-width; however, contractions of edges incident with a degree-2 vertex preserve bounded clique-width up to the bound Bt(G)B_{\mathrm{t}}(G)19 when the original graph has clique-width Bt(G)B_{\mathrm{t}}(G)20 (Courcelle, 2013). These neighboring results reinforce a general lesson: contraction is a pervasive operation across graph theory and algorithms, but the width quantity it induces depends sharply on what structural information is preserved and on which contractions are allowed.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Contraction Width.