1 Introduction

The degree/diameter and degree/girth problems have their roots in the design of efficient interconnection networks. Applications include the design of computer architectures, planning transportation infrastructure and analysis of social networks. The undirected degree/diameter problem asks for the maximum possible order of a graph with given maximum degree d and diameter k. The order of such a graph is bounded above by the Moore bound

$$\begin{aligned} M(d,k) = 1 + d + d(d-1) + d(d-1)^2 + \cdots + d(d-1)^{k-1}. \end{aligned}$$

The degree/girth problem asks for the smallest graph with minimum degree d and girth \(\ge g = 2k + 1\) (for simplicity we discuss only the case of odd g). For such graphs the Moore bound serves as a lower bound.

A graph attaining this bound is known as a Moore graph. A simple counting argument shows that a graph G is Moore if and only if it is d-regular, has diameter k and girth \(2k+1\), or, equivalently, if and only if G is d-regular and between any pair of vertices uv there is a unique path of length \(\le k\). It was shown by spectral methods in [1, 13] that for \(k \ge 2\) and \(d \ge 3\) such a graph must have diameter \(k = 2\) and degree \(d\in \{3,7,57\}\). There are unique Moore graphs corresponding to \(d = 3\) and 7, given by the Petersen graph and the Hoffman-Singleton graph respectively. The existence of a Moore graph corresponding to \(d=57\) is a famous open problem.

Given the scarcity of Moore graphs, it is of great interest to study graphs with similar structures. One can search for graphs with maximum degree d, diameter k and order \(M(d,k)-\delta \) for small \(\delta \); \(\delta \) is known as the defect of the graph. Alternatively, one can ask for graphs with girth \(g \ge 2k + 1\), minimum degree d and order \(M(d,k)+\epsilon \), where \(\epsilon \) is the (hopefully small) excess of the graph. Unfortunately graphs with defect or excess one exist only trivially in the form of cycles [2, 10, 15]. For more information on the history and development of the degree/diameter and degree/girth problems, see the surveys [11, 20].

For digraphs with maximum out-degree \(d>1\) and diameter \(k>1\) the Moore bound has an even simpler form:

$$\begin{aligned} M(d,k)= 1+d+d^2+\cdots +d^k = \frac{d^{k+1}-1}{d-1}. \end{aligned}$$

A digraph is Moore if and only if it is out-regular with degree d, has diameter k and is k-geodetic, i.e. for any pair of vertices uv there is at most one directed walk from u to v with length \(\le k\). It is well known [5, 22] that there are no Moore digraphs of degree \(d \ge 2\) and diameter \(k \ge 2\). There are digraphs with diameter \(k = 2\) and defect \(\delta = 1\) for every value of the maximum out-degree d [12]; however, no such digraphs exist for diameters \(k = 3\) or 4 [8, 9] or degrees \(d = 2\) or 3 and \(k \ge 3\) [3, 17]. k-geodetic digraphs with minimum out-degree d and excess \(\epsilon = 1\) do not exist for degree \(d = 2\) [23] or \(k = 3\) or 4 and \(d \ge 2\) or \(k = 2\) and \(d \ge 8\) [19]. In the directed problem, it is necessary to ask whether digraphs with order one away from the Moore bound are necessarily diregular; this was settled in the affirmative for defect one in [18] and for excess one in [19].

Recently, there has been much interest in these problems in the context of mixed graphs, where we allow both undirected edges and directed arcs in the graph. We can view the case of mixed graphs either as a generalisation of the undirected case (allowing arcs as well as edges) or as a specialisation of the directed case (where we insist that a number of the arcs must be present with their reverses). The mixed Moore bound for undirected degree r and directed out-degree z is given by [6] as

$$\begin{aligned} M(r,z,k) = A\frac{u_1^{k+1}-1}{u_1-1}+B\frac{u_2^{k+1}-1}{u_2-1}, \end{aligned}$$

where \(v = (z+r)^2+2(z-r)+1\) and

$$\begin{aligned} u_1= & {} \frac{z+r-1-\sqrt{v}}{2},\quad u_2 = \frac{z+r-1+\sqrt{v}}{2}\\ A= & {} \frac{\sqrt{v}-(z+r+1)}{2\sqrt{v}},\quad B = \frac{\sqrt{v}+(z+r+1)}{2\sqrt{v}}. \end{aligned}$$

This serves as a natural upper bound for mixed graphs with maximum undirected degree r, maximum directed out-degree z and diameter k, and as a lower bound for k-geodetic mixed graphs with minimum undirected degree r and minimum directed out-degree z. Note that we do not explicitly constrain the in-degree of any vertex. It is known [21] that no mixed Moore graph of diameter \(k \ge 3\) can exist. For diameter \(k = 2\) the Moore bound is

$$\begin{aligned} M(r,z,2)=(r+z)^2+z+1. \end{aligned}$$

There is a mixed Moore graph with diameter \(k = 2\) and undirected degree \(r = 1\) for every value of the out-degree z; this graph is obtained by collapsing digons in the Kautz digraphs into edges [21]. Otherwise, just three sporadic mixed Moore graphs have been identified [4, 14]. For diameter \(k = 2\), a strong necessary condition on the parameters r and z follows from analysis of the eigenvalues of the graph’s adjacency matrix [4]. However, there are infinitely many pairs rz for which the existence of a Moore graph is not known.

A mixed graph with undirected degree r, directed out-degree z, diameter k and defect \(\delta = 1\) is known as an almost mixed Moore graph. Only one almost mixed Moore graph is known to exist [16]; this graph has order \(n = 10\) and parameters \(r=2, z=1\) and \(k = 2\) and is shown in Fig. 1. This graph has the property of total regularity, i.e. its undirected subgraph is regular and its directed subgraph is diregular. In [7] it is shown that this is the unique almost mixed Moore graph with these parameters; the proof is complicated by the fact that any such graph could not be assumed to be totally regular. These considerations prompted López and Miret to ask whether almost mixed Moore graphs with diameter two must be totally regular [16]. In this paper we answer this question in the affirmative, thereby greatly simplifying the search for almost mixed Moore graphs. We also consider the case \(r = z =1\) and larger diameters.

The existence of k-geodetic mixed graphs with undirected degree \(\ge r\), directed out-degree \(\ge z\) and order \(M(r,z,k)+1\) is also an intriguing problem. Conditions on r and z for the existence of such graphs for \(k = 2\) are given in [24] along with examples of small k-geodetic mixed graphs and new bounds on the order of totally regular k-geodetic mixed graphs. We show that k-geodetic mixed graphs with undirected degree \(\ge r\), directed out-degree \(\ge z\) and excess one are totally regular for \(k = 2\), and for \(k \ge 3\) we prove total regularity for mixed graphs with directed out-degree \(z = 1\). We also present a 2-geodetic mixed graph with \(r = 2, z = 1\) and excess \(\epsilon = 1\) and use our total regularity result to prove its uniqueness.

Fig. 1
figure 1

An almost mixed Moore graph

2 Total Regularity of Almost Mixed Moore Graphs with Diameter Two

We begin by establishing our notation. A mixed graph G consists of a set V(G) of vertices, a set E(G) of unordered pairs of vertices called edges and a set A(G) of ordered pairs of vertices called arcs. If \(\{ u,v\} \in E\), then we write \(u \sim v\); similarly \((u,v) \in A\) is denoted by \(u \rightarrow v\). We do not allow loops or parallel edges or arcs; hence for no vertex u can we have \(u \sim u\) or \(u \rightarrow u\), and \(u \sim v\) and \(u \rightarrow v\) cannot hold simultaneously. The undirected subgraph \(G^U\) and directed subgraph \(G^Z\) of a mixed graph G are the subgraphs induced by E(G) and A(G) respectively. The distance d(uv) between vertices u and v of G is the length of a shortest path in G from u to v; observe that we can have \(d(u,v) \not = d(v,u)\). The diameter of G is defined to be \({{\,\mathrm{diam}\,}}(G)=\max \{ d(u,v) : u,v \in V(G)\} \). The distance from u to v in the undirected and directed subgraphs will be written as \(d_U(u,v)\) and \(d_Z(u,v)\) respectively; we will leave these quantities undefined if u and v lie in separate components of \(G^U\) or \(G^Z\). G will always be assumed to be a proper mixed graph, i.e. both E(G) and A(G) are non-empty. A walk\(u_0u_1u_2\dots u_t\) of length t in a mixed graph G is a sequence of vertices of G such that for \(0 \le i \le t-1\) we have \(u_i \sim u_{i+1}\) or \(u_i \rightarrow u_{i+1}\). The walk is non-backtracking if it does not contain a sub-walk \(u_i\sim u_{i+1} \sim u_i\). We will colloquially call a mixed non-backtracking walk a mixed path. G is k-geodetic if for any ordered pair of (not necessarily distinct) vertices uv there is at most one mixed path from u to v with length \(\le k\).

The undirected degree of a vertex u is the number of edges to which it is incident and will be denoted by d(u). Similarly the directed in-degree (resp. out-degree) of u is the number of arcs of which u is the terminal (initial) vertex and will be written \(d^-(u)\) (\(d^+(u)\)). A mixed graph is out-regular if \(d(u) = d(v)\) and \(d^+(u) = d^+(v)\) for all vertices uv. A graph is totally regular if it is out-regular and \(d^-(u) = d^+(u)\) for every vertex u. Hence a mixed graph G is totally regular if and only if \(G^U\) is regular and \(G^Z\) is diregular.

For given maximum or minimum directed out-degree z, the sets S and \(S'\) are defined by

$$\begin{aligned} S = \{ v \in V(G) : d^-(v) < z\};\quad S' = \{ v' \in V(G) : d^-(v') > z\} . \end{aligned}$$

Informally, S and \(S'\) are the sets of vertices with ‘too small’ in-degree and ‘too large’ in-degree respectively. The undirected and directed neighbourhoods of a vertex u are defined by

$$\begin{aligned} U(u)= & {} \{ v \in V(G) : u \sim v\},\\ Z^+(u)= & {} \{ v \in V(G) : u \rightarrow v\},\\ Z^-(u)= & {} \{ v \in V(G) : v \rightarrow u\} . \end{aligned}$$

For convenience, we also set

$$\begin{aligned} N^+(u) = U(u) \cup Z^+(u), \quad N^-(u) = U(u) \cup Z^-(u). \end{aligned}$$

Thus \(N^+(u)\) is the set of vertices that can be reached by a path of length one from u and \(N^-(u)\) is the set of vertices that can reach u by a path of length one.

A graph with maximum undirected degree r, maximum directed out-degree z, diameter k and defect \(\delta \) (and hence order \(n = M(r,z,k) - \delta \)) is an \((r,z,k;-\delta )\)-graph. An (rzk; 0)-graph is thus a mixed Moore graph and an \((r,z,k;-1)\)-graph is an almost mixed Moore graph. We recall some basic properties of mixed Moore and almost mixed Moore graphs. To derive the Moore bound for a graph with undirected degree \(\le r\), directed out-degree \(\le z\) and diameter \(k = 2\), we pick an arbitrary vertex u and draw a Moore tree (as illustrated in Fig. 2 in the case \(r=3,z=3\)). In the case of a mixed Moore graph, all paths of lengths \(\le 2\) from the root vertex u reach distinct vertices, and a simple count yields the Moore bound of \(M(r,z,2) = (r+z)^2+z+1\).

Fig. 2
figure 2

The Moore tree for \(z=3,r=3,k=2\)

In the case of an almost mixed Moore graph G with diameter \(k = 2\), i.e. a graph with defect \(\delta = 1\) and hence order \(n = (r+z)^2+z\), for each vertex u there must be exactly one vertex v that appears twice in the Moore tree rooted at u; we write \(v = r(u)\) and call v the repeat of u. For \(k = 2\), the repeat function is an automorphism of G if and only if G is totally regular [16]. If W is a subset of V(G) we denote the multiset of repeats of vertices in W by r(W).

We will now proceed to show that any \((r,z,2;-1)\)-graph is totally regular. Let G be an \((r,z,2;-1)\)-graph that is not totally regular. Our strategy is to use a purely combinatorial argument to deduce structural information about G and then apply spectral theory to obtain a contradiction. First we show that G must be out-regular.

Lemma 2.1

G is out-regular with undirected degree r and directed out-degree z.

Proof

Suppose that for some vertex u, \(d(u) \le r-1\) or \(d^+(u) \le z-1\). Drawing the Moore tree rooted at u, it is evident that the defect of G is at least \(\delta \ge r+z \ge 2\). \(\square \)

We now prove two fundamental lemmas that show the relationship between the sets S, \(S'\), out-neighbourhoods and repeats. The result that the repeat function is an automorphism for totally regular almost mixed Moore graphs can be viewed as a ‘limiting case’ of these results.

Lemma 2.2

If \(v \in S\), then \(d^-(v) = z-1\) and for all \(u \in V(G)\) we have \(S \subseteq N^+(r(u))\).

Proof

Let \(v \in S\) and \(u \in V(G)\). Consider the Moore tree rooted at u. Suppose that \(d(u,v) = 2\). As each vertex of \(N^+(u)\) can reach v by paths of length \(\le 2\), each branch of the Moore tree must contain an element of \(N^-(v)\). However, there are \(r + z\) branches, whereas v has \(\le r+z-1\) in-neighbours, so at least one in-neighbour must be repeated in the tree. Hence v is an out-neighbour of r(u). Evidently \(d^-(v) = z-1\), for otherwise more than one in-neighbour of v would be repeated and the defect of G would be at least two. The cases \(u \sim v, u \rightarrow v\) and \(u = v\) can be dealt with similarly. \(\square \)

Corollary 2.3

\(\displaystyle \sum _{v' \in S' }(d^-(v')-z) = \sum _{v \in S} (z - d^-(v)) = |S|\).

Proof

By Lemma 2.1, the average directed in-degree must be z. The final equality follows from Lemma 2.2. \(\square \)

Lemma 2.4

For all \(u \in V(G)\) we have \(S' \subseteq r(N^+(u))\).

Proof

Let \(v' \in S', u \in V(G)\). Suppose that \(d(u,v') = 2\). Then \(u \not \in N^-(v')\). There are \(r+z\) branches of the Moore tree at u, but \(v'\) has \(\ge r+z+1\) in-neighbours, so at least one branch contains more than one in-neighbour of \(v'\), so that \(v' \in r(N^+(u))\). The remaining cases are similar. \(\square \)

Lemmas 2.2 and 2.4 not only yield important information on the structure of G, but also show that the order of both sets \(S,S'\) is bounded above by \(r+z\). A counting argument will now allow us to ascertain the exact size of S.

Lemma 2.5

If \(S \not = \emptyset \), then \(|S| = r+z\).

Proof

Let \(v \in S\). By Lemma 2.2 we have \(d^-(v) = z-1\). We obtain an upper bound on the number of vertices that are initial points of paths of length \(\le 2\) that terminate at v by assuming that \(S' \subseteq N^-(v)\). As G has diameter two, this yields by Corollary 2.3

$$\begin{aligned} n \le 1+r+(z-1)+r(r+z-1)+(z-1)(r+z)+|S|. \end{aligned}$$

Rearranging, \(|S| \ge r+z\). Combined with the result of Lemma 2.2, we see that \(|S| = r+z\). \(\square \)

Corollary 2.6

If \(S \not = \emptyset \), then \(S = N^+(r(u))\) for all \(u \in V(G)\).

We say that a vertex w is a repeat in G if there exists a vertex u such that \(r(u) = w\). The preceding corollary allows us to determine both the value of the undirected degree r and the number of distinct repeats in G.

Lemma 2.7

If G is not totally regular, then \(r = 2\) and there are exactly two repeats.

Proof

Suppose that there is only one repeat, call it R. As R is the only repeat, we must have \(r(R) = R\). It is easily seen that there must be \(u \in N^+(R)\) such that \(R \rightarrow u \rightarrow R\). But u now lies in a 2-cycle and hence is a repeat, contradicting our hypothesis. Hence G has at least two repeats, call them \(R_1\) and \(R_2\).

If \(r = 1\), then G contains a perfect matching, so that G must have even order, whereas \(|V(G)| = z^2+3z+1\) would be odd. Suppose that \(r \ge 3\). By Corollary 2.6, \(N^+(R_1) = N^+(R_2) = S\). \(R_1\) thus has at least \(r \ge 3\) paths of length two to \(R_2\), as shown in Fig. 3, contradicting \(\delta = 1\). Therefore \(r = 2\). By the foregoing reasoning, \(r(R_1) = R_2\) and \(r(R_2) = R_1\). If there were a third repeat \(R_3\), this argument could be repeated with \(R_3\) in place of \(R_2\) to give \(r(R_1) = R_3\), so that \(R_2 = R_3\), a contradiction. Therefore there are exactly two repeats \(R_1\) and \(R_2\). \(\square \)

Fig. 3
figure 3

If \(r \ge 3\)

This provides us with all of the structural information necessary to complete our proof. We now adopt a spectral approach.

Theorem 2.8

Almost mixed Moore graphs with diameter two are totally regular.

Proof

Suppose that there are \(m_1\) vertices with repeat \(R_1\) and \(m_2\) vertices with repeat \(R_2\); we shall call vertices with repeat \(R_i\)Type i. Let us label the vertices of G\(u_1,u_2,\dots , u_n\), so that \(u_1 = R_1, u_2 = R_2\), \(u_{2+s}\) is Type 2 for \(1 \le s \le m_2-1\) and \(u_{1+m_2+t}\) is Type 1 for \(1 \le t \le m_1-1\). If A is the adjacency matrix of G, the (ij)-entry of the sum \(I + A + A^2\) is the number of distinct walks of length \(\le 2\) from vertex \(u_i\) to vertex \(u_j\). A vertex u has a unique walk to every other vertex of G, with the following two exceptions: u has one extra walk to its repeat r(u) and \(r = 2\) walks of length two to itself (in addition to the trivial walk of length zero) formed by following an incident edge and then retracing it. Hence

$$\begin{aligned} I + A + A^2 = J + 2I + P, \end{aligned}$$

where I is the \(n \times n\) identity matrix, J is the \(n \times n\) all-one matrix and P is the matrix with entries given by

$$\begin{aligned} P_{ij}={\left\{ \begin{array}{ll} 1, &{} \hbox { if}\ r(u_i) = u_j.\\ 0, &{} \text {otherwise}. \end{array}\right. } \end{aligned}$$
(1)

Observe that all non-zero entries of P occur in the first two columns. Inspection shows that the matrix \(J+P\) has the following eigenvalues:

  1. (i)

    eigenvalue \(n+1\) with multiplicity one.

    Corresponding eigenvector: all-one vector of length n.

  2. (ii)

    eigenvalue \(-1\) with multiplicity one.

    Corresponding eigenvector:

    $$\begin{aligned} f(u_j)= {\left\{ \begin{array}{ll} 1, &{} \text {if }u_j\hbox { is Type 1 },\\ -(m_1+1)/(m_2+1), &{} \text {if }u_j\hbox { is Type 2 }. \end{array}\right. } \end{aligned}$$
    (2)
  3. (iii)

    eigenvalue 0 with multiplicity \(n-2\).

    Corresponding eigenvectors:

    $$\begin{aligned} f_i(u_j)= {\left\{ \begin{array}{ll} 1, &{} \hbox { if}\ j = i+2,\\ -1, &{} \hbox { if}\ j=n, \\ 0, &{} \text {otherwise}, \end{array}\right. } \end{aligned}$$
    (3)

    for \(1 \le i \le n-3\) and

    $$\begin{aligned} g(u_j)= {\left\{ \begin{array}{ll} 1, &{} \hbox {if } j = 1 \hbox { or } 2,\\ -3, &{} \hbox { if } j = n, \\ 0, &{} \text {otherwise}. \end{array}\right. } \end{aligned}$$
    (4)

It follows that \(I+A+A^2\) has spectrum \(\{ n+3, 1, 2^{(n-2)}\} \). If f is a polynomial and A is a matrix with spectrum \(\{ \lambda _1, \dots , \lambda _n\} \) (with multiplicity), then the spectrum of f(A) is \(\{ f(\lambda _1), \dots , f(\lambda _n)\}\) (with multiplicity). Therefore we can write the spectrum of G as \(\sigma (G) = \{ \lambda _1 , \dots , \lambda _n\} \), where

  • \(\lambda _1\) is a solution of \(\lambda ^2 + \lambda -(n+2) = 0\)

  • \(\lambda _2\) is a solution of \(\lambda ^2 + \lambda = 0\)

  • \(\lambda _i\) is a solution of \(\lambda ^2 + \lambda - 1 = 0\) for \(3 \le i \le n\).

The solutions of the first equation are \(\lambda _1 = \frac{-1 \pm \sqrt{4n+9}}{2}\). By Lemma 2.7, the order of G is \(n = z^2+5z+4\), so \(4n+9 = 4z^2+20z+25 = (2z+5)^2\), yielding \(\lambda _1 = z+2\) or \(-z-3\). Trivially \(\lambda _2 = 0\) or \(-1\). Finally the third equation has solutions \(\frac{-1 \pm \sqrt{5}}{2}\).

G has no loops, so all diagonal entries of its adjacency matrix A are zero and hence \({{\,\mathrm{Tr}\,}}(A) = 0\). The trace of A equals the sum of the eigenvalues of G, so it follows that the sum of the eigenvalues of G is also zero. In order that this sum be rational, one half of the eigenvalues \(\lambda _3, \dots , \lambda _n\) must take the plus sign and half the negative sign. The sum of the eigenvalues \(\lambda _3, \dots , \lambda _n\) is thus \(-(n/2)+ 1\). Depending upon the values of \(\lambda _1, \lambda _2\), this leaves us with four possibilities for the sum of the eigenvalues, namely \(z+3-(n/2)\), \(z+2-(n/2)\), \(-z-2-(n/2)\) and \(-z-3-(n/2)\). The final two are clearly strictly negative, whilst equating the first two expressions to zero yield no positive integer solutions for z. Therefore G must be totally regular. \(\square \)

3 Total Regularity of Almost Mixed Moore Graphs with \(r = z = 1\) and Diameter \(k \ge 3\)

The problem of the total regularity of almost mixed Moore graphs with diameter \(k \ge 3\) is difficult and we consider it here only in the case \(r = z = 1\). Let G be a \((1,1,k;-1)\)-graph that is not totally regular. Trivially, G is out-regular, so that every vertex u has a unique undirected neighbour, which we will denote by \(u^*\), and a unique directed out-neighbour, which will be written \(u^+\). For these parameters \(S = \{ v \in V(G) : d^-(v) = 0\} \), \(S' = \{ v' \in V(G) : d^-(v') \ge 2\} \); hence vertices in S have no directed in-neighbours, i.e. \(Z^-(v) = \varnothing \) for \(v \in S\).

Let \(F_0 = F_1 = 1, F_2 = 2, F_3 = 3, F_4 = 5 \dots \) be the sequence of Fibonacci numbers. It is easily verified that G has order \(n = F_{k+3}-3\). Since the order of G must be even, no almost mixed Moore graph exists with these parameters for \(k \equiv 2 \pmod 3\). We will draw a Moore tree rooted at a vertex u as shown in Fig. 4 for \(k = 5\). In general, for \(0 \le \ell \le k-1\) the children in level \(\ell +1\) of a vertex at level \(\ell \) of the tree are drawn below it, with the undirected neighbour (if the vertex has its undirected neighbour at level \(\ell +1\) and not \(\ell -1\)) to the left and the directed out-neighbour on the right, where vertices are labelled \(u_0, u_1 \dots \) etc. in increasing order from top to bottom and left to right. This process is continued until the tree reaches depth k.

Fig. 4
figure 4

The Moore tree for \(r = z = 1\) and \(k = 5\)

We begin with an elementary consideration on the length of the paths from a vertex to its repeat.

Lemma 3.1

If there are two distinct mixed paths \(P_1, P_2\) from x to y of length \(\le k\), then at least one of them has length k.

Proof

Suppose that there are mixed paths \(P_1 \not = P_2\) from x to y and that both paths have length \(\le k-1\). Draw the Moore tree of depth k rooted at x. Note that y appears twice in this tree, as does \(y^+\), so that the defect would be at least two. \(\square \)

Colloquially, there cannot be two ‘short’ mixed paths between any pair of vertices.

Corollary 3.2

No \(v \in S\) is a repeat and S is an independent set.

Proof

Let \(v \in S\). Suppose that there exists a vertex u such that \(v = r(u)\). If \(u \not = v\), then u must have two paths of length \(\le k-1\) to \(v^*\), contradicting Lemma 3.1. If \(u = v\), then v is contained in a mixed cycle of length \(\le k\), so that there are again two short paths from v to \(v^*\).

By definition no arc can have both endpoints in S. If there are \(v, w \in S\) such that \(v \sim w\), then no other vertex of G would be able to reach v or w. Hence S is independent. \(\square \)

We next deduce the relationship between repeats and the undirected neighbours of elements of S.

Lemma 3.3

For every vertex u of G and \(v \in S\), either \(v^* = r(u)\) or \(v^* = r(u^*)\).

Proof

Draw the Moore tree rooted at u. As \(u_2 = u^+\) has a directed in-neighbour, obviously \(u_2 \not \in S\). G has diameter k and so, since \(u_2\) can reach v only through \(v^*\), we have \(d(u_2,v^*) \le k-1\). If \(u = v\), then \(u_1 = v^*\), so that \(v^*\) occurs in both branches and \(v^* = r(u)\). If v belongs to the \(u_1\)-branch, then either \(v^*\) also lies in that branch or \(u = v^*\), so that again \(v^* = r(u)\). We may thus assume that v occurs only in the \(u_2\)-branch.

Suppose that \(d(u_2,v) = k-1\). Then \(u_1\) cannot reach v through u and so \(v^*\) occurs in both branches of the Moore tree. Finally assume that \(d(u_2,v) \le k-2\), so that \(d(u_2,v^*) \le k-3\). As \(d(u_3,v) \le k\), it follows that \(d(u_3,v^*) \le k-1\), so that \(u_1=u^*\) has two mixed paths to \(v^*\) with length \(\le k\), one through \(u_3\) and the other through u and \(u_2\), so that \(v^* = r(u^*)\). \(\square \)

This yields an upper bound on the size of S.

Corollary 3.4

\(|S| \le 2\).

Proof

Obviously \(|S| \le |\{ v^* : v \in S\} |\). Fix a vertex u. By Lemma 3.3, \(\{ v^* : v \in S\} \subseteq \{ r(u),r(u^*)\} \). \(\square \)

As the average directed in-degree of vertices in G is one, Corollary 3.4 shows that there are three possible situations:

  1. (i)

    \(S = \{ v\}\), \(S' = \{ v'\}\), \(d^-(v') = 2\);

  2. (ii)

    \(S = \{ v,w\}\), \(S' = \{ v'\}\), \(d^-(v') = 3\);

  3. (iii)

    \(S = \{ v,w\}\), \(S' = \{ v',w'\}\), \(d^-(v') = d^-(w') = 2\).

We complete the proof of the theorem by examining these cases in turn. Observe that in the final two cases, \(v^* \not = w^*\), \(\{ v^*,w^*\} \cap \{ v,w\} = \varnothing \) by Corollary 3.2 and \(r(u) \in \{ v^*,w^*\} \) for all \(u \in V(G)\) by Lemma 3.3.

Theorem 3.5

\((1,1,k;-1)\)-graphs are totally regular for \(k \ge 3\).

Proof

We refer the reader to Fig. 4 for clarity. Suppose that option (i) holds. By Corollary 3.2 each vertex has a unique mixed path of length \(\le k\) to v. We therefore obtain an upper bound on the order of G by assuming that \(v' \sim v\) and counting the vertices with paths of length \(\le k\) to v. There are \(M(1,1,k-2) = F_{k+1}-2\) vertices that can reach each of the directed in-neighbours of \(v'\) by paths of length \(\le k-2\), so, counting also v and \(v'\), the maximum possible order of G would be \(2(F_{k+1}-2)+2 = 2F_{k+1}-2\), which is too small for \(k \ge 3\).

Now let us examine option (ii). We can see that \(v'\) is a repeat as follows. Draw the Moore tree rooted at \(v'\). We can assume that \(r(v') \not = v'\), so that all directed in-neighbours of \(v'\) lie at distance k from \(v'\). One branch of the Moore tree must contain two elements of \(Z^-(v')\), so that \(v'\) is the repeat of a vertex in \(N^+(v')\).

As all repeats lie in \(\{ v^*,w^*\} \), we can set \(v' = v^*\). Hence \(d^-(w^*) = 1\). If \(k = 3\), then w has a unique in-neighbour \(w^*\), which in turn has a unique directed in-neighbour; hence at most 7 vertices can reach w by paths of length \(\le 3\), this bound being achieved when \(v' \in N^-(w^*)\), whereas \(M(1,1,3)-1 = 10\). Thus \(k \ge 4\). Draw the Moore tree rooted at v. Then \(v_1 = v'\). Neither \(v_3\) nor \(v_7\) is equal to \(v'\), or there would be a cycle of length \(\le 2\) through \(v'\), contradicting Lemma 3.1. Hence, since \(v_2\) can reach both of these vertices by paths of length \(\le k\), but all vertices in \(N^-(v_3) = \{ v_1,v_6\} \) and \(N^-(v_7) = \{ v_3,v_{12}\} \) already appear in the \(v_1\)-branch, r(v) must occur in both \(N^-(v_3)\) and \(N^-(v_7)\), so that \(v_1 = v'\) has two short paths to r(v) in violation of Lemma 3.1.

Finally assume that (iii) holds. As in (ii), we can show that both \(v'\) and \(w'\) are repeats, so we can take \(v^* = v'\) and \(w^* = w'\). If \(k = 3\), counting initial vertices of paths of length \(\le 3\) to v shows that the order of G is at most 9, whereas \(|G| = 10\). Similarly, if \(k = 4\) using \(w' = w^*\) we see that the order is at most 16, whereas \(|G| = 18\). Assume that \(k \ge 5\) and let u be an arbitrary vertex. Consider \(u_3, u_7, u_{11}\) and \(u_{13}\). A directed in-neighbour and the undirected neighbour of each of these vertices already occur in the \(u_1\)-branch. However, \(u_2\) can reach all of these vertices by paths of length \(\le k\). Therefore

  • if \(u_3 \not \in S'\), then \(r(u) \in \{ u_1,u_6\} \);

  • if \(u_7 \not \in S'\), then \(r(u) \in \{ u_3,u_{12}\} \);

  • if \(u_{11} \not \in S'\), then \(r(u) \in \{ u_6,u_{19}\} \);

  • if \(u_{13} \not \in S'\), then \(r(u) \in \{ u_7,u_{22}\} \).

By Lemma 3.1 the above sets are disjoint, with the exception of \(\{ u_1,u_6\} \) and \(\{ u_6,u_{19}\} \). Hence the five sets \(\{ u_3,u_7\} , \{ u_3,u_{13}\} , \{ u_7,u_{11}\} , \{ u_7,u_{13}\} \) and \(\{ u_{11},u_{13}\} \) intersect \(S'\). These vertices are distinct and \(|S'| = 2\), so the only solution is \(S' = \{ u_7,u_{13}\} \), \(u_3,u_{11} \not \in S'\). Thus \(r(u) \in \{ u_1,u_6\} \cap \{ u_6,u_{19} \} \), so \(r(u) = u_6\). All repeats lie in \(\{ v^*,w^*\} = S' = \{ u_7,u_{13}\} \), so \(u_6 \in \{ u_7,u_{13}\} \), contradicting Lemma 3.1\(\square \)

4 Total Regularity of 2-Geodetic Mixed Graphs with Excess One

We turn now to the question of the total regularity of mixed graphs with small excess. A mixed graph is an \((r,z,k;+\epsilon )\)-graph if it has minimum undirected degree \(\ge r\), minimum directed out-degree \(\ge z\), is k-geodetic and has order equal to \(M(r,z,k) + \epsilon \); \(\epsilon \) is the excess of G. We will show that \((r,z,2;+1)\)-graphs are totally regular.

Let G be an \((r,z,2;+1)\)-graph that is not totally regular. G has order \((r+z)^2+z+2\) and it can be shown in the manner of Lemma 2.1 that G is out-regular. It follows that for every vertex u of G there is a unique vertex o(u) that cannot be reached by a path of length \(\le 2\) from u. We call o(u) the outlier of u. If W is a set of vertices then o(W) is the multiset of outliers of elements of W. The proof of the next lemma is similar to that of Lemma 2.2 and hence is omitted.

Lemma 4.1

\(\displaystyle S\subseteq \bigcap _{u \in V(G)} o(N^+(u))\), \(\displaystyle S' \subseteq \bigcap _{u \in V(G)} N^+(o(u))\) and \(d^-(v') = z+1\) for all \(v' \in S'\).

Lemma 4.2

\(S' = N^+(o(u))\) for all \(u \in V(G)\) and \(S \subseteq N^-(v')\) for all \(v' \in S'\).

Proof

Fix \(v' \in S'\). By 2-geodecity, every vertex has at most one path of length \(\le 2\) to \(v'\). By Lemma 4.1, \(S'\) is contained in the out-neighbourhood of any outlier, so by 2-geodecity no element of \(S'\) is an outlier. Hence we obtain a lower bound for the order of G by assuming that \(S \subseteq N^-(v')\) and counting paths of length \(\le 2\) to \(v'\), yielding

$$\begin{aligned} |V(G)| \ge 1+r+z+1+r(r-1+z)+(z+1)(r+z)-|S'|. \end{aligned}$$

Rearranging, we obtain \(|S'| \ge r+z\). By Lemma 4.1, \(r+z\) is also an upper bound on the size of \(S'\). The resulting equality implies the second half of the result. \(\square \)

Theorem 4.3

All \((r,z,2;+1)\)-graphs are totally regular.

Proof

Trivially, G contains at least two distinct outliers \(o_1\) and \(o_2\). If G is not totally regular, then by Lemma 4.2, \(N^+(o_1) = N^+(o_2)\,(=S')\). Suppose that \(r \ge 2\); then there are two distinct paths of length two from \(o_1\) to \(o_2\), contradicting 2-geodecity. Therefore \(r = 1\). However, this implies that G contains a perfect matching and hence has even order, whereas the order \(z^2+3z+3\) is odd. Therefore G must be totally regular. \(\square \)

5 Total Regularity of \((r,1,k;+1)\)-Graphs for \(k \ge 3\)

As in the case of almost mixed Moore graphs, total regularity for \(k \ge 3\) is a more difficult problem. We solve it for \(z = 1\). Let G be an \((r,1,k;+1)\)-graph that is not totally regular, where \(k \ge 3\). Trivially G is out-regular. As before, for any vertex u the unique directed out-neighbour of u will be written \(u^+\). We first make an observation concerning the relationship between the position of vertices in the Moore tree rooted at u and the outlier of the vertex \(u^+\).

Lemma 5.1

Draw the Moore tree of depth k for an arbitrary vertex u. Let w be such that \(d(u,w) \le k-1\) and the mixed path from u to w does not begin with a directed arc (this includes the possibility \(w = u\)). Then if either

  1. (i)

    \(w \in S\) or

  2. (ii)

    \(w \not \in S'\) and w appears in the Moore tree as the terminal point of an arc,

then \(w = o(u^+)\).

Proof

Condition (ii) is illustrated in Fig. 5, where dotted rectangles represent trees of depth \(k - 1 \ge 2\). We suppose that \(w\notin S'\); in-neighbours of w are shown in black. If w satisfies either of these conditions (i) or (ii), then, as in Fig. 5, every vertex of \(N^-(w)\) appears in the undirected branches of the tree. In particular, if \(w = u \in S\), then u has no in-neighbours apart from those in \(U(u) = N^+(u)-\{ u^+\} \). Therefore by k-geodecity there are no in-neighbours of w within distance \(k-1\) of \(u^+\), so that \(d(u^+,w) > k\). \(\square \)

Fig. 5
figure 5

Diagram for Lemma 5.1

Corollary 5.2

\(o(v^+) = v\) for all \(v \in S\).

Proof

As \(v \in S\), all of the in-neighbours of v are contained in undirected branches of the Moore tree rooted at v. Therefore by Lemma 5.1 the outlier of \(v^+\) must be v itself. \(\square \)

We may now deduce the relative size of the sets S and \(S'\) and restrict the existence of edges and arcs in \(S \cup S'\).

Lemma 5.3

\(|S| = |S'|\) and \(o(v') \in Z^-(v')\) for all \(v' \in S'\).

Proof

Every vertex in S has directed in-degree zero. Let \(v'\) be a vertex in \(S'\) and consider the Moore tree of depth k rooted at \(v'\). By k-geodecity, none of the \(r+1\) branches of the tree can contain more than one in-neighbour of \(v'\), so it follows that \(d^-(v') = 2\) and \(o(v')\) lies in \(Z^-(v')\). As the average directed in-degree of G is one, S and \(S'\) must have the same size. \(\square \)

Lemma 5.4

S is an independent set. For each \(v \in S\) we have \(v^+ \in S'\).

Proof

By definition S contains no arc. Suppose that \(v \sim w\), where \(v, w \in S\). Draw the Moore tree of depth k rooted at v. By Corollary 5.2, \(o(v^+) = v\). But as \(w \in S\) is at distance \(\le k-1\) from v and lies in an undirected branch, Lemma 5.1 implies that w would also be an outlier of \(v^+\), so that \(v = w\), which is impossible. Suppose now that \(v \rightarrow w\), where \(v \in S\) and \(d^-(w) = 1\). Let \(u \in U(v)\), so that there is a path \(u \sim v \rightarrow w\). Applying Lemma 5.1 to u shows that both v and w would be outliers of \(u^+\), again a contradiction. Thus \(v^+ \in S'\) for all \(v \in S\). \(\square \)

These lemmas allow us to readily deduce the total regularity of \((r,1,k;+1)\)-graphs for \(k \ge 4\).

Theorem 5.5

\((r,1,k;+1)\)-graphs are totally regular for \(k \ge 4\).

Proof

Let \(v \in S\). We know from Lemma 5.4 that v has no out-neighbours in S and that \(v^+ \in S'\). We now show that in fact all out-neighbours of v lie in \(S'\). Suppose for a contradiction that there is an edge \(v \sim w\), where \(d^-(w) = 1\). Choose a path \(x \sim y \rightarrow w\). Applying Lemma 5.1 to the Moore tree rooted at x shows that v and w would both be outliers of \(x^+\), an impossibility. Hence there can be no such edge and so \(U(v) \subseteq S'\) for all \(v \in S\). S and \(S'\) have the same size by Lemma 5.3, so we also have \(U(v') \subseteq S\) for all \(v' \in S'\).

Let \(v \in S\) and draw the Moore tree of depth k rooted at v. Recall that \(o(v^+) = v\). Let \(v' \in S' \cap U(v)\). Observe that \((v')^+\) appears as the terminal point of an arc in an undirected branch of the tree, so by Lemma 5.1\((v')^+\) must be in \(S'\), or it would be another outlier of \(v^+\). Hence \(U((v')^+) \subseteq S\), so \((v')^+\) has an undirected neighbour w in S at level three of the tree. This situation is depicted in Fig. 6. By Lemma 5.1, w must be the outlier of \(v^+\), so \(w = v\), in violation of k-geodecity. Therefore G must be totally regular. \(\square \)

Fig. 6
figure 6

Diagram for Theorem 5.5 for \(k \ge 4\)

The case \(k = 3\) is more challenging. For the remainder of this section, assume G to be an \((r,1,3;+1)\)-graph that is not totally regular. We first establish an upper bound on the size of the sets S and \(S'\).

Lemma 5.6

\(|S| = |S'| \le r+2\).

Proof

Fix \(v \in S\). Drawing a Moore tree rooted at \(v^+\) and applying Lemma 5.1, we see that at most one element of S is contained in \(N^+(v^+)\), for any such vertex in \(U(v^+)\) would be an outlier of \((v^+)^+\). Now considering the Moore tree rooted at v, we see from Lemma 5.1 that any element of S lying in an undirected branch of the tree lying at distance \(\le 2\) from v would be an outlier of \(v^+\), whereas we already know from Corollary 5.2 that \(o(v^+) = v\); it follows by 3-geodecity that there can be at most 2 vertices of S at distance \(\le 2\) from v, including v itself.

Now let w be a vertex of S that lies at distance \(\ge 3\) from v. There are more branches in the Moore tree rooted at v than there are in-neighbours of w, so there must be an out-neighbour x of v such that the branch of the Moore tree associated with x contains no in-neighbour of w, yielding \(o(x) = w\). Since \(o(v^+) = v\), we can in fact say that \(x \in U(v)\). Therefore \(\{ w \in S : d(v,w) \ge 3\} \subseteq \{ o(x) : x \in U(v)\} \). It follows that there are at most r vertices of S lying at distance \(\ge 3\) from v. In total, there are thus at most \(r+2\) vertices in S. \(\square \)

Lemma 5.7

\(r = 2\).

Proof

Draw the Moore tree of depth 3 rooted at some \(v \in S \), numbering vertices in accordance with our convention. Suppose that \(r = 1\). As \(v_3\) is not the outlier of \(v_2 = v^+\), we must have \(v_3 \in S'\) by Lemma 5.1. By Lemma 5.3, \(o(v_3) \not = v\), for otherwise there would be an arc from v to \(v_3\), so that \(v_3\) can reach v by a mixed path of length \(\le 3\). As \(v_1\) is the only in-neighbour of v, it follows that there would be a \(\le 3\)-cycle through \(v_1\). Hence \(r \ge 2\).

There are exactly r vertices that v can reach by paths of length two consisting of an edge followed by an arc, each of which must lie in \(S'\), as none are outliers of \(v^+\). Examine the r vertices that \(v^+\) can reach by paths of this form; any of these vertices which do not lie in \(S'\) must be an outlier of \((v^+)^+\), so at least \(r-1\) of them belong to \(S'\). Along with \(v^+\), we have thus identified at least \(1+r+(r-1) = 2r\) elements of \(S'\) in the tree. By Lemma 5.6, it follows that \(2r \le r+2\). \(\square \)

Theorem 5.8

\((r,1,3;+1)\)-graphs are totally regular.

Proof

By Lemma 5.7, \(r = 2\). By the argument of Lemma 5.7, \(|S| =|S'| = 4\) and each element v of S has four mixed paths of length \(\le 3\) to \(S'\), namely an arc to \(v^+\), a path of length three via \(v^+\) and two paths of length two through the undirected neighbours of v. As \(o(v^+) = v\) for \(v \in S\), distinct elements of S have distinct directed out-neighbours in \(S'\), so there must be \(v,w \in S\) and \(v' \in S'\) such that there are paths \(v \sim x \rightarrow v'\) and \(w \sim y \rightarrow v'\) for some vertices xy. It follows from Lemma 5.1 that \(x \not = y\). Every vertex of \(S'\) has a directed in-neighbour in S and \(d^-(v') = 2\), so that one of x and y lies in S, which implies that there is an edge in S, contradicting Lemma 5.4. \(\square \)

6 The Unique \((2,1,2;+1)\)-Graph

In [7] it is proven that there is a unique almost mixed Moore graph with diameter \(k = 2\) and degree parameters \(r = 2, z = 1\). At the time it was unknown whether such a graph must be totally regular. Using our total regularity result Theorem 4.3 we will now prove that there is a unique 2-geodetic mixed graph with the same degree parameters \(r = 2, z = 1\) and excess \(\epsilon = 1\).

Let \(D_{12} = \langle x,y : x^6 = y^2 = e, yxy^{-1}=x^{-1}\rangle \) be the dihedral group with order 12. It is easily verified that the Cayley graph on \(D_{12}\) with generating set \( \{ x^2, y,xy\} \), where the generator \(x^2\) is associated with arcs and the involutions yxy with edges, is a \((2,1,2;+1)\)-graph. It is displayed in Fig. 7. We will now prove that this \((2,1,2;+1)\)-graph is unique up to isomorphism. Hence let G be an arbitrary graph with these parameters.

Fig. 7
figure 7

The unique 2-geodetic mixed graph with \(r= 2, z = 1\) and excess \(\epsilon = 1\)

By Theorem 4.3, \(G^U\) is 2-regular and \(G^Z\) is diregular with degree \(z = 1\). By 2-geodecity, \(G^U\) cannot contain any cycle of length \(\le 4\). Hence there are three possibilities: (i) \(G^U \cong C_5 \cup C_7\), (ii) \(G^U \cong 2C_6\) and (iii) \(G^U \cong C_{12}\).

Lemma 6.1

If \(d_U(u,v) \le 3\), then u and v are independent in \(G^Z\).

Proof

The result is trivial if \(d_U(u,v) = 1\). If \(d_U(u,v) = 2\), then any arc between u and v would violate 2-geodecity. Similarly, if \(d_U(u,v) = 3\) and \(u \rightarrow v\), there is a path \(u \sim u_1 \sim u_2 \sim v\), so that there are paths \(u_1 \sim u \rightarrow v\) and \(u_1 \sim u_2 \sim v\), which again is impossible. \(\square \)

Lemma 6.2

\(G^U \cong C_{12}\).

Proof

Suppose that \(G^U \cong C_5 \cup C_7\). By Theorem 4.3, there must be an arc with both endpoints in \(C_7\). However, these endpoints are at distance at most three in \(G^U\), contradicting Lemma 6.1.

Now suppose that \(G^U \cong 2C_6\). We shall label the vertices of G (ir), where \(i \in {\mathbb {Z}}_6\) and \( r= 0,1\), so that \((i,r) \sim (i\pm 1,r)\), where addition is carried out modulo 6. By Lemma 6.1, any arc must have its initial and terminal points in different cycles of \(G^U\) and by Theorem 4.3 arcs that begin at distinct vertices of one cycle have distinct endpoints. Without loss of generality, \((0,0) \rightarrow (3,1)\). As (0, 0) can already reach the vertices (1, 0), (2, 0), (5, 0) and (4, 0) by paths in \(G^U\) of length \(\le 2\), by 2-geodecity we must have \((3,1) \rightarrow (3,0)\). Continuing in this manner, we deduce the existence of the 4-cycle \((0,0) \rightarrow (3,1) \rightarrow (3,0) \rightarrow (0,1) \rightarrow (0,0)\). Now (0, 0) can reach the vertices (3, 1), (2, 1) and (4, 1) by paths of length \(\le 2\), so either \((1,0) \rightarrow (1,1)\) or \((1,0) \rightarrow (5,1)\); by symmetry, we can set \((1,0) \rightarrow (5,1)\). We now deduce the existence of the cycle \((1,0) \rightarrow (5,1) \rightarrow (4,0) \rightarrow (2,1) \rightarrow (1,0)\). But now \((5,0) \not \rightarrow (4,1)\), or we would have \((0,0) \rightarrow (3,1) \sim (4,1)\) and \((0,0) \sim (5,0) \rightarrow (4,1)\), and likewise \((5,0) \not \rightarrow (1,1)\), or else \((4,0) \rightarrow (2,1) \sim (1,1)\) and \((4,0) \sim (5,0) \rightarrow (1,1)\). It follows that \(G^U\) is a twelve-cycle. \(\square \)

Theorem 6.3

The \((2,1,2;+1)\)-graph in Fig. 7 is unique up to isomorphism.

Proof

By Lemma 6.2, \(G^U\) is a 12-cycle. We will label its vertices by the elements of \({\mathbb {Z}}_{12}\), so that \(i \sim i\pm 1\) for \(i \in {\mathbb {Z}}_{12}\), where addition is modulo 12. By Lemma 6.1, for each \(i \in {\mathbb {Z}}_{12}\) we have \(i \rightarrow i+r\), for some r in the range \(4 \le r \le 8\). Suppose that for some i we have \(i \rightarrow i+6\), say \(0 \rightarrow 6\). Then 6 is not adjacent to any vertex in \(\{ 3,4,5,6,7,8,9\} \) by Lemma 6.1. Also 0 can already reach every vertex in \(\{ 10,11,0,1,2\} \) by undirected paths of length \(\le 2\), so by 2-geodecity the arc from 6 also cannot terminate in this set. Thus \(i \not \rightarrow i+6\) for all \(i \in {\mathbb {Z}}_{12}\).

Suppose now that there are vertices uv such that \(d_U(u,v)=5\) and \(u \rightarrow v\); without loss of generality, let \(0 \rightarrow 5\). By 2-geodecity, \(5 \not \rightarrow 10,11,0,1\) or 2 and by Lemma 6.1, \(5 \not \rightarrow 3,4,5,6,7\) or 8. Thus \(5 \rightarrow 9\). Consider the vertices that could be the directed in-neighbour of 0. By Lemma 6.1 none of the vertices 9, 10, 11, 1, 2 or 3 can have an arc to 0. The vertices 4, 6 and 7 can already reach 5 by undirected paths of length \(\le 2\), so, as \(0 \rightarrow 5\), none of these vertices has an arc to 0. Therefore \(8 \rightarrow 0\). Finally we turn to the vertex 1. By Lemma 6.1, 1 cannot have an arc to any of 10, 11, 2, 3 or 4. If \(1 \rightarrow 8\), then 1 would have two paths \(1 \sim 0\) and \(1 \rightarrow 8 \rightarrow 0\) to 0. Similarly, if \(1 \rightarrow 6\) then 1 would have two paths to 5. Thus \(1 \rightarrow 7\). However, \(7 = 1+6\), contradicting our previous result.

Therefore for each \(i \in {\mathbb {Z}}_{12}\) we have \(i \rightarrow i\pm 4\). By symmetry we can take \(0 \rightarrow 4\), so that we have the 3-cycle \(0 \rightarrow 4 \rightarrow 8 \rightarrow 0\). We cannot have \(1 \rightarrow 5\), or there would be two paths from 0 to 5 of length two. Therefore \(1 \rightarrow 9 \rightarrow 5 \rightarrow 1\). Applying the same reasoning to the vertices 2 and 3, we deduce that \(G^Z\) contains cycles \(2 \rightarrow 6 \rightarrow 10 \rightarrow 2\) and \(3 \rightarrow 11 \rightarrow 7 \rightarrow 3\). By Theorem 4.3 we have accounted for all edges and arcs, so it follows that G is isomorphic to the graph in Fig. 7. \(\square \)

7 Conclusion

In this paper we have settled the long-standing open problem of the total regularity of mixed graphs with diameter two and defect one and 2-geodetic mixed graphs with excess one. The usefulness of these results is already demonstrated by the relative simplicity of the proof of the uniqueness of the (2, 1, 2; 1)-graph in Fig. 7. We hope that this paper will facilitate the search for graphs with defect or excess one for \(k = 2\).

However, the question of the total regularity of mixed graphs with order close to the Moore bound for larger values of k has proven to be a more difficult problem and remains largely open. We conjecture:

Conjecture 7.1

All \((r,z,k;-1)\)- and \((r,z,k;+1)\)-graphs are totally regular.