1 Introduction

During the last years classes of directed graphs have received a lot of attention (Bang-Jensen and Gutin 2018) since they are useful in multiple applications of directed networks. For instance the class of directed co-graphs can be used in applications in the field of genetics (see Nojgaard et al. 2018). However, the field of directed co-graphs is far less well studied than the undirected version, although it has a similarly useful structure. There are multiple subclasses of undirected co-graphs which are already characterized successfully by several definitions. Among these are trivially perfect graphs (Golumbic 1978), threshold graphs (Chvátal and Hammer 1977), weakly quasi threshold graphs (Bapat et al. 2008; Nikolopoulos and Papadopoulos 2011), and simple co-graphs (Heggernes et al. 2011), see Table 2. Moreover, there are also corresponding subclasses of directed co-graphs such as e.g. the class of oriented co-graphs, which has been analyzed by Lawler (1976) and Boeckner (2018). But there are many more interesting subclasses of directed co-graphs, that are mostly not characterized until now. To close this gap we consider directed versions of threshold graphs, simple co-graphs, trivially perfect graphs and weakly quasi threshold graphs, of which each class is structurally different and interesting. To obtain completeness we take a look at the oriented versions of these classes and the related complement classes. Further, in order to get an overview of the classes, we compare the classes to each other and visualize the relations between them. All of these classes are hereditary, just like directed co-graphs, such that they can be characterized by a set of forbidden induced subdigraphs. We can even show a finite number of forbidden induced subdigraphs for the classes, that are introduced in the following. This property is very useful, for example in the case of finding an polynomial recognition algorithm for these classes.

Undirected co-graphs, i.e. complement reducible graphs, appeared independently by several authors (see Lerchs 1971; Sumner 1974) for example, while directed co-graphs were introduced 30 years later by Bechet et al. (1997). Due to their recursive structure there are problems, that are hard in general, which can be solved efficiently on (directed) co-graphs (see Bodlaender and Möhring 1993; Corneil et al. 1981, 1984; Lin et al. 1995; Gurski et al. 2020b; Bang-Jensen and Maddaloni 2014; Gurski 2017; Gurski et al. 2019b, c; Gurski and Rehs 2018b; Gurski et al. 2020a, c). That makes both graph classes particularly interesting. This paper can be seen a basis for further research on possible algorithms that are efficient for the structures of the presented graph classes.

This paper is organized as follows. After introducing some basic definitions we introduce undirected co-graphs in Sect. 3 and subclasses. Moreover, we recapitulate their relations and their characterizations by sets of forbidden subgraphs. In Sect. 4 we introduce directed and oriented co-graphs and summarize their properties. Subsequently, we focus on subclasses of directed co-graphs. We show definitions of series-parallel partial order digraphs, directed trivially perfect graphs, directed weakly quasi threshold graphs, directed simple co-graphs, directed threshold graphs and the corresponding complementary and oriented versions of these classes. Some of the subclasses already exist, others are motivated by the alike subclasses of undirected co-graphs, see Table 2. All of these subclasses can be constructed recursively by several operations. Analogously to the undirected classes, we show how these multiple subclasses can be characterized by finite sets of minimal forbidden induced subdigraphs. We continue with an analysis of the relations of the several classes. Moreover, we examine how they are related to the corresponding undirected classes. Finally in Sect. 5, we give conclusions including further research directions.

2 Preliminaries

2.1 Notations for undirected graphs

We work with finite undirected graphs \(G=(V,E)\), where V is a finite set of vertices and \(E \subseteq \{ \{u,v\} \mid u,v \in V,~u \not = v\}\) is a finite set of edges. A graph \(G'=(V',E')\) is a subgraph of graph \(G=(V,E)\) if \(V'\subseteq V\) and \(E'\subseteq E\). If every edge of E with both end vertices in \(V'\) is in \(E'\), we say that \(G'\) is an induced subgraph of digraph G and we write \(G'=G[V']\).

For a graph \(G=(V,E)\) its complement graph is defined by

$$\begin{aligned} {\text {co-}}G=(V,\{\{u,v\}~|~\{u,v\}\not \in E, u,v\in V, u\ne v\}). \end{aligned}$$

For a graph class X we define by \({\text {co-}}X=\{{\text {co-}}G ~|~ G\in X\}\).

For graph G and an integer d let dG be the disjoint union of k copies of G.

Special undirected graphs As usual we denote by

$$\begin{aligned} K_n=(\{v_1,\ldots ,v_n\},\{\{v_i,v_j\}~|~1\le i<j\le n\}), \end{aligned}$$

\(n \ge 1\) a complete graph on n vertices and by \(I_n\) an edgeless graph on n vertices, i.e. the complement graph of a complete graph on n vertices. By

$$\begin{aligned} P_n=(\{v_1,\ldots ,v_n\},\{\{v_1,v_2\},\ldots , \{v_{n-1},v_n\}\}) \end{aligned}$$

we denote a path on n vertices. See Table 1 for examples.

2.2 Notations for directed graphs

A directed graph or digraph is a pair \(G=(V,E)\), where V is a finite set of vertices and \(E\subseteq \{(u,v) \mid u,v \in V,~u \not = v\}\) is a finite set of ordered pairs of distinctFootnote 1 vertices called arcs. A vertex \(v\in V\) is out-dominating (in-dominated) if it is adjacent to every other vertex in V and is a source (a sink, respectively). A digraph \(G'=(V',E')\) is a subdigraph of digraph \(G=(V,E)\) if \(V'\subseteq V\) and \(E'\subseteq E\). If every arc of E with both end vertices in \(V'\) is in \(E'\), we say that \(G'\) is an induced subdigraph of digraph G and we write \(G'=G[V']\).

For a directed graph \(G=(V,E)\) its complement digraph is defined by

$$\begin{aligned} {\text {co-}}G=(V,\{(u,v)~|~(u,v)\not \in E, u,v\in V, u\ne v\}) \end{aligned}$$

and its converse digraph is defined by

$$\begin{aligned} G^c=(V,\{(u,v)~|~(v,u)\in E, u,v\in V, u\ne v\}). \end{aligned}$$

For a digraph class X we define by \({\text {co-}}X=\{{\text {co-}}G ~|~ G\in X\}\). For a digraph G and an integer d let dG be the disjoint union of k copies of G.

Orientations There are several ways to define a digraph \(D=(V,A)\) from an undirected graph \(G=(V,E)\), see (Bang-Jensen and Gutin 2009). If we replace every edge \(\{u,v\}\) of G by

  • one of the arcs (uv) and (vu), we denote D as an orientation of G. Every digraph D that can be obtained by an orientation of an undirected graph G is called an oriented graph.

  • one or both of the arcs (uv) and (vu), we denote D as a biorientation of G. A digraph D that we get by a biorientation of an undirected graph G is called a bioriented graph.

  • both arcs (uv) and (vu), we denote D as a complete biorientation of G. Since in this case D is well defined by G we also denote it by \(\overleftrightarrow {G}\). A digraph D that we obtain by a complete biorientation of an undirected graph G is called a complete bioriented graph.

For a given digraph \(D=(V,A)\) we define its underlying undirected graph by ignoring the directions of the edges and deleting multiple edges, i.e.

$$\begin{aligned} { und}(D)=(V,\{\{u,v\}~|~(u,v)\in A, u,v\in V\}). \end{aligned}$$

and for some class of digraphs X, let

$$\begin{aligned} { und}(X)=\{{ und}(D)~|~ D\in X\}. \end{aligned}$$

Special Directed Graphs As usual we denote by

$$\begin{aligned} \overleftrightarrow {K_n}=(\{v_1,\ldots ,v_n\},\{ (v_i,v_j) ~|~1\le i\ne j\le n\}), \end{aligned}$$

\(n \ge 1\) a bidirectional complete digraph on n vertices and by \(\overleftrightarrow {I_n}\) an edgeless graph with n vertices, i.e. the complement graph of a complete directed graph on n vertices. By

$$\begin{aligned} \overleftrightarrow {K_{n,m}}=(\{v_1,\ldots ,v_n,w_1,\ldots ,w_m\}, \{ (v_i,w_j),(w_j,v_i)~|~1\le i\le n,1\le j\le m\}), \end{aligned}$$

\(n,m \ge 1\) a bidirectional complete bipartite digraph with \(n+m\) vertices. A directed clique is a bidirectional complete digraph, such that \(K=(V,E)\) with \(E=\{(u,v) \mid u,v \in V, u \ne v \}\) holds.

Special oriented graphs By

$$\begin{aligned} \overrightarrow{P_n}=(\{v_1,\ldots ,v_n\},\{ (v_1,v_2),\ldots , (v_{n-1},v_n)\}) \end{aligned}$$

we denote the oriented path on n vertices. By

$$\begin{aligned} \overrightarrow{C_n}=(\{v_1,\ldots ,v_n\},\{ (v_1,v_2), \ldots , (v_{n-1},v_n),(v_n,v_1)\}) \end{aligned}$$

we denote the oriented cycle on n vertices. By \(T_n\) we denote a transitive tournament on n vertices.Footnote 2 By

$$\begin{aligned} \overrightarrow{K_{n,m}}=(\{v_1,\ldots ,v_n,w_1,\ldots ,w_m\}, \{(v_i,w_j)~|~1\le i\le n,1\le j\le m\}), \end{aligned}$$

\(n,m \ge 1\) we denote an oriented complete bipartite digraph on \(n+m\) vertices.

2.3 Induced subgraph characterizations for hereditary classes

The notations and results below are given in Kitaev and Lozin (2015, Chapter 2) for undirected graphs. These results can be transferred, as they also hold for directed graphs.

If classes of (di)graphs are closed under taking induced sub(di)graphs, they are called hereditary. For a (di)graph class F we define \({\text {Free}}(F)\) as the set of all (di)graphs G such that no induced sub(di)graph of G is isomorphic to a (di)graph in set F.

Theorem 1

(Kitaev and Lozin 2015) Let X be a class of (di)graphs. X is hereditary if and only if there is a set F for which holds that \({\text {Free}}(F)=X\).

A (di)graph G is a minimal forbidden induced sub(di)graph for a hereditary class X if G does not belong to X and if every proper induced sub(di)graph of G is a member of X. For a hereditary (di)graph class X let \({\text {Forb}}(X)\) be the set of all minimal forbidden induced sub(di)graphs of X.

Theorem 2

(Kitaev and Lozin 2015) For a hereditary class of (di)graphs X it holds that \(X={\text {Free}}({\text {Forb}}(X))\), where the set \({\text {Forb}}(X)\) is unique and of minimum size.

Theorem 3

(Kitaev and Lozin 2015) I holds that \({\text {Free}}(F_1)\subseteq {\text {Free}}(F_2)\) if and only if for every (di)graph \(G\in F_2\) it exists a (di)graph \(H\in F_1\) with H is an induced sub(di)graph of G.

Lemma 1

(Kitaev and Lozin 2015) Let \(X={\text {Free}}(F_1)\) and \(Y={\text {Free}}(F_2)\) be some hereditary classes of (di)graphs. Then, it holds that \(X\cap Y={\text {Free}}(F_1\cup F_2)\) and \({\text {co-}}X={\text {Free}}({\text {co-}}F_1)\).

Observation 1

Let G be a digraph with \(G\in {\text {Free}}(X)\) for a hereditary class of digraphs \({\text {Free}}(X)\) and it exists a digraph \(X^*\in X\) such that every biorientation of \({ und}(X^*)\) is in \({\text {Free}}(X)\), then it holds that \({ und}(G)\in {\text {Free}}({ und}(X^*))\).

Observation 2

Let G be a digraph such that \({ und}(G)\in {\text {Free}}(X)\) for some hereditary class of graphs \({\text {Free}}(X)\), then for all \(X^*\in X\) and all biorientations \(b(X^*)\) of \(X^*\) it holds that \(G\in {\text {Free}}(b(X^*))\).

3 Undirected co-graphs and subclasses

For the definition of co-graphs and subclasses we use the following operations. Let \(G_1=(V_1,E_1)\) and \(G_2=(V_2,E_2)\) be two vertex-disjoint graphs.

  • The disjoint union of \(G_1\) and \(G_2\), denoted by \(G_1\oplus G_2\), is the graph with vertex set \(V_1\cup V_2\) and edge set \(E_1\cup E_2\).

  • The join of \(G_1\) and \(G_2\), denoted by \(G_1\otimes G_2\), is the graph with vertex set \(V_1\cup V_2\) and edge set \(E_1\cup E_2 \cup \{\{v_1,v_2\}~|~ v_1\in V_1, v_2\in V_2\}\).

We also recall the forbidden induced subgraph characterizations for co-graphs and frequently analyzed subclasses. Therefore, the graphs in Table 1 are very useful.

Table 1 Special graphs

3.1 Co-graphs

Definition 1

(Co-graphs Corneil et al. 1981) The class of co-graphs (short for complement-reducible graphs) is defined recursively as follows.

  1. (i)

    A graph on a single vertex \((\{v\},\emptyset )\), denoted by \(\bullet \), is a co-graph.

  2. (ii)

    If \(G_1\) and \(G_2\) are co-graphs, then (a) \(G_1\oplus G_2\) and (b) \(G_1\otimes G_2\) are co-graphs.

We denote the class of co-graphs by \({\text {C}}\).

Using the recursive structure of co-graphs many problems can be solved in linear time (e.g. see Corneil et al. 1981). Further, the recursive structure allows us to compute the path-width, as well as the tree-width of co-graphs in linear time (Bodlaender and Möhring 1993).

3.2 Subclasses of co-graphs

In Table 2 we summarize co-graphs and their well-known subclasses. The given forbidden sets are known from the existing literature (Corneil et al. 1981; Golumbic 1978; Chvátal and Hammer 1977; Nikolopoulos and Papadopoulos 2011; Heggernes et al. 2011).

Table 2 Overview on subclasses of co-graphs. By \(G_1\) and \(G_2\) we denote graphs of the class X, by I we denote an edgeless graph and by K we denote a complete graph

3.3 Relations

In Fig. 1 we compare the above graph classes to each other and show the hierarchy of the subclasses of co-graphs.

Fig. 1
figure 1

Relations between the subclasses of co-graphs. If there is a path from A to B, then it holds that \(A\subset B\). The classes, that are not connected by a directed path are incomparable

4 Directed co-graphs and subclasses

At first, we introduce operations that are used in the definition of directed co-graphs from Bechet et al. (1997) and show some interesting subclasses. Let \(G_1=(V_1,E_1)\) and \(G_2=(V_2,E_2)\) be two vertex-disjoint directed graphs.Footnote 3

  • The disjoint union of \(G_1\) and \(G_2\), denoted by \(G_1 \oplus G_2\), is the digraph with vertex set \(V_1 \cup V_2\) and arc set \(E_1\cup E_2\).

  • The series composition of \(G_1\) and \(G_2\), denoted by \(G_1\otimes G_2\), is the digraph with vertex set \(V_1 \cup V_2\) and arc set \(E_1\cup E_2\cup \{(u,v),(v,u)~|~u\in V_1, v\in V_2\}\).

  • The order composition of \(G_1\) and \(G_2\), denoted by \(G_1\oslash G_2\), is the digraph with vertex set \(V_1 \cup V_2\) and arc set \(E_1\cup E_2\cup \{(u,v)~|~u\in V_1, v\in V_2\}\).

Every graph structure which can be obtained by this operations, can be constructed by a tree or even a sequence, as we could do for undirected co-graphs and threshold graphs. These trees/sequences can be used for algorithmic properties of those graphs.

4.1 Directed co-graphs

Definition 2

(Directed Co-Graphs Bechet et al. 1997) The class of directed co-graphs is recursively defined as follows.

  1. (i)

    Every digraph on a single vertex \((\{v\},\emptyset )\), denoted by \(\bullet \), is a directed co-graph.

  2. (ii)

    If \(G_1\) and \(G_2\) are directed co-graphs, then (a) \(G_1\oplus G_2\), (b)\(G_1 \otimes G_2\), and (c) \(G_1\oslash G_2\) are directed co-graphs.

The class of directed co-graphs is denoted by \({\text {DC}}\).

The recursive definition of directed and undirected co-graphs lead to the following observation.

Observation 3

For every directed co-graph G the underlying undirected graph \({ und}(G)\) is a co-graph.

The reverse direction only holds under certain conditions, see Theorem 4.

Obviously, for every directed co-graph we can define a tree structure, denoted as binary di-co-tree. While the leaves of the di-co-tree represent the vertices of the graph, the inner nodes of the di-co-tree correspond to the operations applied on the subexpressions which are defined by the associated subtrees. The construction of a binary di-co-tree for a directed co-graph is feasible in linear time (see Crespelle and Paul 2006).

From Bang-Jensen and Maddaloni (2014) we know that the weak k-linkage problem is solvable in polynomial time on directed co-graphs. The recursive structure leads to the existence of linear time dynamic programming algorithms for the computation of the size of a largest edgeless subdigraph, the size of a largest complete subdigraph, the size of a largest subdigraph that is a tournament and the size of a largest semicomplete subdigraph in directed co-graphs. Further, the hamiltonian path, hamiltonian cycle, regular subdigraph, and directed cut problem are computable in polynomial time on directed co-graphs (Gurski 2017). In addition, calculs of directed co-graphs are studied in connection with pomset logic in Retoré (1999). Recent results have also shown that directed path-width, directed tree-width, directed feedback vertex set number, cycle rank, DAG-depth and DAG-width are computable in linear time on directed co-graphs (Gurski and Rehs 2018b; Gurski et al. 2019b).

Lemma 2

(Gurski and Rehs 2018a) Let G be a digraph, then the following properties hold.

  1. 1.

    Digraph G is a directed co-graph if and only if digraph \({\text {co-}}G\) is a directed co-graph.

  2. 2.

    Digraph G is a directed co-graph if and only if digraph \(G^c\) is a directed co-graph.

Table 3 The eight forbidden induced subdigraphs for directed co-graphs

Moreover, the following properties hold for directed co-graphs:

Theorem 4

Let G be a digraph. The following properties are equivalent:

  1. 1.

    G is a directed co-graph.

  2. 2.

    \(G\in {\text {Free}}(\{D_1, \dots , D_8\})\) (see Table 3).

  3. 3.

    \(G\in {\text {Free}}(\{D_1, \dots , D_6\})\) and \({ und}(G)\in {\text {Free}}(\{P_4\})\).

  4. 4.

    \(G\in {\text {Free}}(\{D_1, \dots , D_6\})\) and \({ und}(G)\) is a co-graph.

  5. 5.

    G has directed NLC-width 1.Footnote 4

  6. 6.

    G has directed clique-width at most 2 and \(G\in {\text {Free}}(\{D_2,D_3\})\).Footnote 5

Proof

\((1)\Leftrightarrow (2)\) By Crespelle and Paul (2006).

\((3)\Leftrightarrow (4)\) Since \({\text {Forb}}({\text {C}})=\{P_4\}\).

\((1)\Leftrightarrow (5)\) By Gurski et al. (2016).

\((1)\Leftrightarrow (6)\) By Gurski et al. (2016).

\((2)\Rightarrow (4)\) By Observation 3.

\((3)\Rightarrow (2)\) by Observation 2. \(\square \)

For subclasses of directed co-graphs, which will be defined in the following subsections, some more forbidden subdigraphs are needed. Those are defined in Tables 4, 5, and 6.

Table 4 Forbidden induced subdigraphs for subclasses of directed co-graphs
Table 5 Forbidden induced subdigraphs for subclasses of directed co-graphs
Table 6 Forbidden induced subdigraphs for subclasses of directed co-graphs

Observation 4

It holds:

  1. 1.

    \(\{D_1,\ldots , D_8\}={\text {co-}}\{D_1,\ldots , D_8\}\).

  2. 2.

    \(\{D_{12},\ldots ,D_{15}\}= {\text {co-}}\{D_{12},\ldots ,D_{15}\}\).

For directed co-graphs Observation 4 leads to the next result.

Proposition 1

\({\text {DC}}={\text {co-DC}}\).

4.2 Oriented co-graphs

Beside directed co-graphs and their subclasses we also restrict these classes to oriented graphs by omitting the series operation.

Definition 3

(Oriented co-graphs) The class of oriented co-graphs is recursively defined as follows.

  1. (i)

    A digraph on a single vertex \((\{v\},\emptyset )\), denoted by \(\bullet \), is an oriented co-graph.

  2. (ii)

    If \(G_1\) and \(G_2\) are oriented co-graphs, then (a) \(G_1\oplus G_2\) and (b) \(G_1\oslash G_2\) are oriented co-graphs as well.

We denote the class of oriented co-graphs by \({\text {OC}}\).

The property of recursiveness of oriented and undirected co-graphs brings us to the following observation.

Observation 5

For every oriented co-graph G the underlying undirected graph \({ und}(G)\) is a co-graph.

The reverse direction holds only under special conditions, see Theorem 5. Oriented co-graphs were already studied by Lawler in Lawler (1976) and Corneil (1981, Section 5) where they are called transitive series parallel (TSP) digraphs. A digraph \(G=(V,A)\) is transitive if for every pair of arcs \((u,v)\in A\) and \((v,w)\in A\) with \(u\ne w\), it holds that arc (uw) is also part of A. For oriented co-graphs the oriented chromatic number and also the graph isomorphism problem can be solved in linear time (Gurski et al. 2019c, 2020c).

Lemma 3

Let G be a digraph such that \(G\in {\text {Free}}(\{\overleftrightarrow {K_2},D_1,D_5\})\) then, G is transitive.

Proof

Let \((u,v),(v,w)\in A\) be two arcs of \(G=(V,A)\). As \(G\in {\text {Free}}(\{\overleftrightarrow {K_2}\})\) it also holds that \((v,u),(w,v)\not \in A\). Additionally, since \(G\in {\text {Free}}(\{D_1,D_5\})\) it holds that \((u,w)\in A\). This implies that G is transitive. \(\square \)

Furthermore, the class \({\text {OC}}\) can be defined by forbidden subdigraphs.

Theorem 5

(Gurski et al. 2019c) Let G be a digraph. The following properties are equivalent:

  1. 1.

    G is an oriented co-graph

  2. 2.

    \(G\in {\text {Free}}(\{D_1, D_5, D_8, \overleftrightarrow {K_2}\})\).

  3. 3.

    \(G\in {\text {Free}}(\{D_1, D_5, \overleftrightarrow {K_2}\})\) and \({ und}(G)\in {\text {Free}}(\{P_4\})\).

  4. 4.

    \(G\in {\text {Free}}(\{D_1, D_5, \overleftrightarrow {K_2}\})\) and \({ und}(G)\) is a co-graph.

  5. 5.

    G has directed NLC-width 1 and \(G\in {\text {Free}}(\{\overleftrightarrow {K_2}\})\).

  6. 6.

    G has directed clique-width at most 2 and \(G\in {\text {Free}}(\{\overleftrightarrow {K_2}\})\).

  7. 7.

    G is transitive and \(G\in {\text {Free}}(\{\overleftrightarrow {K_2}, D_8\})\).

Observation 6

Every oriented co-graph is a DAG.

By the results above, we can directly obtain the following known result.

Theorem 6

(Corneil et al. 1981) A graph G is a co-graph if and only if there exists an orientation \(G'\) of G such that \(G'\) is an oriented co-graph.

4.3 Series-parallel partial order digraphs

We take a look at the definitions of from Bang-Jensen and Gutin (2018) that base on Valdes et al. (1982). A series-parallel partial order is a partially ordered set \((X,\le )\) that is constructed by the series composition and the parallel composition operation starting with a single element.

  • Let \((X_1 ,\le )\) and \((X_2 , \le )\) be two disjoint series-parallel partial orders, then distinct elements \(x,y \in X_1 \cup X_2\) of a series compositionFootnote 6 have the same order they have in \(X_1\) or \(X_2\). Respectively, this holds if both of them are from the same set, and \(x \le y\) if \(x \in X_1\) and \(y \in X_2\).

  • Two elements \(x, y \in X_1 \cup X_2\) of a parallel composition are comparable if and only if both of them are in \(X_1\) or both in \(X_2\), while they keep their corresponding order.

Definition 4

(Series-parallel partial order digraphs) A series-parallel partial order digraph \(G=(V,E)\) is a digraph, where \((V,\le )\) is a series-parallel partial order and \((u,v)\in E\) if and only if \(u \ne v\) and \(u \le v\).

We denote the class of series-parallel partial order digraphs by \({\text {SPO}}\).

For a digraph \(G=(V,E)\) an edge \((u,v)\in E\) is symmetric if \((v,u)\in E\). Thus, each bidirectional arc is symmetric. Further, an edge is asymmetric if it is not symmetric, i.e. each edge with only one direction. We define the symmetric part of G as sym(G), which is the spanning subdigraph of G that contains exactly the symmetric arcs of G. Analogously, we define the asymmetric part of G as asym(G), which is the spanning subdigraph with only asymmetric edges.

Moreover, Bechet et al. showed in Bechet et al. (1997) the following property of directed co-graphs.

Lemma 4

(Bechet et al. 1997) For every directed co-graph G it holds that the asymmetric part of G is a series-parallel partial order digraph and for the symmetric part the underlying undirected graph a co-graph.

The class of series-parallel partial ordered digraphs is equal to the class of oriented co-graphs since they have exactly the same recursive structure. Thus, this lemma is easy to prove with the following idea. Let G be a directed co-graph and \(T_G\) its corresponding di-co-tree.

  • Symmetric part Exchange each order composition with a directed union composition. Since there are no more oriented arcs left, this tree represents a co-graph.

  • Asymmetric part Exchange each series composition with a directed union composition. Since there are no more bidirectional edges left, this tree represents an oriented co-graph, e.g. a series-parallel partial order digraph.

4.4 Directed trivially perfect graphs

Definition 5

(Directed trivially perfect graphs) The class of directed trivially perfect graphs is recursively defined as follows.

  1. (i)

    Every digraph on a single vertex \((\{v\},\emptyset )\), denoted by \(\bullet \), is a directed trivially perfect graph.

  2. (ii)

    If \(G_1\) and \(G_2\) are directed trivially perfect graphs, then \(G_1\oplus G_2\) is a directed trivially perfect graph.

  3. (iii)

    If G is a directed trivially perfect graph, then (a) \(G\oslash \bullet \), (b) \(\bullet \oslash G\), and (c) \(G\otimes \bullet \) are directed trivially perfect graphs.

We denote the class of directed trivially perfect graphs by \({\text {DTP}}\).

The recursive definition of directed and undirected trivially perfect graphs lead to the following observation.

Observation 7

For every directed trivially perfect graph G the underlying undirected graph \({ und}(G)\) is a trivially perfect graph.

The reverse direction only holds under certain conditions, see Theorem 7.

Lemma 5

(Gurski et al. 2018) For every digraph G the following statements are equivalent.

  1. 1.

    G is a transitive tournament.

  2. 2.

    G is an acyclic tournament.

  3. 3.

    \(G\in {\text {Free}}(\{\overrightarrow{C_3}\})\) and G is a tournament.

  4. 4.

    G can be constructed from the one-vertex graph \(K_1\) by repeatedly adding an out-dominating vertex.

  5. 5.

    G can be constructed from the one-vertex graph \(K_1\) by repeatedly adding an in-dominated vertex.

  6. 6.

    \(G\in {\text {Free}}(\{2\overleftrightarrow {K_1},\overleftrightarrow {K_2},D_5\})\).

  7. 7.

    G is transitive and \(G\in {\text {Free}}(\{2\overleftrightarrow {K_1},\overleftrightarrow {K_2}\})\).

The class \({\text {DTP}}\) can also be defined by forbidden induced subdigraphs as the following theorem shows.

Theorem 7

Let G be a digraph. The following properties are equivalent:

  1. 1.

    G is a directed trivially perfect graph.

  2. 2.

    \(G\in {\text {Free}}(\{D_1, \dots , D_{15}\})\).

  3. 3.

    \(G\in {\text {Free}}(\{D_1,D_2,D_3,D_4,D_5,D_6,D_{10},D_{11},D_{13},D_{14}, D_{15}\})\) and \({ und}(G)\in {\text {Free}}(\{C_4,P_4\})\).

  4. 4.

    \(G\in {\text {Free}}(\{D_1,D_2,D_3,D_4,D_5,D_6,D_{10},D_{11},D_{13},D_{14}, D_{15}\})\) and \({ und}(G)\) is a trivially perfect graph.

Proof

\((1)\Rightarrow (2)\) Holds since the given forbidden digraphs \(D_1, \dots , D_{15}\not \in {\text {DTP}}\) and the set of directed trivially perfect graphs is closed under taking induced subdigraphs.

\((2)\Rightarrow (1)\) Since \(G\in {\text {Free}}(\{D_1,D_2,D_3,D_4,D_5, D_6,D_7,D_8\})\) digraph G is a directed co-graph by Crespelle and Paul (2006) and consequently, there exists a construction using disjoint union, series composition, and order composition.

As \(G\in {\text {Free}}(\{D_9,D_{10},D_{11}\})\) it holds that for every series composition between two graphs with at least two vertices at least one of the graphs has to be bidirectional complete. Such a subdigraph can be inserted by a number of operations that are allowed in directed trivially perfect graphs.

As \(G\in {\text {Free}}(\{D_{12},D_{13},D_{14},D_{15}\})\) holds, we know that for every order combination between two graphs on at least two vertices, at least one of the graphs must be a tournament. As \(G\in {\text {Free}}(\{D_{5}\})={\text {Free}}(\{C_{3}\})\) by Lemma 5 we even can say that at least one of the graphs is a transitive tournament. A digraph like this can be defined by a sequence of outdominating or indominating vertices (Lemma 5) which are also feasible operations for directed trivially perfect graphs.

\((3) \Leftrightarrow (4)\) As \({\text {Forb}}({\text {TP}})=\{C_4,P_4\}\).

\((2) \Rightarrow (4)\) By Observation 7.

\((3)\Rightarrow (2)\) By Observation 2. \(\square \)

For directed trivially perfect graphs Observation 4 with Table 4 and Table 6 lead to the next result.

Proposition 2

\({\text {DTP}}\ne {\text {co-DTP}}\)

This motivates us to consider the class of edge complements of directed trivially perfect graphs.

Definition 6

(Directed co-trivially perfect graphs) The class of directed co-trivially perfect graphs is recursively defined as follows.

  1. (i)

    Every digraph on a single vertex \((\{v\},\emptyset )\), denoted by \(\bullet \), is a directed co-trivially perfect graph.

  2. (ii)

    If \(G_1\) and \(G_2\) are directed co-trivially perfect graphs, then \(G_1\otimes G_2\) is a directed trivially perfect graph.

  3. (iii)

    If G is a directed co-trivially perfect graph, then (a) \(G\oslash \bullet \), (b) \(\bullet \oslash G\), and (c) \(G\oplus \bullet \) are directed co-trivially perfect graphs.

We denote the class of directed co-trivially perfect graphs by \({\text {DCTP}}\).

Theorem 7 and Lemma 1 lead to the following characterization for directed co-trivially perfect graphs.

Theorem 8

Let G be a digraph. The following properties are equivalent:

  1. 1.

    G is a directed co-trivially perfect graph.

  2. 2.

    \(G\in {\text {Free}}(\{D_1, \dots , D_{8},{\text {co-}}D_9,{\text {co-}}D_{10}, {\text {co-}}D_{11},D_{12},\ldots ,D_{15}\})\).

  3. 3.

    \(G\in {\text {Free}}(\{D_1,\ldots ,D_6,D_{12},\ldots ,D_{15}\})\) and \({ und}(G)\in {\text {Free}}(\{P_4,2K_2\})\).

  4. 4.

    \(G\in {\text {Free}}(\{D_1,\ldots ,D_6,D_{12},\ldots ,D_{15}\})\) and \({ und}(G)\) is a co-trivially perfect graph.

4.5 Oriented trivially perfect graphs

Definition 7

(Oriented trivially perfect graphs) The class of oriented trivially perfect graphs is recursively defined as follows.

  1. (i)

    Every digraph on a single vertex \((\{v\},\emptyset )\), denoted by \(\bullet \), is an oriented trivially perfect graph.

  2. (ii)

    If \(G_1\) and \(G_2\) are oriented trivially perfect graphs, then \(G_1\oplus G_2\) is an oriented trivially perfect graph.

  3. (iiii)

    If G is an oriented trivially perfect graph, then (a) \(G\oslash \bullet \) and (b) \(\bullet \oslash G\) are oriented trivially perfect graphs.

We denote the class of oriented trivially perfect graphs by \({\text {OTP}}\).

The recursive definition of oriented and undirected trivially perfect graphs lead to the following observation.

Observation 8

For every oriented trivially perfect graph G the underlying undirected graph \({ und}(G)\) is a trivially perfect graph.

Similar as for oriented co-graphs we obtain a definition of \({\text {OTP}}\) by forbidden induced subdigraphs.

Theorem 9

Let G be a digraph. The following properties are equivalent:

  1. 1.

    G is an oriented trivially perfect graph.

  2. 2.

    \(G\in {\text {Free}}(\{D_1, D_5, D_8, D_{12}, \overleftrightarrow {K_2}\})\).

  3. 3.

    \(G\in {\text {Free}}(\{D_1, D_5, \overleftrightarrow {K_2}\})\) and \({ und}(G)\in {\text {Free}}(\{C_4,P_4\})\).

  4. 4.

    \(G\in {\text {Free}}(\{D_1, D_5, \overleftrightarrow {K_2}\})\) and \({ und}(G)\) is a trivially perfect graph.

  5. 5.

    G is transitive and \(G\in {\text {Free}}(\{\overleftrightarrow {K_2}, D_8, D_{12}\})\).

Proof

\((1)\Rightarrow (2)\) If G is an oriented trivially perfect graph, then G is a directed trivially perfect graph and \(G\in {\text {Free}}(\{D_1, \dots , D_{15}\})\). Further \(G\in {\text {Free}}(\{\overleftrightarrow {K_2}\})\) because of the missing series composition. This leads to \(G\in {\text {Free}}(\{D_1, D_5, D_8, D_{12}, \overleftrightarrow {K_2}\})\).

\((2)\Rightarrow (1)\) If \(G\in {\text {Free}}(\{D_1, D_5, D_8, D_{12}, \overleftrightarrow {K_2}\})\), then \(G\in {\text {Free}}(\{D_1, \dots , D_{15}\})\) and is a directed trivially perfect graph. Since \(G\in {\text {Free}}(\{\overleftrightarrow {K_2}\})\) there is no series operation in any construction of G which implies that G is an oriented trivially perfect graph.

\((3) \Leftrightarrow (4)\) Since \({\text {Forb}}({\text {TP}})=\{C_4,P_4\}\).

\((2)\Rightarrow (4)\) By Observation 8.

\((3)\Rightarrow (2)\) By Observation 2.

\((2)\Rightarrow (5)\) By Lemma 3 we know that G is transitive.

\((5)\Rightarrow (2)\) If G is transitive, then G has no induced \(D_1, D_5\). \(\square \)

Theorem 10

A graph G is a trivially perfect graph if and only if there exists an orientation \(G'\) of G such that \(G'\) is an oriented trivially perfect graph.

Proof

Let G be a trivially perfect graph. Then G is also a comparability graph (see Golumbic 1980), which implies that G has a transitive orientation \(G'\). Since \(G\in {\text {Free}}(\{C_4,P_4\})\) it follows that \(G'\in {\text {Free}}(\{D_8,D_{12}\})\). Further by definition \(G'\in {\text {Free}}(\{\overleftrightarrow {K_2}\})\). By Theorem 9 we know that \(G'\) is an oriented trivially perfect graph.

For the reverse direction let \(G'\) be an oriented trivially perfect graph. Then by Theorem 9 it holds that \(G'\in {\text {Free}}(\{D_8,D_{12}\})\). Since \(D_8\) is the only transitive orientation of \(P_4\) and \(D_{12}\) is the only transitive orientation of \(C_4\) it holds that \({ und}(G)\in {\text {Free}}(\{C_4,P_4\})\). Thus, \({ und}(G)\) is a trivially perfect graph. \(\square \)

Observation 9

If \(G\in DTP\), then the underlying undirected graph of the symmetric part of G is trivially perfect and the asymmetric part of G is an oriented trivially perfect digraph.

This holds since the asymmetric part is constructed according to exactly the same rules as trivially perfect graphs and the asymmetric part is constructed according to the rules of OTP.

Definition 8

(Oriented co-trivially perfect graphs) The class of oriented co-trivially perfect graphs is recursively defined as follows.

  1. (i)

    Every digraph on a single vertex \((\{v\},\emptyset )\), denoted by \(\bullet \), is an oriented co-trivially perfect graph.

  2. (ii)

    If G is an oriented co-trivially perfect graph, then (a) \(G\oslash \bullet \), (b) \(\bullet \oslash G\), and (c) \(G\oplus \bullet \) are oriented co-trivially perfect graphs.

We denote the class of oriented co-trivially perfect graphs by \({\text {OCTP}}\).

Restricting the operations of directed co-trivially perfect graphs to oriented graphs leads to the same operations as the class of orientated threshold graphs, which will be considered in Sect. 4.15.

4.6 Directed weakly quasi threshold graphs

Definition 9

(Directed weakly quasi threshold graphs) The class of directed weakly quasi threshold graphs is recursively defined as follows.

  1. (i)

    Every edgeless digraph is a directed weakly quasi threshold graph.

  2. (ii)

    If \(G_1\) and \(G_2\) are directed weakly quasi threshold graphs, then \(G_1\oplus G_2\) is a directed weakly quasi threshold graph.

  3. (iii)

    If G is a directed weakly quasi threshold graph and I is an edgeless digraph, then (a) \(G\oslash I\), (b) \(I \oslash G\), and (c) \(G\otimes I\) are directed weakly quasi threshold graphs.

We denote the class of directed weakly quasi threshold graphs by \({\text {DWQT}}\).

Observation 10

If G is a directed weakly quasi threshold graph, \({ und}(G)\) is weakly quasi threshold graph.

Theorem 11

Let G be a digraph. The following properties are equivalent:

  1. 1.

    G is a directed weakly quasi threshold graph.

  2. 2.

    \(G\in {\text {Free}}(\{D_1,\ldots ,D_8,Q_1, \ldots , Q_7\})\)Footnote 7.

  3. 3.

    \(G\in {\text {Free}}(\{D_1,\ldots ,D_6,Q_1, Q_2, Q_4, Q_5, Q_6\})\) and \({ und}(G)\in {\text {Free}}(\{P_4,{\text {co-}}2P_3 \})\).

  4. 4.

    \(G\in {\text {Free}}(\{D_1,\ldots ,D_6,Q_1, Q_2, Q_4, Q_5, Q_6\})\) and \({ und}(G)\) is a weakly quasi threshold graph.

Table 7 Digraphs for the construction of forbidden subdigraphs of \({\text {DWQT}}\)
Table 8 Constructions of the forbidden subdigraphs of \({\text {DWQT}}\)

Proof

\((1) \Rightarrow (2)\) The forbidden digraphs \(D_1,\ldots ,D_8,Q_1, \ldots , Q_7\) are not directed weakly quasi threshold graphs and the set of directed weakly quasi threshold graphs is hereditary.

\((2) \Rightarrow (1)\) Let G be a digraph without induced \(D_1,\ldots ,D_8,Q_1, \ldots , Q_7\). As there are no induced \(D_1,\ldots ,D_8\), it holds that \(G\in {\text {DC}}\). Thus, G is constructed by the disjoint union, the series and the order composition. \(Q_1, Q_3\) and \( Q_4\) can only be constructed by a series composition of two graphs \(G_1\) and \(G_2\), where \(G_1,G_2\in \{Y_2,Y_3\}\), see Tables 7 and 8. We underline that \(Y_2, Y_3\) are contained in every directed co-graph containing more vertices, which is not a sequence of length at least one of series compositions of independent sets. Thus, there are no bigger forbidden induced subdigraphs that are constructed by a series operation, with the consequence that the \(Q_1, Q_3\) and \(Q_4\) characterize exactly the allowed series compositions in \({\text {DWQT}}\).

The only way to construct \(Q_2, Q_5, Q_6\) and \( Q_7\) is by an order composition of two graphs \(G_1\) and \(G_2\), where \(G_1,G_2\in \{Y_1,Y_4\}\). We note that \(Y_1, Y_4\) are contained in every directed co-graph containing more vertices, that is not a sequence of length at least one of order compositions of independent sets. Hence, there are no forbidden induced subdigraphs containing more vertices that are constructed by an order operation, such that the \(Q_2, Q_5, Q_6\) and \( Q_7\) characterize exactly the allowed order compositions in \({\text {DWQT}}\). Finally, by excluding these digraphs, we end up in the Definition 9 for \({\text {DWQT}}\), such that \(G\in {\text {DWQT}}\).

\((2) \Rightarrow (4)\) By Observation 10.

\((3) \Rightarrow (2)\) By Observation 2.

\((3) \Leftrightarrow (4)\) Since \({\text {Forb}}({\text {WQT}})= \{P_4, {\text {co-}}2P_3\}\). \(\square \)

Since \({\text {co-}}\{Q_1,\ldots ,Q_7\}\ne \{Q_1,\ldots ,Q_7\}\) holds, it is reasonable to introduce the complementary class of \({\text {DWQT}}\).

Table 9 Forbidden induced subdigraphs for \({\text {DWQT}}\)

4.7 Oriented weakly quasi threshold graphs

Definition 10

(Oriented weakly quasi threshold graphs) The class of oriented weakly quasi threshold graphs is recursively defined as follows.

  1. (i)

    Every edgeless digraph is an oriented weakly quasi threshold graph.

  2. (ii)

    If \(G_1\) and \(G_2\) are oriented weakly quasi threshold graphs, then \(G_1\oplus G_2\) is an oriented weakly quasi threshold graph.

  3. (iii)

    If G is an oriented weakly quasi threshold graph and I is an edgeless digraph, then (a) \(G\oslash I\) and (b) \(I \oslash G\) are oriented weakly quasi threshold graphs.

We denote the class of oriented weakly quasi threshold graphs by \({\text {OWQT}}\).

Theorem 12

Let G be a digraph. The following properties are equivalent:

  1. 1.

    G is a oriented weakly quasi threshold graph.

  2. 2.

    \(G \in {\text {Free}}(\{D_1,D_5,D_8, \overleftrightarrow {K_2},Q_7\})\).

  3. 3.

    \(G \in {\text {Free}}(\{D_8, \overleftrightarrow {K_2}, Q_7 \})\) and G is transitive.

  4. 4.

    \(G \in {\text {Free}}(\{D_1,D_5,\overleftrightarrow {K_2} \})\) and \({ und}(G)\) is a weakly quasi threshold graph.

Proof

\((1) \Rightarrow (2)\) Let G be in \({\text {OWQT}}\). Since \({\text {OWQT}}\subset {\text {OC}}\) we know that \(D_1,D_5, D_8\) and \(\overleftrightarrow {K_2}\) are forbidden. Further, since \({\text {OWQT}}\subset {\text {DWQT}}\) the graphs of Table 9 are forbidden. As \(\overleftrightarrow {K_2}\) is forbidden as well, this reduces the table and only \(Q_7\) remains. Since \({\text {OWQT}}\) is closed under taking induced subdigraphs, this holds for every digraph in this class.

\((2) \Rightarrow (1)\) Since \(D_1, D_5, D_8\) and \(\overleftrightarrow {K_2}\) are forbidden induced subdigraphs of G, it holds that G is an oriented co-graph, see Theorem 5. Consequently, G has been constructed by the operations allowed for oriented co-graphs, which are the disjoint union and the order composition. Further, \(Q_7\) is excluded since it must have been the result of an order composition. Since \(Q_7=Y_4 \oslash Y_4\) and \(Y_4\) is neither an edgeless digraph nor a transitive tournament, this order composition is not valid in \({\text {OWQT}}\) and thus, \(Q_7\) is a forbidden subdigraph. For every other possible order composition of two oriented digraphs \(G_1\) and \(G_2\), either \(G_1\) or \(G_2\) is edgeless or a transitive tournament, which is allowed in \({\text {OWQT}}\), or both graphs contain \(Y_4\) as induced subdigraph, such that the forbidden \(Q_7\) completely characterizes the restriction of the order compositions in \({\text {OWQT}}\). Since G does not contain one of these forbidden subdigraphs, \(G\in {\text {OWQT}}\) follows.

\((2) \Rightarrow (3)\) Follows by Lemma 5.

\((3) \Rightarrow (2)\) The transitivity of G implies that \(D_1\) and \(D_5\) are forbidden, as they do not satisfy the definition of transitivity.

\((2) \Leftrightarrow (4)\) Since \({\text {Forb}}({\text {WQT}})=\{P_4, {\text {co-}}2P_3\}\). \(\square \)

Observation 11

If \(G\in {\text {DWQT}}\), then the underlying undirected graph of the symmetric part of G is a weakly quasi threshold graph and the asymmetric part of G is an oriented weakly quasi threshold graph.

This holds since the asymmetric part is constructed with the same rules as weakly quasi threshold graphs and the asymmetric part with the rules of \({\text {OWQT}}\).

4.8 Directed co-weakly quasi threshold graphs

Definition 11

(Directed co-weakly quasi threshold graphs) The class of directed co-weakly quasi threshold graphs is recursively defined as follows.

  1. (i)

    Every bidirectional complete digraph is a directed co-weakly quasi threshold graph.

  2. (ii)

    If \(G_1\) and \(G_2\) are directed co-weakly quasi threshold graphs, then \(G_1\otimes G_2\) is a directed co-weakly quasi threshold graph.

  3. (iii)

    If G is a directed co-weakly quasi threshold graph and K is a bidirectional complete digraph, then (a) \(G\oslash K\), (b) \(K \oslash G\), and (c) \(G\oplus K\) are directed co-weakly quasi threshold graphs.

We denote the class of directed co-weakly quasi threshold graphs by \({\text {DCWQT}}\).

Theorem 13

For a graph G the following properties are equivalent.

  1. 1.

    \(G \in {\text {DCWQT}}\).

  2. 2.

    \(G \in {\text {Free}}(\{D_1,\ldots , D_8, {\text {co-}}Q_1, \ldots , {\text {co-}}Q_7 \})\), see Table 10.

Proof

By Lemma 1, we know that \({\text {co-DWQT}}={\text {Free}}({\text {co-}}\{D_1,\ldots , D_8, Q_1, \ldots , Q_7 \})\). Since \({\text {DCWQT}}={\text {co-DWQT}}\), it follows by Theorem 11 that the forbidden induced subdigraphs are \(D_1,\ldots , D_8\) since they are self complementary, and \({\text {co-}}Q_1, \ldots , {\text {co-}}Q_7\). \(\square \)

Table 10 Forbidden induced subdigraphs for \({\text {DCWQT}}\)

4.9 Oriented co-weakly quasi threshold graphs

Definition 12

(Oriented co-weakly quasi threshold graphs) The class of oriented co-weakly quasi threshold graphs is recursively defined as follows.

  1. (i)

    Every transitive tournament is an oriented co-weakly quasi threshold graph.

  2. (ii)

    If G is an oriented co-weakly quasi threshold graph and T is a transitive tournament, then (a) \(G\oslash T\), (b) \(T \oslash G\), and (c) \(G\oplus T\) are oriented co-weakly quasi threshold graphs.

We denote the class of oriented co-weakly quasi threshold graphs by \({\text {OCWQT}}\).

Obviously, a transitive tournament \(\overrightarrow{T_n}\) is a subdigraph, but not an induced subdigraph of \(\overleftrightarrow {K_n}\). Thus, the operations allowed in \({\text {OCWQT}}\) are not exactly building the complement of the digraphs in \({\text {DCWQT}}\), but since biorientations are forbidden in oriented digraphs, it is useful to define the class as above.

Theorem 14

For a graph G the following properties are equivalent.

  1. 1.

    G is a oriented co-weakly quasi threshold graph.

  2. 2.

    \(G \in {\text {Free}}(\{D_1, D_5, D_8, \overleftrightarrow {K_2}, D_{12}, D_{21}, D_{22}, D_{23}\})\)Footnote 8.

  3. 3.

    G is an oriented co-graph and \(G \in {\text {Free}}(\{D_{12}, D_{21}, D_{22}, D_{23}\})\).

  4. 4.

    \(G \in {\text {Free}}(\{D_8, \overleftrightarrow {K_2}, D_{12}, D_{21}, D_{22}, D_{23}\})\) and G is transitive.

Table 11 Forbidden induced subdigraphs of \({\text {OCWQT}}\)
Table 12 Digraphs for the construction of forbidden subdigraphs of \({\text {OCWQT}}\)

Proof

\((1) \Rightarrow (2)\) Let \(G\in {\text {OCWQT}}\) and assume G contains one of \(D_1, D_5, D_8, \overleftrightarrow {K_2}, D_{12}, D_{21}, D_{22}, D_{23}\). Since these digraphs are not constructed by the operations of \({\text {OCWQT}}\), this contradicts that G is in this class. Since \({\text {OCWQT}}\) is closed under taking induced subdigraphs, G cannot contain one of these graphs as induced subdigraphs.

\((2) \Rightarrow (1)\) Since \(D_1, D_5, D_8\) and \(\overleftrightarrow {K_2}\) are forbidden induced subdigraphs of G, G is an oriented co-graph, see Theorem 14. Thus, G has been constructed by the operations allowed for oriented co-graphs, which are the disjoint union and the order composition.

Since \(D_{12}\) is not an induced subdigraph of G, in every order composition of two graphs \(G_1\) and \(G_2\) in the construction of G, at least one of them must have been a transitive tournament. For every bigger digraph, composed by an order composition of two oriented digraphs \(G_1\) and \(G_2\), it holds that either one of them is a transitive tournament, which is allowed in the order composition in \({\text {OCWQT}}\), or else \(I_2\) is included as induced subdigraph in \(G_1\) and \(G_2\), which means that \(D_{12}\) is contained as induced subdigraph. This leads to the conclusion that prohibiting \(D_{12}\) exactly characterizes the order composition allowed in \({\text {OCWQT}}\).

Since \(D_{21}, D_{22}\) and \(D_{23}\) are not connected, they must be the result of the disjoint union of two oriented co-graphs \(G_1\) and \(G_2\), with \(G_1,G_2\in \{X_1,X_2\}\), see Tables 11 and 12. As \(X_1\) and \(X_2\) are neither transitive tournaments nor edgeless digraphs, they are forbidden in \({\text {OCWQT}}\). Every bigger oriented digraph emerging by a disjoint union either contains \(D_{21}, D_{22}\) and \(D_{23}\), or is feasible to construct by adding transitive tournaments one by one. Consequently, excluding \(D_{21}, D_{22}\) and \(D_{23}\) exactly characterizes the restriction of the disjoint union in \({\text {OCWQT}}\).

This exactly leads to Definition 12 of \({\text {OWQT}}\), such that \(G\in {\text {OCWQT}}\).

\((2) \Leftrightarrow (3)\) Holds by Theorem 5.

\((2) \Rightarrow (4)\) Holds by Lemma 5.

\((4) \Rightarrow (2)\) The transitivity of G implies that there cannot be \(D_1\) or \(D_5\), as both do not satisfy the definition of transitivity. \(\square \)

The next class we consider is the class of simple co-graphs, of which we construct a directed version.

4.10 Directed simple co-graphs

Definition 13

(Directed simple co-graphs) The class of directed simple co-graphs is recursively defined as follows.

  1. (i)

    Every digraph on a single vertex \((\{v\},\emptyset )\), denoted by \(\bullet \), is a directed simple co-graph.

  2. (ii)

    If G is a directed simple co-graph I is an edgeless digraph, then (a) \(G\oplus I\), (b) \(G\oslash I\), (c) \(I \oslash G\), and (d) \(G\otimes I\) are directed simple co-graphs.

We denote the class of directed simple co-graphs by \({\text {DSC}}\).

Observation 12

If G is a directed simple co-graph, \({ und}(G)\) is a simple co-graph.

Since directed simple co-graphs are a subset of directed weakly quasi threshold graphs, they can be defined by adding further subdigraphs to those given for directed weakly quasi threshold graphs. These have to ensure that for every disjoint union of \(G_1\) and \(G_2\) either \(G_1\) or \(G_2\) has no edges. This can be done by excluding \({\text {co-}}D_{11},{\text {co-}}D_{10},{\text {co-}}D_9\), see Table 13.

Theorem 15

The following statements are equivalent.

  1. 1.

    \(G\in {\text {DSC}}\).

  2. 2.

    \(G\in {\text {Free}}(\{D_1,\ldots ,D_8, Q_1,\ldots ,Q_7, {\text {co-}}D_9, {\text {co-}}D_{10}, {\text {co-}}D_{11}\})\).

  3. 3.

    \(G \in {\text {Free}}(\{D_1,\ldots ,D_8, Q_1,\ldots ,Q_7\})\) and \({ und}(G)\in {\text {Free}}(\{P_4, {\text {co-}}2P_3, 2K_2\})\).

  4. 4.

    \(G \in {\text {Free}}(\{D_1,\ldots ,D_8, Q_1,\ldots ,Q_7\})\) and \({ und}(G)\in {\text {SC}}\).

Proof

\((1) \Rightarrow (2)\) The given forbidden digraphs \(D_1,\ldots ,D_8\),\(Q_1,\ldots ,Q_7\), \({\text {co-}}D_9, {\text {co-}}D_{10}\) and \({\text {co-}}D_{11}\) are no directed simple co-graphs and the set of directed directed simple co-graphs is hereditary.

\((2) \Rightarrow (1)\) Let \(G\in {\text {Free}}(\{D_1,\ldots ,D_8, Q_1,\ldots ,Q_7, {\text {co-}}D_9, {\text {co-}}D_{10}, {\text {co-}}D_{11}\})\). Then, we know by Theorem 11 that G is in \({\text {DWQT}}\), such that in every series and order composition of two digraphs \(G_1\) and \(G_2\), either \(G_1\) or \(G_2\) must be an edgeless digraph (see proof of Theorem 11), exactly as in the definition of \({\text {DSC}}\). By excluding \({\text {co-}}D_9, {\text {co-}}D_{10}\) and \({\text {co-}}D_{11}\) there is no disjoint union \(G_1 \oplus G_2\) allowed, in which at least one of the two digraphs contains an edge. Therefore, one of \(G_1\) or \(G_2\) must be edgeless, which exactly is the restriction for the disjoint union from Definition 13. For every other digraph built by \(G_1 \oplus G_2\), either \(G_1\) and \(G_1\) contain edges, such that \({\text {co-}}D_9, {\text {co-}}D_{10}\) or \( {\text {co-}}D_{11}\) is an induced subdigraph, or \(G_1\) or \(G_1\) contains no edges, which leads to a legit digraph of \({\text {DSC}}\). Finally, we end up in Definition 13. Consequently, G must be in \({\text {DSC}}\).

\((2) \Rightarrow (4)\) By Observation 12.

\((3) \Rightarrow (2)\) By Observation 2.

\((3) \Leftrightarrow (4)\) Since \({\text {Forb}}({\text {SC}})= \{P_4, {\text {co-}}2P_3, 2K_2\}\). \(\square \)

4.11 Oriented simple co-graphs

Definition 14

(Oriented simple co-graphs) The class of oriented simple co-graphs is recursively defined as follows.

  1. (i)

    Every digraph on a single vertex \((\{v\},\emptyset )\), denoted by \(\bullet \), is an oriented simple co-graph.

  2. (ii)

    If G is an oriented simple co-graph I is an edgeless digraph, then (a) \(G\oplus I\), (b) \(G\oslash I\), (c) \(I \oslash G\) are oriented simple co-graphs.

We denote the class of oriented simple co-graphs by \({\text {OSC}}\).

Table 13 Complementary graphs of \(D_9, D_{10}\) and \(D_{11}\)

Theorem 16

Let G be a digraph. The following properties are equivalent:

  1. 1.

    G is an oriented simple co-graph.

  2. 2.

    \(G\in {\text {Free}}(\{D_1,D_5,D_8, Q_7, {\text {co-}}D_{11},\overleftrightarrow {K_2}\})\).

  3. 3.

    \(G\in {\text {Free}}(\{D_8, Q_7, {\text {co-}}D_{11},\overleftrightarrow {K_2}\})\) and G is transitive.

Proof

\((1) \Rightarrow (2)\) Let G be in \({\text {OSC}}\). Since \({\text {OSC}}\subset {\text {DSC}}\) and \({\text {OSC}}\subset {\text {OC}}\) we know that the forbidden induced subdigraphs of \({\text {DSC}}\), as well as the forbidden induced subdigraphs of \({\text {OC}}\), must also be excluded in \({\text {OSC}}\). Consequently, none of the graphs \(D_1,D_5,D_8, Q_7, {\text {co-}}D_{11},\overleftrightarrow {K_2}\) can be induced subdigraphs of G. Since the class \({\text {OSC}}\) is closed under taking induced subdigraphs this holds for every digraph of the class.

\((2) \Rightarrow (1)\) Let G contain none of the digraphs from above as induced subdigraph. Since G has no induced \(D_1, D_5, D_8\) and \(\overleftrightarrow {K_2}\), G must be an oriented co-graph by Theorem 5 and thus, G must have been built by a disjoint union or a series composition. Further, we know from the proof of Theorem 15 which forbidden subdigraphs are exactly leading to the restriction of the disjoint union and the order composition. Since G has no induced \(\overleftrightarrow {K_2}\), the list reduces to \( Q_7\) and \({\text {co-}}D_{11}\). With the same argumentation as in the proof of Theorem 15, every other digraph that is constructed by a directed union or an order composition is either legit for this class, or contains one of these forbidden digraphs as subdigraph. Consequently, this leads exactly to the definition of \({\text {OSC}}\), such that G must be in \({\text {OSC}}\).

\((2) \Rightarrow (3)\) Holds with Lemma 5.

\((3) \Rightarrow (2)\) The transitivity of G implies that \(D_1\) or \(D_5\) are excluded, as they do not satisfy the definition of transitivity. \(\square \)

Observation 13

If \(G\in DSC\), then the underlying undirected graph of the symmetric part of G is a simple co-graph and the asymmetric part of G is an oriented simple co-graph.

This holds since the asymmetric part is constructed according to the same rules as simple co-graphs and the asymmetric part with the rules of OSC.

4.12 Directed co-simple co-graphs

We introduce the complementary class of \({\text {DSC}}\) since it holds that

$$\begin{aligned}&\{D_1,\ldots ,D_8, Q_1,\ldots ,Q_7, {\text {co-}}D_9, {\text {co-}}D_{10}, {\text {co-}}D_{11}\} \\&\quad \ne {\text {co-}}\{D_1,\ldots ,D_8, Q_1,\ldots ,Q_7, {\text {co-}}D_9, {\text {co-}}D_{10}, {\text {co-}}D_{11}\}. \end{aligned}$$

Definition 15

(Directed co-simple co-graphs) The class of directed co-simple co-graphs is recursively defined as follows.

  1. (i)

    Every digraph on a single vertex \((\{v\},\emptyset )\), denoted by \(\bullet \), is a directed co-simple co-graph.

  2. (ii)

    If G is a directed co-simple co-graph and K is a bidirectional complete digraph, then (a) \(G\oplus K\), (b) \(G\oslash K\), (c) \(K \oslash G\), and (d) \(G\otimes K\) are directed co-simple co-graphs.

We denote the class of directed simple co-graphs by \({\text {DCSC}}\).

Theorem 17

The following statements are equivalent.

  1. 1.

    \(G\in {\text {DCSC}}\).

  2. 2.

    \(G\in {\text {Free}}(\{D_1,\ldots ,D_8, {\text {co-}}Q_1,\ldots ,{\text {co-}}Q_7, Q_1, D_9, D_{10}\})\).

  3. 3.

    \(G\in {\text {Free}}(\{D_1,\ldots ,D_8, {\text {co-}}Q_1,{\text {co-}}Q_4,\ldots ,{\text {co-}}Q_6, Q_1, D_{10}\})\) and \({ und}(G)\) is a co-simple co-graph.

Proof

By Lemma 1, we know that \({\text {co-DSC}}={\text {Free}}({\text {co-}}\{D_1,\ldots ,D_8, Q_1,\ldots ,Q_7, {\text {co-}}D_9, {\text {co-}}D_{10}, {\text {co-}}D_{11}\})\). Since \({\text {DCSC}}={\text {co-DSC}}\), we know by Theorem 15 that the forbidden induced subdigraphs are \(D_1,\ldots , D_8\) since, they are self complementary, and \({\text {co-}}Q_1,\ldots ,{\text {co-}}Q_7, Q_1, D_9, D_{10}\).Footnote 9 Consequently, this equivalence holds. \(\square \)

4.13 Oriented co-simple co-graphs

Definition 16

(Oriented co-simple co-graphs) The class of oriented co-simple co-graphs is recursively defined as follows.

  1. (i)

    Every digraph on a single vertex \((\{v\},\emptyset )\), denoted by \(\bullet \), is an oriented co-simple co-graph.

  2. (ii)

    If G is an orientated co-simple co-graph and T is a transitive tournament, then (a) \(G\oplus T\), (b) \(G\oslash T\), and (c) \(T \oslash G\) are oriented co-simple co-graphs.

We denote the class of orientated simple co-graphs by \({\text {OCSC}}\).

It is obvious, that the classes \({\text {OCSC}}\) and \({\text {OCWQT}}\) are equal.

4.14 Directed threshold graphs

The class of threshold graphs was introduced by Chvátal and Hammer (see Chvátal and Hammer 1973, 1977). Some possible definitions of directed threshold graphs can be found in Gurski and Rehs (2019), they work as follows.

Definition 17

(Directed threshold graphs) The class of directed threshold graphs is recursively defined as follows.

  1. (i)

    Every digraph on a single vertex \((\{v\},\emptyset )\), denoted by \(\bullet \), is a directed threshold graph.

  2. (ii)

    If G is a directed threshold graph, then (a) \(G\oplus \bullet \), (b) \(G\oslash \bullet \), (c) \(\bullet \oslash G\), and (d) \(G\otimes \bullet \) are directed threshold graphs.

We denote the class of directed threshold graphs by \({\text {DT}}\).

The recursive definition of directed and undirected threshold graphs lead to the following observation.

Observation 14

For every directed threshold graph G the underlying undirected graph \({ und}(G)\) is a threshold graph.

There are also several other ways to define directed threshold graphs. Not only by forbidden induced subdigraphs, but also by graph parameters as directed linear NLC-width and directed neighbourhood width (see Gurski and Rehs 2019) for their definition.

Theorem 18

Let G be a digraph. The following properties are equivalent:

  1. 1.

    G is a directed threshold graph.

  2. 2.

    \(G\in {\text {Free}}(\{D_1, \dots , D_{15}, {\text {co-}}D_{11}, {\text {co-}}D_{10}, {\text {co-}}D_9\})\).

  3. 3.

    \(G\in {\text {Free}}(\{D_1,D_2,D_3,D_4,D_5,D_6,D_{10},D_{11},D_{13},D_{14},D_{15}\})\) and \({ und}(G)\in {\text {Free}}(\{P_4,2K_2,C_4\})\).

  4. 4.

    \(G\in {\text {Free}}(\{D_1,D_2,D_3,D_4,D_5,D_6,D_{10},D_{11},D_{13}, D_{14},D_{15}\})\) and \({ und}(G)\) is a threshold graph.

  5. 5.

    G has directed linear NLC-width 1.

  6. 6.

    G has directed neighbourhood-width 1.

  7. 7.

    G has directed linear clique-width at most 2 and \(G\in {\text {Free}}(\{D_2,D_3,D_9,D_{10}, D_{12},D_{13},D_{14}\})\).

  8. 8.

    G and \({\text {co-}}G\) are both directed trivially perfect graphs.

Proof

(1) \(\Rightarrow \) (2) The given forbidden graphs are not directed threshold graphs and the set of directed threshold graphs is closed under taking induced subdigraphs.

(2) \(\Rightarrow \) (1) If digraph G does not contain \(D_1,D_2,D_3,D_4,D_5,D_6,D_7\) or \(D_8\) (see Table 3) digraph G is a directed co-graph by Crespelle and Paul (2006) and thus, can be constructed by using disjoint union, series composition, and order composition. By excluding \(D_9\), \(D_{10}\), and \(D_{11}\) we know that for every series composition of \(G_1\) and \(G_2\) either \(G_1\) or \(G_2\) is bidirectional complete. Consequently, this subdigraph can also be added by a number of series operations with one vertex.

Further, by excluding \(D_{12}\), \(D_{13}\), \(D_{14}\), and \(D_{15}\) we know that for every order composition of \(G_1\) and \(G_2\) either \(G_1\) or \(G_2\) is a tournament and since we exclude a directed cycle of length 3 by \(D_5\), by Lemma 5 we know that \(G_1\) or \(G_2\) is a transitive tournament. Thus, this subdigraph can also be added by a number of order operations with one vertex.

By excluding \({\text {co-}}D_{11},{\text {co-}}D_{10},{\text {co-}}D_9\) for every disjoint union of \(G_1\) and \(G_2\) either \(G_1\) or \(G_2\) has no edges. Thus, this subdigraph can also be added by a number of disjoint union operations with one vertex.

(3) \(\Leftrightarrow \) (4) Since \({\text {Forb}}({\text {T}})=\{C_4,P_4,2K_2\}\).

(1) \(\Leftrightarrow \) (5) and \((5)\Leftrightarrow (6)\) (Gurski and Rehs 2019).

(1) \(\Rightarrow \) (7) and (7) \(\Rightarrow \) (2) (Gurski and Rehs 2019).

(2) \(\Rightarrow \) (4) By Observation 14.

(3) \(\Rightarrow \) (2) By Observation 2.

(1) \(\Rightarrow \) (8) G and \({\text {co-}}G\) are both directed threshold graphs and thus, both are directed trivially perfect graphs.

(8) \(\Rightarrow \) (1) Let \(X=\{D_1,\ldots ,D_{15}\}\). By Theorem 7 we know that \(G\in {\text {Free}}(X)\) and \({\text {co-}}G \in {\text {Free}}(X)\) hold. Lemma 1 implies that \(G\in {\text {Free}}(X)\cap {\text {Free}}({\text {co-}}X)\). And again by Lemma 1 we obtain \(G\in {\text {Free}}(X\cup {\text {co-}}X)\). By Observation 4 and part (2) of this theorem it holds that G is a directed threshold graph. \(\square \)

For directed threshold graphs Observation 4 leads to the next result.

Proposition 3

\({\text {DT}}={\text {co-DT}}\)

Similar as undirected threshold graphs (cf. Hagberg et al. 2006), directed threshold graphs can also be characterized by the existence of a special sequence.

A directed creation sequence for \(G=(V,E)\) with \(V=\{v_1,\ldots ,v_n\}\) is a quaternary string \(t=t_1,\ldots ,t_n\) of length n such that there is a bijection \(v:\{1,\ldots ,n\}\rightarrow V\) with

  • \(t_i=3\) if v(i) is a bi-dominating vertex for the graph \(G[\{v(1),\ldots ,v(i)\}]\)

    \(t_i=2\) if v(i) is a in-dominating vertex for the graph \(G[\{v(1),\ldots ,v(i)\}]\)

  • \(t_i=1\) if v(i) is a out-dominating vertex for the graph \(G[\{v(1),\ldots ,v(i)\}]\) and

  • \(t_i=0\) if v(i) is an isolated vertex for the graph \(G[\{v(1),\ldots ,v(i)\}]\).

W.l.o.g. we define a single vertex to be a dominating vertex, i.e. \(t_1=1\). By adapting the result for undirected threshold graphs from Mahadev and Peled (1995, Fig. 1.4) a directed creation sequence can be found in time \({\mathcal {O}}(n+m)\). Furthermore this implies that directed threshold graphs can be recognized in time \({\mathcal {O}}(n+m)\).

4.15 Oriented threshold graphs

The class of oriented threshold graphs has been introduced in Boeckner (2018) as follows.

Definition 18

(Oriented threshold graphs Boeckner 2018) A graph \(G = (V,A)\) is an threshold graph if there exists an injective weight function \(w : V \rightarrow {\mathbb {R}}\) and a threshold value \(t \in {\mathbb {R}}\) such that \((x,y)\in A\) if and only if \(|w(x)| + |w(y)| \ge t\) and \(w(x) > w(y)\).

Theorem 19

(Boeckner 2018) Let G be an oriented digraph. The following properties are equivalent:

  1. 1.

    G is an oriented threshold graph.

  2. 2.

    \(G\in {\text {Free}}(\{D_1, D_5\})\) and \({ und}(G)\in {\text {Free}}(\{2K_2,C_4,P_4\})\).

  3. 3.

    G is a transitive orientation of a threshold graph.

  4. 4.

    G can be constructed from the one vertex empty graph by successively adding an isolated vertex, an out-dominating vertex or an in-dominated vertex.

Using Theorem 19 we obtain the following definition, which is equivalent to Definition 18:

Definition 19

(Oriented threshold graphs) The class of oriented threshold graphs is recursively defined as follows.

  1. (i)

    Every digraph on a single vertex \((\{v\},\emptyset )\), denoted by \(\bullet \), is an oriented threshold graph.

  2. (ii)

    If G is an oriented threshold graph, then (a) \(G\oplus \bullet \), (b) \(G\oslash \bullet \), and (c) \(\bullet \oslash G\) are oriented threshold graphs.

We denote the class of oriented threshold graphs by \({\text {OT}}\).

The recursive definition of oriented and undirected threshold graphs lead to the following observation.

Observation 15

For every oriented threshold graph G the underlying undirected graph \({ und}(G)\) is a co-graph.

This class can also be defined by forbidden induced subdigraphs. As it was possible for oriented co-graphs and oriented trivially perfect graphs, we can use the fact that oriented threshold graphs are exactly the directed threshold graphs not containing an induced \(\overleftrightarrow {K_2}\):

Theorem 20

Let G be a digraph. The following properties are equivalent:

  1. 1.

    G is an oriented threshold graph.

  2. 2.

    G is an oriented co-trivially perfect graph.

  3. 3.

    \(G\in {\text {Free}}(\{D_1, D_5, D_8, D_{12}, 2 \overrightarrow{P_2}, \overleftrightarrow {K_2}\})\).

  4. 4.

    \(G\in {\text {Free}}(\{D_1,D_5,\overleftrightarrow {K_2}\})\) and \({ und}(G)\in {\text {Free}}(\{2K_2,C_4,P_4\})\).

  5. 5.

    \(G\in {\text {Free}}(\{D_1,D_5,\overleftrightarrow {K_2}\})\) and \({ und}(G)\) is a threshold graph.

  6. 6.

    \(G\in {\text {Free}}(\{D_1, D_5, D_{12}, \overleftrightarrow {K_2}\})\) and \({ und}(G)\in {\text {Free}}(\{P_4,2K_2\})\).

  7. 7.

    \(G\in {\text {Free}}(\{D_1, D_5, D_{12}, \overleftrightarrow {K_2}\})\) and \({ und}(G)\) is a co-trivially perfect graph.

  8. 8.

    \(G\in {\text {Free}}(\{D_1, D_5, D_{12}, 2 \overrightarrow{P_2}, \overleftrightarrow {K_2}\})\) and \({ und}(G)\in {\text {Free}}(\{P_4\})\).

  9. 9

    \(G\in {\text {Free}}(\{D_1, D_5, D_{12}, 2 \overrightarrow{P_2}, \overleftrightarrow {K_2}\})\) and \({ und}(G)\) is a co-graph.

  10. 10.

    G is transitive and \(G\in {\text {Free}}(\{D_8, D_{12},2 \overrightarrow{P_2},\overleftrightarrow {K_2}\})\).

Proof

\((1)\Leftrightarrow (2)\) By the recursive definition of the classes, which arises from the restriction of the directed classes to oriented graphs.

\((1)\Rightarrow (3)\) If G is an oriented threshold graph, then G is a directed threshold graph and by Theorem 18 it holds that \(G\in {\text {Free}}(\{D_1, \dots , D_{15}, {\text {co-}}D_{11}, {\text {co-}}D_{10}, {\text {co-}}D_9\})\). Further \(G\in {\text {Free}}(\{\overleftrightarrow {K_2}\})\) because of the missing series composition. This leads to \(G\in {\text {Free}}(\{D_1, D_5, D_8, D_{12}, \overleftrightarrow {K_2}, 2 \overrightarrow{P_2}\})\).

\((3)\Rightarrow (1)\) If \(G\in {\text {Free}}(\{D_1, D_5, D_8, D_{12}, \overleftrightarrow {K_2}, 2 \overrightarrow{P_2}\})\), then \(G\in {\text {Free}}(\{D_1, \dots , D_{15}, {\text {co-}}D_{11}, {\text {co-}}D_{10}, {\text {co-}}D_9\})\) and is a directed threshold graph. Since \(G\in {\text {Free}}(\{\overleftrightarrow {K_2}\})\) there is no series operation in any construction of G which implies that G is an oriented threshold graph.

(4) \(\Leftrightarrow \) (5) Since \({\text {Forb}}({\text {T}})=\{C_4,P_4,2K_2\}\).

(6) \(\Leftrightarrow \) (7) Since \({\text {Forb}}({\text {CTP}})=\{P_4,2K_2\}\).

(8) \(\Leftrightarrow \) (9) Since \({\text {Forb}}({\text {C}})=\{P_4\}\).

(3) \(\Rightarrow \) (5), (3) \(\Rightarrow \) (7), and (3) \(\Rightarrow \) (9) By Observation 15.

(4) \(\Rightarrow \) (3), (6) \(\Rightarrow \) (3), and (8) \(\Rightarrow \) (3) By Observation 2.

\((3)\Rightarrow (10)\) By Lemma 3 we know that G is transitive.

\((10)\Rightarrow (3)\) If G is transitive, then \(G\in {\text {Free}}(\{D_1, D_5\})\). \(\square \)

A very famous subclass of oriented threshold graphs is the class of transitive tournaments, which can be easily constructed by repeating \(G\oslash \bullet \).

The proof for the next Theorem can be done very similar to the proof of Theorem 10.

Theorem 21

A graph G is a threshold graph if and only if there exists an orientation \(G'\) of G such that \(G'\) is an oriented threshold graph.

Observation 16

If \(G\in DT\), then the underlying undirected graph of the symmetric part of G is a threshold graph and the asymmetric part of G is an oriented threshold graph.

This holds since the asymmetric part is constructed according to the same rules as threshold graphs and the asymmetric part is constructed according to the rules of OT.

Similar to directed threshold graphs every oriented co-graph can be defined by a sequence with only three operations, which can be used to give a linear time recognition algorithm.

4.16 Threshold digraphs and Ferres digraphs

The following idea of defining a directed version of threshold graphs, i.e. threshold digraphs, is from Cloteaux et al. (2014) where they define them by a set of forbidden subdigraphs.

A 2-switch is a vertex set \(\{w,x,y,z\}\) such that there exist the edges (wx) and (yz) but not the edges (wz) and (yx), see Fig. 2. Examples for a 2-switch are \({\text {co-}}D_{10},{\text {co-}}D_9, {\text {co-}}D_{11}\) and \(\overrightarrow{P_4}\).

Observation 17

Let G be a directed threshold graph, then G does not contain a 2-switch.

Definition 20

(Threshold digraphs Cloteaux et al. 2014) A digraph G is a threshold digraph if it does not contain a 2-switch nor a \(D_5\) as induced subdigraph.

The class of threshold digraphs is denoted by \({\text {TD}}\).

This class is not very useful for our directed co-graph hierarchy, as they are incomparable to most of the graph classes in it, though it is a superclass of directed threshold graphs (see Sect. 4.17).

Fig. 2
figure 2

A 2-switch. All vertices are distinct. Solid arcs must appear in the digraph and dashed arcs must not appear in the digraph. If an arc is not given, then it may or may not be present

Fig. 3
figure 3

An alternating 4-anticircuit. The vertices are not necessarily distinct but \(x\ne z\) and \(y\ne w\). The solid arrows represent the presence of an arc and a dashed arrow its absence

A well studied class of digraphs are Ferres digraphs, see (Mahadev and Peled 1995, Chapter 2) for a survey. Ferres digraphs are introduced by Riguet in Riguet (1951). In their first definition, Ferres digraphs were defined on directed graphs including loops. As our subclasses of directed co-graphs do not use loops, only Ferres digraphs without loops will be used here. An alternating 4-anticircuit consists of vertices xyzw, not necessarily distinct but \(x\ne z\) and \(y\ne w\), satisfying \((x,y),(z,w)\in A\) and \((x,w),(z,y)\not \in A\) (cf. Fig. 3).

Definition 21

(Ferres digraphs) A digraph is a Ferres digraph if it does not contain an alternating 4-anticircuit.

The class of Ferres digraphs is denoted by \({\text {FD}}\).

By considering all possible equalities of vertices in an alternating 4-anticircuit, an equivalent characterization is obtained by \(G\in {\text {Free}}(\{D_1,\overleftrightarrow {K_2}\})\) and G does not contain a 2-switch, see (Mahadev and Peled 1995, Figure 2.2) additional to the restriction to digraphs without loops. This class is comparable to oriented threshold graphs, but not to any other graph class in the directed co-graph hierarchy, as we will see in Sect. 4.18.

4.17 Overview

In Table 14 we summarize directed co-graphs and their subclasses.

Since directed co-graphs and all defined subclasses are hereditary, by Theorem 2 there exist sets of minimal forbidden induced subdigraphs. The given theorems even show this finite sets of minimal forbidden induced subdigraphs for the different classes. These characterizations lead to polynomial time recognition algorithms for the corresponding graph classes.

Table 14 Overview on subclasses of directed co-graphs. By \(G_1\) and \(G_2\) we denote graphs of the class X, by I we denote an edgeless graph, by K we denote a bidirectional complete digraph, and by T we denote a transitive tournament

4.18 Relations

Our forbidden subdigraphs in combination with Theorem 3 allows us to compare the above graph classes to each other and show the hierarchy of the subclasses of directed co-graphs, see Fig. 4.

Fig. 4
figure 4

Relations between the subclasses of directed co-graphs. If there is a path from A to B, then it holds that \(A\subset B\). The classes, that are not connected by a directed path are incomparable

5 Conclusions and outlook

We introduced several new digraph classes. All of these classes are subsets of directed co-graphs which have been defined by Bechet et al. (1997) and supersets of oriented threshold graphs defined by Boeckner (2018). Additionally, we consider the ideas of Cloteaux et al. (2014) and Ferres digraphs (Riguet 1951).

Our characterizations by final sets of forbidden induced subdigraphs lead to polynomial time recognition algorithms for the corresponding graph classes. In Sects. 4.14 and 4.15 we suggested linear time methods for the recognition of directed and oriented threshold graphs. For the other classes it remains open to find more efficient algorithms for this purpose.

For directed co-graphs we have shown in Gurski and Rehs (2018b) that the directed path-width equals to the directed tree-width and how to compute this value in linear time. Moreover, the digraph width parameters directed feedback vertex set number, cycle rank, DAG-depth, and DAG-width can be computed in linear time for directed co-graphs (Gurski et al. 2019b). It remains to verify the relation of these parameters restricted to threshold digraphs and Ferres digraphs.

In Johnson et al. (2001) the directed union was introduced as a generalization of the disjoint union and the order composition. In Gurski and Rehs (2018a) we considered digraphs which can be defined by disjoint union, order composition, directed union, and series composition of two directed graphs. The set of all these digraphs is denoted by extended directed co-graphs since it generalizes directed co-graphs. In Gurski and Rehs (2018a) we showed that the result of Gurski and Rehs (2018b) even holds for extended directed co-graphs. For the class of extended directed co-graphs it remains to show how to compute an ex-di-co-tree and to find forbidden subdigraph characterizations. Furthermore, it also has a number of interesting subclasses beside those given in this paper.