A trapezoid graph is an intersection graph of trapezoids between two fixed parallel lines. Each graph vertex corresponds to the convex hull of one closed interval on each line. The intervals may be single points, so the hull can be a triangle or a line segment. Distinct vertices are adjacent exactly when their hulls meet (Dagan et al. 1988).
One hull precedes another when its interval on each line lies strictly to the left of the other's interval on that line, using the same direction along both lines. The resulting partial order is the intersection of two interval orders, and incomparability is exactly intersection of the hulls. Conversely, two interval orders realizing a partial order can be represented on the two lines. Thus trapezoid graphs are exactly the incomparability graphs of partially ordered sets of interval dimension at most 2 (Dagan et al. 1988). In particular, every trapezoid graph is a cocomparability graph.
Using matching intervals on the two lines gives rectangles and realizes every interval graph. Using point intervals gives line segments and realizes every permutation graph in the inversion sense. Dagan et al. (1988) give an example of a trapezoid graph belonging to neither class.
For a graph with vertices and
edges, Ma and Spinrad (1994)
gave an
recognition algorithm, and Mertzios and Corneil (2011)
gave an
vertex-splitting algorithm that also constructs a trapezoid
representation on acceptance. Both start from the graph
itself. Here
denotes big-O notation.
Given a trapezoid representation, Dagan et al. (1988) found an optimal vertex coloring in time after sorting the trapezoids by their left endpoints
on one line, where
is the chromatic number. Felsner et al. (1997)
represented each trapezoid by the Cartesian product
of its two base intervals in planar coordinates. The resulting rectangle is used
in the partial order: it precedes a second rectangle
if its upper corner is strictly below the other's lower corner in both coordinates.
Using this representation, they gave
algorithms for optimal
vertex coloring, a minimum clique
covering, a maximum-weight independent vertex
set, and a maximum-weight clique. The weighted problems
take nonnegative vertex weights.
The bounded tolerance graphs form a proper subclass whose recognition problem is an NP-complete problem even on trapezoid graph inputs (Mertzios et al. 2011).