The modular-width of a finite nonempty simple graph measures the largest substitution needed to construct it. A substitution replaces each vertex of a template graph by a nonempty graph and adds every edge between the two replacement graphs whenever the corresponding vertices of the template are adjacent.
Starting with one-vertex graphs, a construction can use binary disjoint unions, binary joins, and substitutions. The width of a construction is the largest number of vertices in a substitution template, with width zero if it uses no substitutions. The modular-width is the minimum of this width over all constructions (Gajarský et al. 2013).
Equivalently, the modular-width is the maximum number of children of a prime node in the modular decomposition tree, or zero if there is no prime node. Thus the graphs of modular-width zero are precisely the cographs.
Gajarský et al. (2013) gave algorithms for graph coloring, Hamiltonian path, and Hamiltonian cycle whose running times are bounded by a function of modular-width times a polynomial in the input size.