ArticleslgStudy

science

Comparability graph

Comparability graph is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Comparability graph rather than just read about it. In short: In graph theory and order theory, a comparability graph is an undirected graph that connects pairs of elements that are comparable to each other in a partial order. Comparability graphs have also been called transitively orientable graphs, partially orderable graphs, containment graphs, and divisor graphs.

Comparability graph — main illustration
Comparability graph — illustration

Key takeaways

  • Comparability graph belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Comparability graph to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Comparability graph from memory before moving on to harder problems.

Reference excerpt

In graph theory and order theory, a comparability graph is an undirected graph that connects pairs of elements that are comparable to each other in a partial order. Comparability graphs have also been called transitively orientable graphs, partially orderable graphs, containment graphs, and divisor graphs. An incomparability graph is an undirected graph that connects pairs of elements that are not comparable to each other in a partial order.

Definitions and characterization

For any strict partially ordered set (S,<), the comparability graph of (S, <) is the graph (S, ⊥) of which the vertices are the elements of S and the edges are those pairs {u, v} of elements such that u < v. That is, for a partially ordered set, take the directed acyclic graph, apply transitive closure, and remove orientation. Equivalently, a comparability graph is a graph that has a transitive orientation, an assignment of directions to the edges of the graph (i.e. an orientation of the graph) such that the adjacency relation of the resulting directed graph is transitive: whenever there exist directed edges (x,y) and (y,z), there must exist an edge (x,z). One can represent any finite partial order as a family of sets, such that x < y in the partial order whenever the set corresponding to x is a subset of the set corresponding to y. In this way, comparability graphs can be shown to be equivalent to containment graphs of set families; that is, a graph with a vertex for each set in the family and an edge between two sets whenever one is a subset of the other. Alternatively, one can represent the partial order by a family of integers, such that x < y whenever the integer corresponding to x is a divisor of the integer corresponding to y. Because of this construction, comparability graphs have also been called divisor graphs. Comparability graphs can be characterized as the graphs such that, for every generalized cycle (see below) of odd length, one can find an edge (x,y) connecting two vertices that are at distance two in the cycle. Such an edge is called a triangular chord. In this context, a generalized cycle is defined to be a closed walk that uses each edge of the graph at most once in each direction. Comparability graphs can also be characterized by a list of forbidden induced subgraphs.

Cocomparability graph

A cocomparability graph is the complement of a comparability graph. That is, given a comparability graph G = (V, E), its cocomparability graph G̅ = (V, E̅) has the same vertex set but complementary edge set: two vertices are adjacent in G̅ if and only if they are not adjacent in G. Cocomparability graphs are precisely the intersection graphs of continuous curves between two parallel lines, or equivalently, the intersection graphs of intervals on two parallel lines. A graph is a cocomparability graph if and only if its complement admits a transitive orientation. Cocomparability graphs form an important subclass of perfect graphs, inheriting this property from the fact that both comparability graphs and their complements are perfect (by Dilworth's theorem and Mirsky's theorem respectively). Every cocomparability graph is asteroidal triple-free (AT-free). This places them within the hierarchy: interval ⊂ trapezoid ⊂ cocomparability ⊂ AT-free, and permutation ⊂ trapezoid ⊂ cocomparability ⊂ AT-free. The class of cocomparability graphs is self-complementary in the sense that the complement of a cocomparability graph is a comparability graph, and vice versa. Interval graphs are exactly the graphs that are chordal and have cocomparability complements; that is, the complement of any interval graph is a comparability graph, and the comparability relation is called an interval order. Cocomparability graphs are a subclass of string graphs; the complement of every comparability graph is a string graph.

Relation to other graph families Every complete graph is a comparability graph, the comparability graph of a total order. All acyclic orientations of a complete graph are transitive. Every bipartite graph is also a comparability graph. Orienting the edges of a bipartite graph from one side of the bipartition to the other results in a transitive orientation, corresponding to a partial order of height two. As Seymour (2006) observes, every comparability graph that is neither complete nor bipartite has a skew partition. A permutation graph is a containment graph on a set of intervals. Therefore, permutation graphs are another subclass of comparability graphs. The trivially perfect graphs are the comparability graphs of rooted trees. Cographs can be characterized as the comparability graphs of series-parallel partial orders; thus, cographs are also comparability graphs. Threshold graphs are another special kind of comparability graph. Every comparability graph is perfect. The perfection of comparability graphs is Mirsky's theorem, and the perfection of their complements is Dilworth's theorem; these facts, together with the perfect graph theorem can be used to prove Dilworth's theorem from Mirsky's theorem or vice versa. More specifically, comparability graphs are perfectly orderable graphs, a subclass of perfect graphs: a greedy coloring algorithm for a topological ordering of a transitive orientation of the graph will optimally color them.

Algorithms A transitive orientation of a graph, if it exists, can be found in linear time. However, the algorithm for doing so will assign orientations to the edges of any graph, so to complete the task of testing whether a graph is a comparability graph, one must test whether the resulting orientation is transitive, a problem provably equivalent in complexity to matrix multiplication. Because comparability graphs (and cocomparability graphs) are perfect, many problems that are hard on more general classes of graphs, including graph coloring and the independent set problem, can be solved for these graphs in polynomial time.

See also Bound graph, a different graph defined from a partial order

Notes

References

Illustrations

Comparability graph: One of the forbidden induced subgraphs of a comparability graph. The generalized cycle .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}a–b–d–f–d–c–e–c–b–a in this graph has odd length (nine) but has no triangular chords.
One of the forbidden induced subgraphs of a comparability graph. The generalized cycle .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}a–b–d–f–d–c–e–c–b–a in this graph has odd length (nine) but has no triangular chords.
Comparability graph: The cocomparability graph (right) of a poset (left)
The cocomparability graph (right) of a poset (left)

Worked examples

Example 1 — a first encounter with Comparability graph

Start with the simplest possible case. Write down what Comparability graph claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Comparability graph before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Comparability graph ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Comparability graph

In research
Comparability graph appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Comparability graph in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Comparability graph is common in secondary-school and first-year university syllabi. It links to neighbouring topics Graph families, Order theory, Perfect graphs, so understanding it makes those chapters shorter.
In everyday life
Look for Comparability graph outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Comparability graph” →

How to study Comparability graph in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Comparability graph means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Comparability graph out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Comparability graph in simple terms?

In graph theory and order theory, a comparability graph is an undirected graph that connects pairs of elements that are comparable to each other in a partial order. Comparability graphs have also been called transitively orientable graphs, partially orderable graphs, containment graphs, and divisor…

Why does Comparability graph matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Comparability graph?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Comparability graph.

Tags

  • Graph families
  • Order theory
  • Perfect graphs

Keep exploring