On monoid graphs
Abstract
We investigate Cayley graphs of finite semigroups and monoids. First, we look at semigroup digraphs, i.e., directed Cayley graphs of semigroups, and give a Sabidussi-type characterization in the case of monoids. We then correct a proof of Zelinka from ’81 that characterizes semigroup digraphs with outdegree . Further, answering a question of Knauer and Knauer, we construct for every connected -outregular non-semigroup digraphs. On the other hand, we show that every sink-free directed graph is a union of connected components of a monoid digraph.
Second, we consider monoid graphs, i.e., underlying simple undirected graphs of Cayley graphs of monoids. We show that forests and threshold graphs form part of this family. Conversely, we construct the – to our knowledge – first graphs, that are not monoid graphs. We present non-monoid graphs that are planar, have arboricity , and treewidth on the one hand, and non-monoid graphs of arbitrarily high connectivity on the other hand.
Third, we study generated monoid trees, i.e., trees that are monoid graphs with respect to a generating set. We give necessary and sufficient conditions for a tree to be in this family, allowing us to find large classes of trees inside and outside the family.
1 Introduction
After being introduced in 1878 [9], Cayley graphs soon became a prominent tool in both graph and group theory. As of today Cayley graphs of groups play a prominent role in (books devoted to) algebraic graph theory, see e.g. [15, 38]. On one hand, they are useful for constructions. They are crucial in the proof of Frucht’s theorem [11] and the related representation problems [5], i.e., how to represent a group as the automorphism group of a graph. On the other hand, Cayley graphs endow groups with metric or topological properties. For instance, White defined the genus of a group as the minimum genus for any connected Cayley graph of the group [56]. This created intricate links to symmetry groups of surfaces, see [17, 57].
Cayley graphs of monoids and semigroups (usually considered as directed Cayley graphs) have been studied less, but still there is a considerable amount of work, see e.g. [38] for a book and the references therein and [26] for a survey on this subject. Characterizations of Cayley graphs of certain classes of semigroups have been subject to some research effort, see [30, 28, 32, 31, 43, 54, 34, 33, 19, 20, 41, 21, 35, 55]. Also Cayley graphs from certain restricted families have been studied, such as transitively acyclic, directed ones also known as Cayley posets [14] as well as generalized Petersen graphs [20, 19, 39, 13] and others [53, 44].
Along the lines of White’s genus of a group characterizations of semigroups admitting Cayley graphs with topological embeddability properties have been investigated extensively [51, 52, 59, 36, 37]. Note that for such topological questions edge directions, multiplicities and loops can usually be suppressed, which leads to the notion of underlying simple undirected Cayley graph. Also other questions of the type which semigroups admit a Cayley graph from a given class have been considered [25, 47, 27, 29]. This latter type of question is related to the representation problem for monoids. Indeed, a standard strategy to represent a monoid is to take its colored Cayley graph, see Figure 1, and mimic the colors with certain rigid gadgets on the edges. Then the monoid is isomorphic to the endomorphism monoid of the resulting graph, see [22, 23, 24]. Thus, if we know that a monoid has a Cayley graph in a given class, then (depending on the edge gadgets) it is the endomorphism monoid of a graph from that class. There are classic and recent questions and results on how sparse a class can be be while being rich enough to represent all groups [11, 16, 3] or monoids, see [46, Problem 19.2] or [6].

In this paper we study the related question of how large the class of (finite) Cayley graphs is and if some structural properties can be shown similar to the case of Cayley graphs of groups. In particular, a starting point was the question whether sparsity can ensure Cayleyness. A similar study has been carried out with respect to Cayley posets in [14].
First, we study the class of directed Cayley graphs of semigroups and monoids called semigroup digraphs and monoid digraphs, respectively. In Section 2, we present an easy but to our knowledge unpublished analogue of Sabidussi’s Lemma [50] for monoid digraphs. This answers a question of [38, Chapter 11.3]. Section 3 further studies the class of semigroup and monoid digraphs. We review results of Zelinka [58], who characterized such digraphs with outdegree . In particular, we correct his proof. Answering a question of Knauer and Knauer [38, below Proposition 11.3.2], we construct for every connected -outregular digraphs (of high (strong) connectivity) that are not semigroup digraphs. On the other hand, we show that every sink-free directed graph, i.e. with minimum outdegree at least , is a union of connected components of a monoid digraph. This can be seen as an analogue to the result that every graph is isomorphic to some induced subgraph of a Cayley graph of a group [4].
Second, we focus on the underlying simple undirected graphs of Cayley graphs of monoids, called monoid graphs. As mentioned earlier removing directions, orientations, and loops is natural when considering embeddability and sparsity questions of the resulting graph and has prompted questions about this class, see e.g. [13, 36, 37]. On the other hand, one difficulty that arises in their study is that they carry less categorical and algebraic structure than their directed non-simple counterparts, see e.g. [38, Chapter 11.1]. In Section 4 we show that forests and threshold graphs are monoid graphs. After that, we show to our knowledge the first graphs, that are not monoid graphs. These results were the starting point for this paper. In particular, we present families of planar non-monoid graphs of arboricity and treewidth and construct non-monoid graphs of arbitrarily high connectivity based on Ramanujan graphs.
Finally, we study monoid graphs where the connection set of the Cayley graph generates the monoid. In Section 5 we give a necessary and a sufficient condition for a tree to be in that class. This allows us to find large families of trees inside and outside of the family.
There are still many intriguing open questions, which we survey in Section 6.
2 Preliminaries, properties, and characterizations
For a semigroup and a subset called connection set, we consider three different Cayley graphs. The directed graph with vertex set and arc set , denoted , is a digraph with possible loops and anti-parallel arcs, but without parallel arcs. We call the resulting digraphs semigroup and monoid digraphs, respectively. Note that the construction allowing parallel arcs has been studied from a categorical point of view, see e.g. [38, Chapter 11.1]. Suppressing multiplicities still yields a faithful covariant functor as in the case with parallel arcs.
The underlying simple undirected graph of , which we denote , carries less information. It looses categorical and algebraic properties, but as justified above, is natural from a graph theoretical point of view. We call the resulting graphs semigroup and monoid graphs. In the last section we will further restrict this class by requiring that the connection set is a generating set, yielding the notion of generated monoid graphs.
The richest representation of the pair is the multi-digraph with colored arcs , where the colors correspond to the elements of generating the arcs. Here for each there is an arc of color , in particular, we allow multiple parallel arcs.
We denote by and the endomorphism monoid and automorphism group of , respectively. Here can be colored and directed, only directed, or undirected. In directed and undirected graphs endomorphisms just have to map arcs to arcs and edges to edges, respectively. If is colored and directed then an endomorphism has to map any arc to an arc of the same color. Automorphisms are just bijective endomorphisms. Clearly, the endomorphism monoid of a colored digraph is a submonoid of the endomorphism monoid of the digraph without colors. However, suppressing loops may remove some endomorphisms. This is, for a semigroup and , we have but there might be .
The multiplication law of a semigroup yields information shared by all the (colored) Cayley digraphs it defines. See the following basic lemma.
Lemma 2.1.
If is a semigroup and , then mapping every to left-multiplication with is a homomorphism from to .
Proof.
If , and is an arc of having color , then is also an arc of having color . Thus, left-multiplication with is an element of . Clearly, , so this is a semigroup homomorphism.
A well-known strengthening of Lemma 2.1 is the following property of generated colored Cayley graphs of monoids, see e.g. [38, Theorem 7.3.7]:
Lemma 2.2.
Let be a monoid and be such that . Then left-multiplication yields an isomorphism from to .
Results that complement the above lemmas with a converse direction are sometimes called Sabidussi-type characterizations. They rely on certain properties of the automorphism group or endomorphism monoid. The first such result is due to Sabidussi [50, Lemma 4]:
Lemma 2.3.
A (colored, directed) graph is the (colored, directed) Cayley graph of a group if and only if has a subgroup that acts regularly on .
Here we prove a Sabidussi-type characterization of monoid digraphs, that was asked for in [38, Chapter 11.3].
Lemma 2.4.
A directed graph is a monoid digraph if and only if there exists a vertex and a submonoid such that for each there is a unique with . Moreover, satisfies that for each there is such that .
Proof.
Suppose that there is a vertex and a submonoid satisfying this property. Let . We claim that there is an isomorphism given by . It is clear that this map is injective. It is also surjective: the preimage of is . Now, if , there is an out-neighbor of with ; thus . Since , is an arc of . Conversely, if is an arc of then for some . This implies that the arc is mapped by to , which must be also in , because is an endomorphism.
Conversely, suppose that for a monoid and . For each vertex consider the endomorphism of defined by left-multiplication by . All these endomorphisms together form a submonoid , by Lemma 2.1. Let be the neutral element of . It is clear that for any vertex , the mapping is the only of them that maps to . Moreover, for any out-neighbor of there is an out-neighbor of with , so .
We end the section with a lemma which shows how the connectivity of a semigroup digraph yields information about its defining semigroup(s). A directed graph is (strongly) connected if for any two vertices there is a (directed) path from to . A set of arcs of a connected directed graph is a directed edge cut if has exactly two connected components and and all arcs of are directed from to . It is an easy observation, that a connected directed graph is strongly connected if and only if it has no directed edge cut.
Lemma 2.5.
If is strongly connected, then is left cancellative.
Proof.
For any and any with we have that . In particular, has no outgoing arcs. Hence if , then there is a directed edge cut defined by the arcs from to . Thus, strong connectivity yields . By Lemma 2.1 and the fact that is finite, left-multiplication by is an automorphism of . This means that is left cancellative.
3 Semigroup digraphs and monoid digraphs
In this section we study semigroup and monoid digraphs. If for a directed graph there is a semigroup and a non-empty with , then the outdegree of any vertex of is between and . In the -outregular case, i.e. when all vertices have outdegree , one can reduce to any of its members without changing :
Observation 3.1.
A semigroup digraph is -outregular if and only if for some .
The -outregular semigroup digraphs were studied by Zelinka [58]. He gave a very concrete characterization of this class, but his construction of the corresponding semigroups is flawed. However, an alternative non-trivial construction can be given inspired by [38, Proposition 11.3.2]. This is the first objective of this section. We give a monoid version of the result (Theorem 3.2), and then obtain Zelinka’s theorem as a corollary (Corollary 3.3).
In a -outregular digraph each connected component has exactly one cycle (possibly a loop) . All vertices in have a unique shortest directed path to . For denote by the length of this path and by the maximum among all these lengths. Moreover, denote by the length of .
Theorem 3.2.
A -outregular digraph is a monoid digraph if and only if has a component such that divides and for all components of .
Proof.
By Observation 3.1, if is a monoid digraph, then for some monoid and . Let and be the pre-period and the period of , respectively. This is, are pairwise distinct and . Hence, the component containing satisfies and . Now let be any component of , at distance from the cycle of , and . If does not divide , then and are not congruent modulo and thus , a contradiction. Hence divides . Now suppose . Then is distinct from for each , but this is also a contradiction. Hence .
Now suppose that the condition is fulfilled. For denote by the length of the shortest directed path from to , if it exists. Moreover, for denote . In choose a vertex at distance from the cycle . Conveniently call this vertex and call its out-neighbor . For any vertex and any , define as the end vertex of the directed walk of length starting at . It is clear that for any the vertices are equal if and only if .
Claim.
For every and every we have .
Proof.
Observe that
where is the remainder of the Euclidean division of by . Now we distinguish two cases. If then . If otherwise , write , where are the integers determined by . By hypothesis, and , so .
Now, let . Observe that . Therefore can be reached from any vertex of , so we can set . Note that we have . This implies that for any , so for any . We regard the vertices of as the elements of a monoid equipped with the following multiplication:
By definition, is the right-neutral element, but also . Hence is the neutral element of this operation. Let us check that the operation is associative. Pick any . If , then and . If then . So suppose . Then using the above Claim we can transform, . Finally, note that is an arc of if and only if . Therefore, .
Corollary 3.3 (Zelinka’s Theorem).
A -outregular digraph is a semigroup digraph if and only has a component such that divides and for all components of .
Proof.
Again by Observation 3.1 we can suppose that for a semigroup and . Let be the connected component of and the monoid obtained from by adjoining a neutral element . We can establish a bijective correspondence between connected components of and as follows: if , and is obtained from by adding the vertex and the arc . Observe that and . By Theorem 3.2, and for any connected component of .
Now suppose that fulfills the condition. Pick a vertex in with , and from construct a new -outregular graph by adding a new vertex and the arc . By Theorem 3.2, is isomorphic to for some monoid and some . It follows from its proof that can be assumed to be the neutral element and to be . Additionally, since has no in-neighbors, it can be checked that is closed under the constructed product. Therefore, it is a semigroup, and is isomorphic to .
The following has been claimed before [38, Proposition 11.3.2]. However, also in this proof there is a slight problem in the monoid construction. Here we get it as a direct consequence of Theorem 3.2:
Corollary 3.4.
Any connected -outregular digraph is a monoid digraph.
It was asked in [38, below Proposition 11.3.2] if Corollary 3.4 could be extended to -outregular semigroup digraphs. Here we give a negative answer in a strong sense. A subset of vertices of a (strongly) connected (directed) graph is called (directed) vertex cut if is not (strongly) connected. If is an integer such that all (directed) vertex cuts of are of order at least and , where is the order of , then is (strongly) -connected.
Theorem 3.5.
For every there exist infinitely many strongly connected -outregular non-semigroup digraphs. Moreover, for every with there are such digraphs that are strongly -connected, and whose underlying undirected graph is -connected. For such digraphs exist that cannot even be turned into semigroup digraphs by adding loops.
Proof.
Given two positive integers , let be the directed graph with vertex set which has an arc from to if and only if or alternatively , and . Given a positive integer , let be an equivalence relation on defined as if and only if the following conditions are satisfied:
-
(i)
;
-
(ii)
, or and (or the symmetric condition).
We call the directed graph obtained from by merging all vertices of each -class. See Figure 2 for an illustration.

Note that for the digraph is -outregular and strongly connected. Denote by the set of vertices of with first coordinate congruent to modulo if , and the set of -classes if . In particular, and . Assume that and .
It is clear that is not strongly -connected: for instance, all in-neighbors of any vertex of form a directed vertex cut. Now let be a minimal directed vertex cut. Suppose that there is a vertex with . Then since there is in a vertex with the same in-neighbors and out-neighbors as , so is also a directed vertex cut, a contradiction. Therefore . Hence there must be a vertex in with all in-neighbors in , or would not be a directed vertex cut. This implies that .
Moreover the underlying undirected graph of is -connected. First note that , where is the set of in-neighbors of a vertex of , is a vertex cut. Now let be a minimal vertex cut; it is clear that for some . This is unique (modulo ); more precisely, it is the only index satisfying . Suppose that there is a vertex with . Then there is a vertex in with the same neighbors as , so is also a vertex cut, a contradiction. Therefore . Since it is clear that . Moreover, since there is a vertex with all its in-neighbors in . This implies that , where is the set of in-neighbors of .
We will now show that:
-
(a)
under the assumed hypotheses on , is not a semigroup digraph;
-
(b)
if additionally , then there is no semigroup and for which , where denotes the graph obtained from by removing all loops.
In both cases a hypothetical representation with a semigroup and a connection set leads to a contradiction. Indeed, let and . By Lemma 2.5 is left cancellative, so . Now suppose that and let . We have if there is a semigroup representation in case (a) and if there is a semigroup representation in case (b), the desired contradictions.
On the other hand we also know a smallest outregular non-semigroup digraph.
Proposition 3.6.
There is an outregular non-semigroup digraph on three vertices and this is smallest possible.
Proof.
Consider the directed graph from Figure 3 with vertex set and arc set
Suppose that for a semigroup and some . It is clear that there is no with or . On the other hand, . Therefore, . Now suppose that . Then , a contradiction. Similarly, . Hence , but this is also a contradiction, because is loopless.

Moreover, there is no -outregular non-semigroup digraph with less than three vertices. Since all -outregular digraphs and all -outregular connected digraphs are monoid digraphs (by Theorem 3.2), we only have to worry about -outregular disconnected digraphs and -outregular digraphs. But with less than three vertices there is only one of each kind: the digraph formed by two vertices with a loop each, and the complete digraph with loops of two vertices; and they are respectively isomorphic to and , where is the additive group on the integers modulo .
Remark 3.7.
By examining all cases, one can show that there are in total exactly outregular non-semigroup digraphs on vertices. We omit this discussion here for the sake of brevity.
It is known that every graph is isomorphic to some induced subgraph of a Cayley graph of a group [4]. Here we show that any sink-free directed graph can be obtained from a monoid digraph by removing a connected component. Note that it is necessary to require the digraph to be sink-free. Similar constructions have been used before (see e.g. [14, Theorem 2.2], also see the standard concept of transition monoid in automata theory [49, Chapter IV.3]). Given a graph (directed or undirected) and a vertex of , we denote by the connected component of .
Proposition 3.8.
Let be a digraph, a set of mappings satisfying
-
i)
,
-
ii)
,
and the monoid generated by with respect to composition. The set admits a monoid structure such that .
Proof.
Consider the following multiplication on :
Note that serves as the neutral element of . To see that is associative, pick any . If , then . Thus, let . In the case we have ; in the case , we have ; and the case is trivial. Let . It is clear that the subgraph induced by is a connected component of , and it coincides with . The subgraph induced by is formed by the rest of the connected components, and by the hypotheses on , it is isomorphic to .
Proposition 3.8 has the last result of this section as a corollary.
Corollary 3.9.
Let be a directed graph in which each vertex has at most out-neighbors, and at least . Then there is a monoid and with such that .
Proof.
One can greedily cover the arcs of by spanning -outregular subdigraphs: to construct the th such digraph simply take any vertex that has not yet outdegree in , add any not yet covered arc to or an already covered one if all are covered, and iterate.
Now each yields a function that just maps every vertex to its out-neighbor in . The resulting set has order and Proposition 3.8 yields the result.
4 Monoid graphs
Until here we have examined directed graphs, but now we forget about orientations and loops: we concentrate on the underlying simple undirected graphs. Also, we shift our attention from semigroups in general to just monoids. The aim of this section is to give several examples of both monoid and non-monoid graphs.
Before starting it is worth noting that in this particular setting some assumptions about the connection set can be made. Let be a monoid and . First, the graph does not depend on the pertinence of to , so it can be assumed that . Second, since now the direction of the arcs is not important, can be assumed to be closed under taking existing left-inverses. This is:
Lemma 4.1.
Let be a monoid, and . Then , where is the set of neighbors of the neutral element.
Proof.
Since all we have to show is that every edge of is an edge of . Suppose that for some . Then for some . This implies that is also an edge of , because .
We begin with some positive results. A graph is called a threshold graph if there exist non-negative reals and , , such that for every we have that if and only if is an independent set. Equivalently, a threshold graph is a graph that can be obtained from the one-vertex graph by repeatedly adding an isolated vertex or a vertex which is connected to all the others. More equivalent definitions can be found in [42, Theorem 1.2.4]. As a consequence of Proposition 4.2, these graphs are monoid graphs.
Proposition 4.2.
Let be a monoid graph and let . Then both and are monoid graphs.
Proof.
Let be a monoid and with . Define a monoid structure on using the multiplication from whenever possible, and defining for every . This new multiplication preserves the neutral element from , and it is also associative: let and suppose than at least one of them is equal to ; then, . It is straightforward to check that and .
Corollary 4.3.
Threshold graphs are monoid graphs.
Another class of monoid graphs is the class of forests. This is a corollary to the monoid version of Zelinka’s theorem (Theorem 3.2).
Corollary 4.4.
For every forest there is a monoid and such that is isomorphic to .
Proof.
Let be any forest. Pick in each component an arbitrary vertex . Direct all edges of towards and add a loop at . Clearly, the resulting digraph satisfies the hypothesis of Theorem 3.2: every component has , and some of them maximize .
Corollary 4.4 leads to the idea of covering a graph with several forests in order to find a monoid representation. More precisely, a pseudoforest is a graph having at most one cycle per connected component. The pseudoarboricity (resp. arboricity ) of a graph is the minimum number of pseudoforests (resp. forests) needed to cover all the edges of . These invariants can be computed in polynomial time [12], and results from [45, 10, 48] yield the following formulas:
where is the set of edges of the subgraph of induced by . Not too surprisingly, in the undirected setting the pseudoarboricity has a similar role to that of -outregularity in Section 3. The pseudoarboricity of a semigroup graph is bounded by the size of the connection set in any semigroup representation. More precisely:
Observation 4.5.
If is a semigroup graph, then .
Corollary 3.9 together with the fact that is the minimum, over all orientations of , of the maximum outdegree of , gives:
Corollary 4.6.
Let be a graph with pseudoarboricity . Then there is a monoid and with such that .
Corollary 4.4 can be restated by saying that graphs of arboricity are monoid graphs. One could ask what happens with higher arboricities. In Proposition 4.7 we show an infinite family of planar non-monoid graphs of arboricity and treewidth .
Proposition 4.7.
The disjoint union is non-monoid, for all with .
Proof.
Assume for a contradiction that for some monoid and . Denote by , the corresponding components of , that are directed graphs with possible loops and anti-parallel arcs. Since is odd, there are two consecutive arcs in . Hence, there is a vertex and such that the vertices are all different. If the neutral element is in , then are either neighbors or the same vertex. But then should also be neighbors or the same vertex, a contradiction.
Therefore must be in . Hence by Lemma 4.1 we can suppose that with . The periods of can only be , or , so by Theorem 3.2 both and are pseudoforests without cycles of length or . Then each element of corresponds to at most non-loop arcs of , and it must correspond to exactly , because has edges; moreover, none of the edges of correspond to both . Therefore, if we group the edges of depending on whether they come from or from , we obtain two edge-disjoint copies of the path . We now distinguish two cases.
If there is an edge in corresponding to both , any endomorphism mapping to a vertex of implies the existence of a loop in . Lemma 2.4 guarantees the existence of such an endomorphism.
If otherwise every edge in corresponds to either or , since is odd then there is a loop in . Thus, by Lemma 2.4 there is a loop in . We can suppose that this loop corresponds to . Let be the vertex of the loop. Wherever lies along the -copy of , it implies there are vertices , different from , such that . This implies that are all different. We know that , so , and there cannot be more loops in . Now, , but that is a contradiction.

Remark 4.8.
The construction and the argument in Proposition 4.7 are based on the fact that the graph is disconnected. We dedicate the remainder of the section to the construction of -connected non-monoid graphs for arbitrarily large (Theorem 4.12).
We start with some more technical definitions and lemmas. Given an undirected graph , consider the set and define , where denotes the independence number.
Lemma 4.9.
Let be a triangle-free -vertex graph with minimum degree and maximum degree . If for , there is a monoid and such that consists of and joined by edges, then .
Proof.
By Lemma 4.1, we can suppose that the elements of are exactly the neighbors of . Hence, has to be a vertex of : otherwise , but this would imply that there are at most edges incident to vertices of .
Let be the set of edges joining and , and . For each let be the edge if , or any edge of adjacent to if . The map defined by is injective, so .
For each define
Consider the set . Let and with for some . Suppose that there are two different and with . We can suppose that . Observe that , because otherwise . In fact, since are pairwise different, , but then these vertices form a triangle, a contradiction. Therefore . Now we can write
Note that is an independent set of the graph , where is defined by . This yields the desired result.
For a graph is an -graph if has vertices, is -regular, and all the Eigenvalues of its adjacency matrix are in . The expander mixing lemma (see, e.g., [1, 2], [18, Section 5] or [8, Lemma 2.1]) asserts that if are two sets of vertices in such a graph then
where is the number of (ordered) edges with .
A standard application of the expander mixing lemma is bounding from above the independence number . Here we show that can be bounded in a similar manner.
Lemma 4.10.
If is an -graph and , then for all .
Proof.
Let and let be an independent set of . The number of edges of the subgraph of induced by is at most . The expander mixing lemma yields
and this implies the result.
Our strategy will be to confront the bounds of Lemma 4.9 and Lemma 4.10 by using -graphs in the construction of the examples. For this, we will also need some control over the connectivity of -graphs.
Lemma 4.11.
If is an -graph, and , then is -connected.
Proof.
Suppose that is not -connected. Since (it can be always assumed that ), we know that there exist non-empty with , , and .
Applying the expander-mixing lemma to we get that
On the other hand, , so
Finally, we must have that ; otherwise, applying the expander mixing lemma to would lead to a contradiction. This yields
We are ready to prove the main theorem of this section.
Theorem 4.12.
For every non-negative integer there exists a -connected graph that is not a monoid graph.
Proof.
The family of (triangle-free) non-bipartite Ramanujan graphs of unbounded degree given by Lubotzky, Phillips and Sarnak [40] consists of -graphs with . Let be one of such graphs, also satisfying , and let . Choose different vertices of and different vertices of . Consider the graph consisting in , and the additional edges .
Observe that the inequality holds for . Hence we have . By Lemma 4.11, is -connected, so is -connected.
5 Generated monoid trees
In the present section we investigate the more restricted class of monoid graphs, where the connection set generates the monoid. This restriction has received some attention with respect to semigroups, see [38, Chapter 11.3]. More precisely, we study the following problem: given a tree , determine whether there exist a monoid and with such that .
We know already, that trees are monoid graphs by Corollary 4.4. So the present section is an investigation on how much more restrictive the condition is. In particular, we provide a sufficient condition (Theorem 5.1) and a necessary condition (Theorem 5.2) for a tree to be such a generated monoid graph, both stated in similar terms. However, a characterization remains open.
We start by introducing some notation borrowed from the context of distance-regular graphs [7, Section 20]. Let be a connected graph and a fixed vertex of . For every vertex we define the number of successors of with respect to as . To avoid unnecessary complications, throughout the section we will assume that in an undirected Cayley graph the neutral element is not in .
Theorem 5.1.
Let be a tree and . If for every with we have , then is a generated monoid graph.
Proof.
Let the set of neighbors of . Let be a set of different symbols. We construct a multi-digraph with -colored arcs which has as its underlying simple undirected graph. Given a vertex , call its successors respect to ; the successor will be also denoted by for . If has no successor, then use the notation . The arcs of of color are precisely for each . depends on the choice made when labeling the successors, but in what follows that will not matter.
Now, for each vertex and each finite word from the alphabet , define to be the ending vertex of the directed walk starting at and defined by . Observe that for any , which is an equality if is not a leaf of . Let be the equivalence relation in defined by . Construct a third graph , also directed and with multiple -colored arcs, but this time with vertex set : there is an arc of color from to if and only if . Note that the map from to sending to is an isomorphism between and .
Endow with the following multiplication: for each . The following will be useful.
Claim.
For any we have .
Proof.
In the case that , this is implied by the assumed hypothesis. And in the opposite case, , so either there is a chain of equalities and is the empty word (in which case we are done), or is a leaf, and then .
We have to check that the definition is independent of the representatives. Let with . Since , we only have to bother if . We distinguish two cases:
If , write and with for . We have that, for each , either or , where and . We now use the Claim to conclude that for each . This implies that .
If , write with and . We know that is a leaf, so . Here , so , which can be obtained following the argumentation of the first case. Again by the first case, , and by the Claim, this vertex is a leaf of . Hence, , and we are done.
The defined multiplication is associative; showing it is an easy task: . Moreover, it has a neutral element, the -class of the empty word. Therefore with this operation is a monoid, and clearly .
Let be a tree and . For each neighbor of we define the branch of respect to as . If , then we also say that is the branch of respect to . The branches we will consider in generated monoid trees will be only with respect to (possible) neutral elements.
Given a monoid and , let be the map corresponding to left-multiplication by .
Proposition 5.2.
Let be a generated monoid tree, i.e., for some monoid and some with . Then for each there is a with and . Moreover, if , then for each vertex and each there is a vertex with and , where
Proof.
We start with a useful fact.
Claim.
For each and each we have .
Proof.
Let be the successive vertices of a shortest path between and , where . Then the vertices , maybe after adding some loops, define a walk between and . Therefore .
Given any , let with . Write with , and . Clearly satisfies . By the Claim this is, in fact, an equality. For an element let . Observe that and . Hence to show that it will be enough to see that if then . Now, means that there is some and some with and . Again by the Claim, . Since , we have that .
For the second part, let . Suppose that . Take a walk between and , and let be its successive vertices. The vertices , maybe after adding some loops, define a walk between and . Therefore for some . Since is finite, is an automorphism, contradicting that . Therefore, . The fact that is a consequence of . Furthermore, if then , because otherwise , so in this case. If the same conclusion holds, because directly. Finally, what is left follows from the Claim.
The following lemma shows that the condition for the second part of Proposition 5.2 is not as restrictive as it may seem.
Lemma 5.3.
Let be a tree satisfying for some monoid and some with . If then there is some such that and .
Proof.
Let such that . Write with . Since is finite, . This implies that , or else would have a cycle. Now let with . If then there is a cycle in . Indeed, let be the order of . It will be enough to show that the vertices are all different. It is clear that are pairwise different, and since right-multiplication by has to be bijective, so are . Moreover there is no overlap between these two sets of vertices: the distance from is even in the first case and odd in the second (the presence of consecutive vertices in the succession would imply that or after the cancellation of the left terms). Therefore, , which means that .
A drawback of Proposition 5.2 is that it can be difficult to use without knowing the (possible) location(s) of the neutral element. Luckily, the number of candidates can be sometimes restricted.
Lemma 5.4.
Let be a generated monoid tree, i.e., for some monoid and some with and let be the maximum degree of . We have .
Proof.
Let be a vertex of . Suppose that in there are two arcs incident to , and that the arcs do not exist. We know that in any vertex is reachable from by a unique shortest path . The edge is the last one of either or . Since the corresponding paths in are directed, from to the target vertex, is the last edge of . By the same argument, so is , and this shows that in vertex has at most one in-neighbor which is not an out-neighbor. Therefore , and the fact that yields the conclusion.
We apply the above results to present two families of trees, one being generated monoid graphs and the other not being generated monoid graphs. A perfect -ary tree of height , is a rooted tree in which the root has neighbors, every non-leaf vertex has also successors, i.e., neighbors that are further from the root than itself, and all the leaves are at distance exactly from the root. See Figure 5 for an illustration. A direct consequence of Proposition 5.1 is:
Observation 5.5.
Every perfect -ary tree is a generated monoid graph.

Denote by the tree obtained from by adding an extra leaf at distance to the root. The tree is depicted in Figure 5.
Proposition 5.6.
For and , the tree is not a generated monoid graph.
Proof.
Suppose that for some monoid and some with . By Lemma 5.3, there is no non-trivial element of corresponding to an automorphism of ; such an automorphism would map the neutral element to a vertex which is at another depth (distance from the root). So Proposition 5.2 can be fully used. Let be the depth of the neutral element. By Lemma 5.4, , because . We know that there is a leaf with (and ), but none of the vertices in the branch of the root with is a leaf, and in fact they all satisfy , contradicting the second part of Proposition 5.2.
In the last construction, due to the high symmetry, considering different possible placements of the neutral element was easy. If we add two leaves instead of just one to the same vertex, then by Lemma 5.4 in the resulting graph only one placement of the neutral element has to be analyzed.
Remark 5.7.
The above results are enough to determine, up to order , if a tree is a generated monoid graph or not. It turns out that all of them are generated monoid graphs, except one (see the left of Figure 6). On the other hand on vertices we can find a first tree for which our results do not determine whether it is a generated monoid tree or not (see the right of Figure 6).

6 Concluding remarks
We have studied the classes of monoid and semigroup graphs and digraphs. One of our first results is a Sabidussi-type characterization of monoid digraphs (Lemma 2.4). Since from every semigroup one can obtain a monoid by adjoining a neutral element, this can in a certain way be used to obtain a characterization of semigroup digraphs: a digraph is a semigroup digraph if and only if a source can be added, such that this new vertex plays the role of in Lemma 2.4. However, we wonder if there is an intrinsic characterization:
Question 6.1.
Is there a Sabidussi-type characterization of semigroup digraphs?
The central piece of this paper is about monoid graphs. Our knowledge about this class remains superficial and its structure seems hard to capture. Note in particular, that the class of monoid graphs is not closed under disjoint union by Proposition 4.7, which would have been a generalization of Proposition 4.2. The positive examples we know are forests and threshold graphs (Corollaries 4.3 and 4.4). Forests coincide with the class of graphs of treewidth . On the other hand the non-monoid graphs from Proposition 4.7 have treewidth . How about graphs of treewidth ? E.g., outerplanar graphs or -trees: graphs that can be obtained from by successively adding a new vertex with exactly two neighbors who form an edge. Figure 1 depicts an outerplanar -tree that is a monoid graph.
Question 6.2.
Are -trees monoid graphs? Are outerplanar graphs monoid graphs? Are there series-parallel non-monoid graphs?
Another direction are semigroup graphs; here the fundamental question is open. We formulate it in the more provocative way, even if we believe the answer to be negative as in the case of posets, see [14].
Question 6.3.
Is every graph a semigroup graph?
Finally, we have studied trees that are generated monoid graphs. We have found necessary and sufficient conditions for a tree to form part of this class (Theorem 5.1 and Proposition 5.2). These conditions are in terms of simple parameters related to the distance to the root of a tree . It would be nice to find a characterization in these terms. More generally both conditions are computationally easy to verify. We wonder:
Question 6.4.
Can it be tested in polynomial time if a tree is a generated monoid tree?
Acknowledgements
This research was initiated in the BGSMath course Fragments of algebraic graph theory 2021. Thanks to participants, lecturers, and organizers. K.K was partially supported by the Spanish Ministerio de Economía, Industria y Competitividad through grant RYC-2017-22701 and by MICINN through grant PID2019-104844GB-I00.
References
- [1] N. Alon and F. R. K. Chung, Explicit construction of linear sized tolerant networks., Discrete Math., 72 (1988), pp. 15–19.
- [2] N. Alon and J. H. Spencer, The probabilistic method. 4th edition., Hoboken, NJ: John Wiley & Sons, 4th edition ed., 2016.
- [3] L. Babai, Automorphism groups of graphs and edge-contraction, Discrete Math., 8 (1974), pp. 13–20.
- [4] L. Babai, Embedding graphs in Cayley graphs, in Probl. Comb. Théorie des Graphes (Proc. Conf. Paris-Orsay 1976), J-C. Bermond et al., ed., 1978, pp. 13–15.
- [5] L. Babai, On the abstract group of automorphisms. In Combinatorics, vol. 52 of London Math. Soc. Lecture Notes, Cambridge University Press, 1981, pp. 1–40.
- [6] L. Babai and A. Pultr, Endomorphism monoids and topological subgraphs of graphs, J. Comb. Theory, Ser. B, 28 (1980), pp. 278–283.
- [7] N. Biggs, Algebraic Graph Theory, Cambridge Tracts in Mathematics, Cambridge University Press, 2nd ed., 1993.
- [8] A. Bishnoi, S. Mattheus, and J. Schillewaert, Minimal multiple blocking sets, Electron. J. Combin., 25 (2018), pp. Paper No. 4.66, 14.
- [9] A. Cayley, Desiderata and suggestions: No. 2. The Theory of groups: graphical representation, American Journal of Mathematics, 1 (1878), pp. 174–176.
- [10] A. Frank and A. Gyárfás, How to orient the edges of a graph?, in Combinatorics (Proc. Fifth Hungarian Colloq., Keszthely, 1976), Vol. I, Colloq. Math. Soc. János Bolyai, vol. 18, North-Holland, 1978, pp. 353–364.
- [11] R. Frucht, Herstellung von Graphen mit vorgegebener abstrakter Gruppe, Compositio Mathematica, 6 (1939), pp. 239–250.
- [12] H. N. Gabow and H. H. Westermann, Forests, frames, and games: Algorithms for matroid sums and applications, Algorithmica, 7 (1992), pp. 407–421.
- [13] I. García-Marco and K. Knauer, Beyond symmetry in generalized Petersen graphs. in preparation.
- [14] I. García-Marco, K. Knauer, and G. Mercui-Voyant, Cayley posets, Mediterr. J. Math., 17 (2020).
- [15] C. Godsil and G. Royle, Algebraic graph theory., vol. 207, New York, NY: Springer, 2001.
- [16] M. Grohe, P. Schweitzer, and D. Wiebking, Automorphism groups of graphs of bounded Hadwiger number, 2020.
- [17] J. Gross and T. Tucker, Topological Graph Theory, Wiley Series in Discrete Mathematics and Optimization, Wiley-Interscience, 1987.
- [18] W. H. Haemers, Interlacing eigenvalues and graphs, Linear Algebra Appl., 226/228 (1995), pp. 593–616.
- [19] Y. Hao, X. Gao, and Y. Luo, On Cayley graphs of symmetric inverse semigroups., Ars Comb., 100 (2011), pp. 307–319.
- [20] Y. Hao, X. Gao, and Y. Luo, On the Cayley graphs of Brandt semigroups., Commun. Algebra, 39 (2011), pp. 2874–2883.
- [21] Y. Hao and Y. Luo, On the Cayley graphs of left (right) groups., Southeast Asian Bull. Math., 34 (2010), pp. 685–691.
- [22] Z. Hedrlin and J. Lambek, How comprehensive is the category of semigroups?, J. Algebra, 11 (1969), pp. 195–212.
- [23] Z. Hedrlin and A. Pultr, Relations (graphs) with given finitely generated semigroups, Monatsh. Math., 68 (1964), pp. 213–217.
- [24] Z. Hedrlin and A. Pultr, Symmetric relations (undirected graphs) with given semigroups, Monatsh. Math., 69 (1965), pp. 318–322.
- [25] G. Jian and S. Fan, On undirected Cayley graphs of some completely simple semigroups., Southeast Asian Bull. Math., 33 (2009), pp. 741–749.
- [26] A. Kelarev, J. Ryan, and J. Yearwood, Cayley graphs as classifiers for data mining: The influence of asymmetries, Discrete Mathematics, 309 (2009), pp. 5360–5369.
- [27] A. V. Kelarev, On undirected Cayley graphs, Australas. J. Combin., 25 (2002), pp. 73–78.
- [28] A. V. Kelarev, On Cayley graphs of inverse semigroups, Semigroup Forum, 72 (2006), pp. 411–418.
- [29] A. V. Kelarev and C. E. Praeger, On transitive Cayley graphs of groups and semigroups, European J. Combin., 24 (2003), pp. 59–72.
- [30] B. Khosravi, On Cayley graphs of left groups., Houston J. Math., 35 (2009), pp. 745–755.
- [31] B. Khosravi, Some properties of Cayley graphs of cancellative semigroups., Proc. Rom. Acad., Ser. A, Math. Phys. Tech. Sci. Inf. Sci., 17 (2016), pp. 3–10.
- [32] B. Khosravi, On the Cayley graphs of completely simple semigroups., Bull. Malays. Math. Sci. Soc. (2), 41 (2018), pp. 741–749.
- [33] B. Khosravi and B. Khosravi, A characterization of Cayley graphs of Brandt semigroups., Bull. Malays. Math. Sci. Soc. (2), 35 (2012), pp. 399–410.
- [34] B. Khosravi and B. Khosravi, On Cayley graphs of semilattices of semigroups., Semigroup Forum, 86 (2013), pp. 114–132.
- [35] B. Khosravi and M. Mahmoudi, On Cayley graphs of rectangular groups., Discrete Math., 310 (2010), pp. 804–811.
- [36] K. Knauer and U. Knauer, Toroidal embeddings of right groups, Thai J. Math., 8 (2010), pp. 483–490.
- [37] K. Knauer and U. Knauer, On planar right groups., Semigroup Forum, 92 (2016), pp. 142–157.
- [38] U. Knauer and K. Knauer, Algebraic graph theory. Morphisms, monoids and matrices. 2nd revised and extended edition., Berlin: De Gruyter, 2nd revised and extended edition ed., 2019.
- [39] M. Lovrečič Saražin, A note on the generalized Petersen graphs that are also Cayley graphs, J. Comb. Theory, Ser. B, 69 (1997), pp. 226–229.
- [40] A. Lubotzky, R. Phillips, and P. Sarnak, Ramanujan graphs, Combinatorica, 8 (1988), pp. 261–277.
- [41] Y. Luo, Y. Hao, and G. T. Clarke, On the Cayley graphs of completely simple semigroups., Semigroup Forum, 82 (2011), pp. 288–295.
- [42] N. V. R. Mahadev and U. N. Peled, Threshold Graphs and Related Topics, Annals of Discrete Mathematics 56, North Holland, 1 ed., 1995.
- [43] J. Meksawang and S. Panma, Cayley digraphs of Brandt semigroups relative to Green’s equivalence classes., Southeast Asian Bull. Math., 39 (2015), pp. 815–827.
- [44] J. Meksawang, S. Panma, and U. Knauer, Characterization of finite simple semigroup digraphs., Algebra Discrete Math., 12 (2011), pp. 53–68.
- [45] C. S. J. A. Nash-Williams, Decomposition of finite graphs into forests, Journal of the London Mathematical Society, s1-39 (1964), pp. 12–12.
- [46] J. Nešetřil and P. Ossona de Mendez, Sparsity. Graphs, structures, and algorithms, vol. 28, Berlin: Springer, 2012.
- [47] S. Panma, U. Knauer, and S. Arworn, On transitive Cayley graphs of strong semilattices of right (left) groups., Discrete Math., 309 (2009), pp. 5393–5403.
- [48] J.-C. Picard and M. Queyranne, A network flow solution of some non-linear 0-1 programming problems and applications to graph theory, Networks, 12 (2006), pp. 141–159.
- [49] J.-É. Pin, Mathematical foundations of automata theory, 2012.
- [50] G. Sabidussi, On a class of fixed-point-free graphs, Proceedings of the American Mathematical Society, 9 (1958), pp. 800–804.
- [51] D. V. Solomatin, Direct products of cyclic semigroups admitting a planar Cayley graph., Sibirskie Ehlektronnye Matematicheskie Izvestiya [Siberian Electronic Mathematical Reports], 3 (2006), pp. 238–252.
- [52] D. V. Solomatin, Semigroups with outerplanar Cayley graphs, Sibirskie Èlektronnye Matematicheskie Izvestiya [Siberian Electronic Mathematical Reports], 8 (2011), pp. 191–212.
- [53] T. Suksumran and S. Panma, On connected Cayley graphs of semigroups., Thai J. Math., 13 (2015), pp. 641–652.
- [54] S. Wang and Y. Li, On Cayley graphs of completely 0-simple semigroups., Cent. Eur. J. Math., 11 (2013), pp. 924–930.
- [55] W. Wang and H. Hou, Cayley graphs of strong semilattices of left groups., J. Wuhan Univ., Nat. Sci. Ed., 55 (2009), pp. 633–636.
- [56] A. White, On the genus of a group, Transactions of the American Mathematical Society, 1973 (1972), pp. 203–214.
- [57] A. T. White, Graphs, Groups and Surfaces, North-Holland, completely rev. and enlarged ed., 1984.
- [58] B. Zelinka, Graphs of semigroups, Časopis pro pěstování matematiky, 106 (1981), pp. 407–408.
- [59] X. Zhang, Clifford semigroups with genus zero, in Semigroups, Acts and Categories with Applications to Graphs, Proceedings, Tartu 2007, vol. 3 of Mathematics Studies, Estonian Mathematical Society, Tartu, 2008, pp. 151–160.