How this calculation works
Recognize a bounded simple graph as an interval graph and construct checked closed intervals from a consecutive maximal-clique order.
uv∈E ⇔ max(L_u,L_v)≤min(R_u,R_v); each vertex occurs consecutively in an ordering of maximal cliques.A worked example
The path 0–1–2–3 has clique order {0,1},{1,2},{2,3}, giving intervals [0,0], [0,1], [1,2], [2,2]. Their overlap graph is exactly the path.
Good to know
Simple undirected graphs on 1–10 vertices, including disconnected graphs and isolates. Exhaustive maximal-clique construction and consecutive-order search capped at 500,000 partial states; cutoff is unresolved. Closed intervals may be points. No unit/proper-interval guarantee or supplied-schedule validation.
Reference: Fulkerson and Gross: incidence matrices and interval graphs (opens in a new tab) ↗
Represent adjacency by interval overlap
An interval graph associates each vertex with a closed interval on a line. Two distinct vertices are adjacent exactly when their intervals overlap. This includes contact at a common endpoint under the closed-interval convention used here, so endpoint equality is not treated as a gap.
The task starts from an abstract graph and asks whether any such representation exists. It does not check only one drawing or one supplied set of endpoints. Chordal graphs form a larger class, so recognizing chordality alone would not be enough to justify a positive interval-graph answer.
Compare this with the Chordal graph clique tree calculator with running intersection certificate. Recognize interval graphs and construct endpoint intervals; chordality alone does not ensure an interval representation.
Supply the graph before the intervals
Use zero-based labels and declare every vertex, then enter each unordered edge once. All pairwise nonadjacencies are as important as the edges: a returned interval pair that overlaps for a nonedge would invalidate the representation just as surely as a missing overlap for an edge.
Isolated vertices are valid. Each can be placed in its own interval region with no overlaps. Disconnected components do not need to share endpoint ranges, and their relative left-to-right order may be arbitrary. The calculator does not require the graph to be connected or infer coordinates from the vertex labels.
The consecutive maximal-clique criterion
Every interval graph admits an ordering of its maximal cliques such that the cliques containing any fixed vertex appear consecutively. The calculator first finds every maximal clique, including singleton cliques for isolated vertices, and searches for this consecutive-occurrence property.
During the ordering search, a vertex progresses from not yet seen to active and finally closed. Once closed, it cannot occur in a later clique without violating consecutiveness. This three-state check prunes impossible prefixes. It is a bounded exhaustive method, not a claim to implement a large-instance linear-time recognition algorithm.
Build the default path representation
The default graph is the path 0–1–2–3. Its maximal cliques are the three edges, which can be ordered as {0,1}, {1,2}, {2,3}. Assign clique coordinates zero, one and two in that order.
A vertex interval extends from its first containing clique to its last: vertex zero receives [0,0], vertex one [0,1], vertex two [1,2] and vertex three [2,2]. Exactly the three path edges overlap. The point intervals at the endpoints are legitimate closed intervals, not missing or numerically degenerate observations.
A representation is an adjacency certificate
The result lists each vertex's left and right endpoint together with the maximal-clique order. You can verify all unordered vertex pairs using the condition that the larger left endpoint does not exceed the smaller right endpoint. That test must agree with the input adjacency matrix everywhere.
The coordinates are one convenient combinatorial representation rather than measured durations or a unique embedding. Translating or stretching the line preserves overlap. Reversing all coordinates gives another valid representation. The calculator therefore does not attach physical timing meaning or a special optimality property to the integer endpoint values.
Distinguish rejection from an unfinished search
The accepted graph size is at most ten vertices. If the maximal-clique count exceeds the vertex count, the graph cannot be interval. Otherwise, a completed exhaustive clique-order search either supplies a valid representation or establishes that no consecutive order exists for this graph.
The ordering search has a fixed state cap. Hitting it produces an unresolved-search error, never a false interval rejection. This distinction matters because failure to find an order quickly is not a graph-theoretic obstruction. A negative result displayed after full enumeration is stronger than an interrupted run with no witness.
Choose the right interval model
This page recognizes unrestricted closed intervals, whose lengths may differ and may be zero. Unit-interval and proper-interval models impose additional restrictions, so a positive answer here does not establish either stronger property. Circular arcs on a circle also define a different graph class.
If your real objects are activities with fixed start and end times, check those particular intervals separately. An abstract representation may exist even when the supplied schedule has different overlaps. Here the inputs are only graph relationships, and the result certifies that some interval arrangement realizes them under the stated convention.
A few questions, answered
Do endpoint contacts count as edges?
Yes. This page uses closed intervals, so intervals sharing an endpoint are adjacent.
Are zero-length intervals allowed?
Yes. Point intervals are valid here and help represent isolated or endpoint vertices without ambiguity.
Does chordal mean interval?
No. Every interval graph is chordal, but chordal graphs need not admit a consecutive maximal-clique ordering.
Is a cutoff a negative recognition result?
No. Only a completed exhaustive failure or a valid structural obstruction justifies a negative answer.