date31092023
Duality and -Boundedness of Ordered Graphs
Abstract
We shall show that there exists only one duality pair for ordered graphs. We will also define a corresponding definition of -boundedness for ordered graphs and show that all ordered graphs are -bounded and prove an analogy of Gyarfás-Sumner conjecture for ordered graphs. We shall conclude with showing that these results hold for directed ordered graphs, but they do not hold for oriented ordered graphs.
1 Introduction
An Ordered Graph is an undirected graph whose vertices are totally ordered. Thus, ordered graph is a triple (see figure 1).
Ordered graphs are interesting objects which have been studied in the context of extremal problems ( [9]), Ramsey theory ( [2]) and structural graph theory ( [13]). They also provide an important class of objects in model theory (NIP classes which are not stable, see e.g. [10]).
In this paper we consider homomorphisms of ordered graphs. These are defined as edge- and order-preserving mappings and they are naturally related to ordered chromatic number (which in turn naturally relates to extremal results, see e.g. [9]).
We characterize homomorphism dualities and we also consider Gyarfás-Sumner type problems (-boundedness) and in the context of ordered graphs we fully characterize -boundedness.
2 Preliminaries and Statement of Results
For ordered graphs and , an Ordered Homomorphism is a mapping preserving both edges and orderings. Explicitly, satisfies
-
1.
for all ,
-
2.
whenever .
The existence of ordered homomorphism will be denoted by (see figure 1).
Ordered homomorphisms compose and thus most of the categorical definitions can be considered without any changes, see e.g. [5].
Particularly we can define a core of a graph as the smallest subgraph of such that . (Equivalently, this is the smallest retract of .)
Let us now define an independent interval as a set of independent vertices, explicitly, if is given as , then an independent interval in is the set which does not contain any edge of (see figure 1). Further on, we may call independent interval simply, an interval.

The (ordered) chromatic number is then the minimum such that can be partitioned to disjoint intervals. Notice that for ordered graphs this is the size of the smallest homomorphic image and, alternatively, the minimum such that . ( is of course the complete graph with a fixed linear ordering.) We shall call also a colouring of .
As opposed to the chromatic number of (unordered) graphs the ordered chromatic number can be determined by a simple greedy algorithm. This is formulated below as Proposition 2.1 (which may be a folklore).
Greedy Algorithm is a natural one: process the vertices in the given order and colour each vertex by the smallest available colour which fits the rule. What is the rule? For graph with ordering each colour has to be an interval in .
We have the following:
Proposition 2.1.
For every ordered graph the greedy algorithm finds .
Proof.
Put . Obviously, by the algorithm, the greedy algorithm finds a -colouring for .
We prove by an induction on . For the graph is just a single interval.
In the induction step let and let be an optimal colouring. Consider the interval given by the greedy algorithm. Clearly and thus (with the vertex set deleted) satisfies and the greedy algorithm produces also a -colouring. Thus also is the result of the greedy algorithm. ∎
Following the standard definition of the complexity class as in [1], the following result then follows.
Corollary 2.2.
Let be an ordered graph. Then determining is in .
Proof.
As the Greedy algorithm goes over all vertices of and at each step it checks whether the vertex is not connected to some of the vertices before, the complexity of an algorithm is at most . ∎
For the purposes of further explorations we define a double as a pair of consecutive vertices in an ordered graphs connected by an edge. Then will be an ordered graph that has doubles, edges, and vertices and we will call an ordered matching.
Let us now define a (Singleton) Homomorphism Duality as a pair of graphs satisfying
for every graph .
For graphs and relational structures the dualities are characterized in [8]. In Theorem 3.1 we provide result in ordered setting. The key property is played by ordered matching. Note that ordered matching plays role also in Ramsey context ( [3]).
In Section 4 we deal with questions which subgraphs are unavoidable in large chromatic number.
Formulating it dually, we ask when is chromatic number of a graph bounded as a function of its subgraphs (for not ordered graphs this amounts to bound chromatic number as a function of the clique number, which leads to -bounded classes and Gyarfás-Sumner conjecture).
For ordered graphs is the situation easier and we prove the analogous statement, Theorem 4.2, with the following definition of some of such unavoidable graphs.
Definition 2.1.
Ordered Matching has points , with ordering and edges . are left vertices, are right vertices.
-
•
is together with all edges .
-
•
is together with all edges .
-
•
is just .

In Section 5 we extend our results to oriented and directed graphs. We show that the general pattern for directed graphs is similar, while for the oriented graphs it does not hold.
To conclude the preliminaries, let us also define as an ordered graph on vertices and . We will call a directed path. And we define an edge set in an ordered graph as non-intersecting if for every two distinct edges and in , either or (we again use the intuition of (in this case open) intervals).
Observation 2.3.
Let be an ordered graph with non-intersecting edges. Then if there exists an ordered homomorphism from to , must also contain at least non-intersecting edges.
Proof.
By definition, the ordered homomorphism from to must preserve an ordering as well as edges of , therefore the observation follows. ∎
3 Dualities of Ordered Graphs
We shall show now that the following duality is the only duality of ordered graphs.
Theorem 3.1.
Let be any ordered core. Then and is the only pair of ordered cores satisfying if and only if .
Proof.
We will first show that and are a singleton. From Observation 2.3, we see that , as has at most non-intersecting edges and would need at least . Therefore if then .
On the other hand, if , then we use the greedy algorithm on and Proposition 2.1 to get ordered graph on minimum number of vertices. will of course contain a directed path (as we took all the partition classes maximal). It is clear that , as otherwise , and therefore also to , as maps non-intersecting edges of to non-intersecting edges of , therefore could map to these edges in . Hence as (as is on or less vertices), we get .
Now we shall prove that there does not exist any other duality pair. Let and be ordered cores satisfying if and only if and and are not equal to and , resp.
Let be any ordered matching. We see that if , then must contain partitions that map to an ordered matching. But then and must contain an ordered matching , for which the ordered homomorphism to is onto. But then is the core of .
Now, if there is no homomorphism from to any ordered matching, then there does not exist any ordered graph , for which there exists ordered homomorphism from ordered matching to , as ordered matchings can require a homomorphic image of any size. E.g. already for being a or , with being an ordered matching, we can see that there is no ordered homomorphism from to , yet we can get of any size by increasing in .
We also see that if we forbid an ordered homomorphism from to , then is the only graph satisfying if and only if . ∎
4 -boundedness of Ordered Graphs
For the ordinary graphs, we recall that -bounded family of graphs is one for which there is a function such that, with being a size of maximum clique in , for every , coloring of is at most . We see that we could adopt this notion simply by replacing ordinary graphs with ordered graphs and homomorphism with an ordered homomorphism.
We of course see that not all ordered graphs are -bounded, as already the matching itself can have arbitrarily large chromatic number and maximum clique number of two. The standard notion of -boundedness will therefore not work.
Adopting the notion of -bounded graphs from the ordinary graphs nonetheless, we shall try to replace the maximum clique size in the definition of -boundedness with the size of maximum ordered matching . We can then define the analogy of -boundedness for ordered graphs as follows.
-bounded family of ordered graphs is one for which there is a function such that, for every , being a size of maximum ordered matching subgraph of (maximum in the sense that there is no greater such that is an ordered matching subgraph of ), is at most . Without any risk of confusion, we shall denote -bounded simply as -bounded further on.
We will now show that all ordered graphs are -bounded.
Theorem 4.1.
Let be an ordered graph. Let be maximum ordered matching subgraph of . Then .
Proof.
Let us choose a subgraph of , where is maximum, and run the Greedy Algorithm on . As a result of this procedure we will get an ordered graph , where from 2.1. As in 3.1, will contain a directed path . We also see from Observation 2.3 that the edges will map to non-intersecting edges in , as they were non-intersecting in (where in they did not share a common vertex).
Now let us assume that . Then will have at least vertices and it will contain . But then contains an ordered matching of size , which should have been chosen in initially. ∎
Let us now try to prove a stronger (induced) version of the statement, again borrowing an idea from the ordinary graphs - the famous Gyárfás–Sumner conjecture. The conjecture states that for every tree and complete graph , the graphs with neither nor as induced subgraphs can be properly colored using only a constant number of colors.
We shall replace the tree with previously introduced forbidden structures and prove the following statement.
Theorem 4.2.
There exists a function with the following property:
Let be an ordered graph not containing any of the following graphs as induced subgraphs:
Then .
Advancing the proof, let us first define a set of ordered graphs as non-induced, if for every two ordered graphs within this set, one ordered graph is not an induced graph of the other, and vice versa. We prove that are non-induced ordered graphs and we determine a coloring of them.
Proposition 4.3.
Let . Then are non-induced ordered graphs and .
Proof.
Let us first define a size of an edge as and a distance in between vertices and as as well.
We shall start with an easy observation that none of the ordered graphs can be an induced subgraph of . This is due to the fact that there are always more edges in these graphs than in any induced subgraph of that has more than vertices (as have more than three vertices).
We can also see that none of can be an induced subgraph of , as are at least on four vertices and their first four vertices do not form a complete graph, which is always the case for any induced subgraph of .
Let us show that does not contain as induced subgraphs.
We notice that contains vertices and directed path on all of these vertices. We will call the set of edges in the path edges and we will call all the other edges (of size longer than one) long edges. We shall notice that all of the path edges are of size one and all the long edges are of odd size of at least three (from definition). Therefore there are no edges of even size.
We will first show that does not contain a triangle. As there are no edges of even size in , every edge will connect even and odd vertex. As every triangle needs three vertices, it will contain at least two even or two odd vertices. But these vertices would need an even edge to connect them.
Let us now show that does not contain induced ordered matching of size two. There are three possible cases of such a matching. Having both path edges, both long edges or having one path edge and one long edge of , all pairs of edges of course non-intersecting (without common vertex).
Let us first introduce a notation for a path edge as . In case the induced matching of size two would be containing both path edges, these edges of course could not be consecutive ( and ) and they could not be edges and as they would have another path edge in between them. Therefore, these edges would need to be and with . But all of these path edges are connected by a long edge.
If we consider an induced matching of size two consisting of two long edges, we notice that these will of course need to have each left vertex of each of these edges at different even vertices. But we see that every two non-intersecting edges with different even left vertex will be connected by an edge connecting the first vertex of the first edge and the second vertex of the second edge (as their distance is odd and greater than two).
The last case of induced matching of size two consists of one path edge and one long edge . We notice that there are two case. One where path edge is on the left and one where it is on the right side of the long edge .
In case path edge is on the left, long edges coming from the even vertex of path edge (whether it is the first or the second vertex of it) will connect with the second vertex of the long edge , again as long edges in connect even vertex on the left and odd vertex on the right, if the distance in between them is longer than two.
If path edge is on the right, we will notice that its odd vertex will connect it with left vertex of every long edge on the left side of the path edge , as this vertex is even and distance in between them is again longer than two.
Let us show that does not contain as an induced subgraph. We see that by taking vertices in we get . Therefore needs to have .
We can also observe that in every edge (path or long) connects two vertices, out of which one vertex can have long edges connecting this vertex to the vertices on the right and another vertex does not have any long edges connecting it to the vertices on the right (by definition). Another observation is that when choosing an induced subgraph of , this subgraph will need to contain a directed path , as always contains a directed path . We then observe that always contains edges , where are long edges connecting the first vertex with the last one and second vertex with the one vertex before the last one.
But then whichever induced subgraph we take in , the first two vertices will need to be connected, as there needs to be a path within . will also need to contain at least vertices (because of the minimum order of ), and therefore first two vertices of will need to be connected to the last two vertices by long edges of size and . But as we have shown, every edge in contains a vertex, which is not connected to the vertices on the right by a long edge. Therefore as the first and second vertex in are connected by a path edge, one of the first two vertices in is not connected to neither of the last two vertices.
Let us show that does not contain as induced subgraphs. The proof of the first two ordered induced subgraphs goes essentially the same as before.
We notice that contains vertices and directed path . Again, all of the path edges are of size one and all the long edges are of odd size of at least three (by definition). Therefore, there are no edges of even size also in .
We will first show that does not contain a triangle. As observed before, as there are no edges of even size in either, every edge will connect even and odd vertex. As every triangle needs vertices, it will again contain at least two even or two odd vertices and these vertices would need an even edge to connect them.
Let us now show that does not contain induced matching of size . There are again three possible cases of such an induced matching - having both path edges, both long edges or having one path edge and one long edge in , all the three cases again non-intersecting without common vertex in .
In case the induced matching of size would be containing both path edges, we notice that these edges could not be consecutive again ( and ) and they could not be edges and as they would have another path edge in between them. Therefore, these edges would need to be and with . But all of these path edges are connected by a long edge.
If we consider the induced matching of size consisting of two long edges, then there are 3 cases.
-
•
Left vertex of each of the long edges is at different odd vertices.
-
•
Left vertex of each of the long edges is at different even vertices.
-
•
Left vertex of one of the long edges is at odd vertex and left vertex of another long edge is at even vertex.
For the first case, we see that every two long edges with different odd left vertex will be connected by an edge in between the first vertex of the first edge and second vertex of the second edge (and also by an edge in between second vertex of the first edge and first vertex of the second edge).
For the second case, we see that every two long edges with different even left vertex will be also connected by first vertex of the first edge and second vertex of the second edge (and also by an edge in between second vertex of the first edge and first vertex of the second edge).
In the last case, these edges will be connected by an edge in between the first vertex of the first edge and the first vertex of the second edge (and also by an edge in between the second vertex of the first edge and the second vertex of the second edge).
The last case of induced matching of size consists of one path edge and one long edge . We notice that there are two case. One where path edge is on the left and one where it is on the right side of the long edge .
In case path edge is on the left, we can see that vertices of are connecting this edge to all the vertices on the right from (by definition), therefore must be connected to by an edge in .
If path edge is on the right, we will notice that will have one odd and one even vertex. But then also is connected to all the vertices on the right from (again by definition), so must be connected to by an edge in .
For the proof that does not contain as induced subgraph, we first notice that first vertex of the is not connected to other vertices on the right by a long edge. We also notice that has at least four vertices and that always contains a directed path .
Therefore any induced ordered subgraph of will also always need to contain a path on the first vertices. We also notice that for every vertex in , vertex is connected to all the vertices, with odd distance that is greater than (from definition), on the right from .
This means that as the edges in are all of the odd size, whichever edges we pick in to form the directed path on the first four vertices of , the sum of the sizes of these edges in will be odd and greater than two, as the sum of three odd numbers is always odd and greater than two. But then the first four vertices of must have the first and the fourth vertex connected, and as these can be connected only by long edge in , we observed that this cannot be the case for , as does not have the first vertex connected to any vertices on the right by long edge.
The last thing to show is the coloring of these ordered graphs.
But this is clear, as for we map all the pairs of vertices to one interval (this is equivalent to running the greedy algorithm on ) and get a directed path as a minimum homomorphic image of .
For this is also straightforward, as both of these ordered graphs contain a directed path and , respectively, and coloring of is .
∎
Proof of Theorem 4.2.
We see from the Theorem 4.1 that forbidding ordered matchings as subgraphs can bound the coloring of the ordered graphs and from Theorem 4.1 and Theorem 3.1, that as the coloring of our input ordered graph grows, so must grow our ordered matching subgraph of and there are no other ordered graphs with this property.
Let us now take this ordered matching subgraph of and take ordered matching induced subgraph of on the vertices of .
We see that there can be four different edges in between two doubles of and we denote them as follows:
-
•
edge, if it connects left vertex of the first double with the right vertex of the second double.
-
•
edge, if it connects right vertex of the first double with the left vertex of the second double.
-
•
edge, if it connects left vertex of the first double with the left vertex of the second double.
-
•
edge, if it connects right vertex of the first double with the right vertex of the second double.
We therefore have possible ways how two doubles can be connected (with one option being no edges in between them).
Let us denote a set of edges connecting two doubles as e.g. , if these two doubles are connected by edges and , and other sets of edges connecting two doubles analogously.
Let us take an ordered graph where all the doubles are connected by the same set of edges (one of ). Then these different ordered graphs correspond to the following five induced graphs:
-
•
If doubles are not connected by any edge , this results in an induced ordered matching .
-
•
If doubles are all connected to each other by an edge , we get an ordered graph .
-
•
If doubles are all connected to each other by an edge , we get an ordered graph .
-
•
If doubles are all connected to each other by edges , we get an ordered graph .
-
•
The rest of the cases is if doubles are all connected to each other by edges or or any other sets of edges containing these edges.
Then we get a complete ordered graph (or bigger complete ordered graph, e.g. on edge set). We can easily see this, as if all the doubles are connected by the vertex on the same side of the double, these vertices will be connected in all doubles, and therefore form a complete graph.
The Ramsey’s Theorem tells us that for any given finite number of colours, , and any given integers , there is a number, , such that if the edges of a complete graph of order are coloured with different colours, then for some between and , it must contain a complete subgraph of order whose edges are all of colour .
We notice that the ordered matching induced subgraph of can be thought of as such a complete graph , where each double can be thought of as a vertex of , and possible edge connections can be though of as possible edge colors of .
Then using the Ramsey’s Theorem we see that for any , there exists sufficiently large ordered graph , such that must contain at least one of complete graphs of order with all edges of the same color. This complete graph with all edges of the same color will then correspond to doubles in that are all connected to each other by the same edge set, which will result in one of the five induced ordered subgraphs of . Therefore with growing coloring of and consequent growing of (as we have shown before), also at least one of the five resulting ordered graphs listed above will grow.
We showed in Proposition 4.3 that all of the ordered graphs are non-induced. We have also shown that their coloring grows with their size.
The last thing to show is that set of ordered graphs together with an ordered graph is not non-induced. But this can be seen by taking the vertices of and seeing that resulting induced ordered subgraph is . Therefore the set of induced ordered graphs of is indeed minimal and sufficient to limit the size of .
∎
As mentioned before, this then answers the analogy of the Gyaŕfaś–Sumner conjecture for -boundedness of ordered graphs, with replacing the forbidden structures (of a tree and clique) in the original conjecture (with our four graph classes).
5 -boundedness of Oriented and Directed Ordered Graphs
Let us now have a look at an analogy of previous results for the following structure. Let us allow single and double orientation of edges in between two vertices of an ordered graph (single in a sense that there is only one arrow in between two vertices and double when there are two arrows in both directions), then we shall call this a directed ordered graph and denote . Let us then also define a as a complete ordered graph with each edge having double orientation.
We then define a directed colouring as the minimum such that there exists ordered homomorpshism from to . We notice that this notion leads to the similar results as the coloring of ordered graphs.
Theorem 5.1.
Let be an ordered graph and a corresponding directed ordered graph with any orientation of the edges of . Then .
Proof.
Let us assume an ordered homomorphism from to . We can see, that if we impose left, right or double orientation on edge of , this edge can always map to the same edge in as it did in . We can also easily see that if there is an ordered homomorphism to , then we can simply forget the directions and replace them by simple edges and we get the same homomorphism from to . ∎
We might therefore denote simply as .
We can then of course adopt similar concept for as we did for the ordered matching by imposing an orientation on and defining corresponding -boundedness. We shall call an Directed Ordered Matching.
Let us then define the following ordered graphs.
Right Oriented Ordered Matching has vertices , with ordering and edges . Left Oriented Ordered Matching has points , with ordering and edges . Directed Ordered Matching has points , with ordering and edges and .
Then the following holds.
Corollary 5.2.
Let be a class of directed ordered graphs where for every , has the biggest left, right oriented and directed ordered matching subgraph smaller or equal to , and , resp., where . Then for every .
Proof.
Let us now consider an orientation of an ordered graph , where we allow only left or right orientation of edges (and not both). We shall call this an oriented ordered graph and denote . The topic has been studied for standard graphs in [4].
One might hope that the similar approach as we applied for the directed graphs might work for limiting the coloring of the classes of oriented ordered graphs. Perhaps surprisingly, a similar statement does not hold for the oriented ordered graphs.
We shall notice first that the coloring of oriented ordered graphs using the intervals will not work. This is due to the fact that oriented ordered graphs do not allow edges with both directions. This will give us cases such as , where and form an interval, but they cannot map into the same vertex, as we would create an edge with both directions.
We therefore define an oriented ordered coloring as the order of minimum homomorphism image of oriented ordered graph (which is in line with the definition of coloring of ordered graphs).
Let oriented ordered graph be an ordered matching with any orientation and analogously an oriented ordered graph be an ordered path with any orientation.
Proposition 5.3.
For every there exists an oriented ordered graph that has each vertex of degree , order of is , does not contain an oriented ordered subgraph or , and has .
Proof.
We shall prove this statement by construction.
Let be an oriented ordered graph on vertices with the following edge set (see Figure 3).
We see that does not contain neither nor and that every vertex of has degree .
We notice that every time we map vertices and in ordered homomorphism to one vertex, we cannot map vertices and to one vertex in the same ordered homomorphism anymore, and vice versa. Therefore we have maximum options to map two vertices into one in ordered homomorphism (as we cannot map vertices and to one vertex). Therefore the order of minimum homomorphism image of is . ∎

Natural next step would be to investigate a complexity of determining , but we shall not address it in this paper.
We might only mention that greedy algorithm will not help us in this case, as the inability to create an edge with both directions will affect the rule within the greedy algorithm, as we will need to check if by mapping the vertices in an interval into one vertex we shall not create an edge with both directions in our homomorphism image. This will then not always yield an oriented ordered graph, that has number of vertices equal to the coloring of the input oriented ordered graph. An example of oriented ordered graph that would not yield the same homomorphism image after running the (adjusted) greedy algorithm from left or right is a graph , where starting the greedy algorithm with the adjusted rule from left would yield a , while starting it from the right would give us a .
This makes a theory of ordered graphs yet even more fascinating.
References
- [1] S. Arora and B. Barak. Computational Complexity - A Modern Approach. Cambridge, 2009.
- [2] Martin Balko, Vít Jelínek, and Pavel Valtr. On ordered ramsey numbers of bounded-degree graphs. Journal of Combinatorial Theory, Series B, 134:179–202, jan 2019.
- [3] Martin Balko and Marian Poljak. On ordered ramsey numbers of matchings versus triangles, 2023.
- [4] O.V. Borodin, A.V. Kostochka, J. Nešetřil, A. Raspaud, and E. Sopena. On the maximum average degree and the oriented chromatic number of a graph. Discrete Mathematics, 206(1):77–89, 1999.
- [5] P. Hell and J. Nešetřil. Graphs and Homomorphisms. Oxford University Press, 2004.
- [6] Jan Hubička and Jaroslav Nešetřil. All those ramsey classes (ramsey classes with closures and forbidden homomorphisms). Advances in Mathematics, 356:106791, nov 2019.
- [7] Jaroslav Nešetřil and Vojtěch Rödl. Statistics of orderings. Abhandlungen aus dem Mathematischen Seminar der Universität Hamburg, 87, 01 2017.
- [8] Jaroslav Nešetřil and Claude Tardif. Duality theorems for finite structures (characterising gaps and good characterisations). Journal of Combinatorial Theory, Series B, 80(1):80–97, 2000.
- [9] János Pach and Gábor Tardos. Forbidden paths and cycles in ordered graphs and matrices. Israel Journal of Mathematics, 155(1):359–380, Dec 2006.
- [10] Pierre Simon. A guide to nip theories, 2014.
- [11] Michal Čertík, Andreas Emil Feldmann, Jaroslav Nešetřil, and Paweł Rzążewski. Complexity of finding core of ordered graphs. In Preparation.
- [12] Michal Čertík, Andreas Emil Feldmann, Jaroslav Nešetřil, and Paweł Rzążewski. Complexity of finding homomorphisms of ordered graphs. In Preparation.
- [13] Édouard Bonnet, Eun Jung Kim, Stéphan Thomassé, and Rémi Watrigant. Twin-width i: tractable fo model checking, 2021.