A tree decomposition of width has bags
with tree edges , , .
Every graph vertex occurs in a bag and every constraint edge has both endpoints in some bag. The bags containing any fixed vertex form a connected connected subgraph of a tree: occurs in , in , in , and in all four. The remaining vertices occur once. Hence the running-intersection condition holds. The maximum bag size is four, giving width .
Under the stated overlap assumptions, is a four-vertex clique, so the treewidth is at least ; this decomposition attains it. A proof of that lower bound is not needed to use the displayed decomposition.
Here each is a nonempty connected subgraph of a tree, rather than a descendant-closed data-structure subtree. We prove the Helly property for connected subgraphs of a tree by mathematical induction on the number of vertices of .
For a one-vertex tree, every nonempty contains that vertex. For a larger tree, choose a leaf of a tree using part (i), and denote its unique neighbour by . If some consists only of , the assumed pairwise intersections force every to contain , and we are done.
Otherwise, remove from every that contains it, leaving all other unchanged. Any affected has at least two vertices; connectedness forces it to contain and the edge . Thus is a leaf of a tree of , and part (ii) shows that its deletion leaves a nonempty tree. All reduced are therefore nonempty connected subgraphs of a tree .
They still intersect pairwise. An original common vertex other than survives. If a pair had only in common, both members would also contain , by the previous paragraph, contradicting that it was their only common vertex. The induction hypothesis now supplies a common vertex of the reduced family, which is also common to the original family. Consequently
Tree decomposition 2026-10-24
A tree of bags of graph vertices such that every vertex occurs in a bag, both endpoints of every graph edge occur together in a bag, and the bags containing any fixed vertex form a connected connected subgraph of a tree. Its width is . The connected-occurrence condition lets subproblems agree on shared variables while solving a constraint satisfaction problem; an arbitrary cover of edges by small bags is insufficient.