Pathwidth Created 2026-10-20 Updated 2026-11-05
A path decomposition of a finite graph is a sequence of vertex sets, or bags, , such that every vertex occurs, every edge has both endpoints in a common bag, and the bags containing any fixed vertex form a consecutive interval. Its width is ; pathwidth is the minimum width.
A path with at least one edge has pathwidth one using bags . A complete graph on vertices has pathwidth . The consecutive-occurrence condition means a vertex can be forgotten permanently after its last bag, which supports dynamic programming that stores information only about the current bag. Pathwidth is at least treewidth because a path is a special tree.