The clique-width of a finite nonempty simple graph is the least number of labels needed to construct it using the following operations (Courcelle and Olariu 2000):
1. Create a single graph vertex with a chosen label.
2. Take the graph disjoint union of two constructed graphs.
3. Add all edges between the vertices carrying two specified distinct labels.
4. Change every occurrence of a specified label to another label.
The labels can be reused during the construction and are discarded at the end.
An edgeless graph with at least one vertex has clique-width 1. A complete graph on at least two vertices has clique-width 2. To construct it, give each new vertex label 2, join it to all existing vertices of label 1, and change its label to 1 before adding the next vertex.
Writing
for the clique-width and
for the rank-width of a graph, Oum and Seymour (2006)
proved that
. Consequently, a class of graphs
has bounded clique-width iff it has bounded rank-width.