This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Counting graph orientations
with no directed triangles

Pedro Araújo Fábio Botler  and  Guilherme Oliveira Mota IMPA, Estrada Dona Castorina 110, Jardim Botânico, Rio de Janeiro, RJ, Brazil pedroc@impa.br Programa de Engenharia de Sistemas e Computação, Universidade Federal do Rio de Janeiro, Rio de Janeiro, Brazil fbotler@cos.ufrj.br Centro de Matemática, Computação e Cognição
Universidade Federal do ABC, Santo André, Brazil
g.mota@ufabc.edu.br
Abstract.

Alon and Yuster proved that the number of orientations of any nn-vertex graph in which every K3K_{3} is transitively oriented is at most 2n2/42^{\lfloor n^{2}/4\rfloor} for n104n\geq 10^{4} and conjectured that the precise lower bound on nn should be n8n\geq 8. We confirm their conjecture and, additionally, characterize the extremal families by showing that the balanced complete bipartite graph with nn vertices is the only nn-vertex graph for which there are exactly 2n2/42^{\lfloor n^{2}/4\rfloor} such orientations.

P. Araújo was partially supported by CNPq; F. Botler was supported by CNPq (423395/2018-1), and by FAPERJ (211.305/2019); G. O. Mota was partially supported by CNPq (304733/2017-2, 428385/2018-4) and FAPESP (2018/04876-1, 2019/13364-7). The research that led to this paper started in WoPOCA 2019, which was financed by FAPESP (2015/11937-9) and CNPq (425340/2016-3, 423833/2018-9). This study was financed in part by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior, Brasil (CAPES), Finance Code 001. FAPERJ is the Rio de Janeiro Research Foundation. FAPESP is the São Paulo Research Foundation. CNPq is the National Council for Scientific and Technological Development of Brazil.

1. Introduction

Given a graph GG and an oriented graph H\vec{H}, we say that G\vec{G} is an H\vec{H}-free orientation of GG if G\vec{G} contains no copy of H\vec{H}. We denote by 𝒟(G,H)\mathcal{D}(G,\vec{H}) the family of H\vec{H}-free orientations of GG and we write D(G,H)=|𝒟(G,H)|D(G,\vec{H})=|\mathcal{D}(G,\vec{H})|. In 1974, Erdős [Er74] posed the problem of determining the maximum number of H\vec{H}-free orientations of GG, for every nn-vertex graph GG. Formally, we define D(n,H)=max{𝒟(G,H):G is an n-vertex graph}.D(n,\vec{H})=\max\{\mathcal{D}(G,\vec{H})\colon G\text{ is an $n$-vertex graph}\}.

Since every orientation of an HH-free graph does not contain any orientation H\vec{H} of HH, it is fairly straightforward to see that D(n,H)2ex(n,H)D(n,\vec{H})\geq 2^{\operatorname{ex}(n,H)}, where ex(n,H)\operatorname{ex}(n,H) is the maximum number of edges in an HH-free graph on nn vertices. For a tournament Tk\vec{T}_{k} on kk vertices, Alon and Yuster [AlYu06] proved that D(n,Tk)=2ex(n,Kk)D(n,\vec{T}_{k})=2^{\operatorname{ex}(n,K_{k})} for nn0n\geq n_{0} with a very large n0n_{0}, as they use the Regularity Lemma [Sz75]. For tournaments with three vertices, they avoid using the regularity lemma to prove that D(n,T3)=2n2/4D(n,T_{3})=2^{\lfloor n^{2}/4\rfloor} for nn0n\geq n_{0}, where n0n_{0} is slightly less than 1000010000. Furthermore, for the strongly connected triangle, denoted by K3K^{\circlearrowright}_{3}, using a computer program they verified that D(8,K3)=216D(8,K^{\circlearrowright}_{3})=2^{16} and D(n,K3)=n!D(n,K^{\circlearrowright}_{3})=n! for n7n\leq 7. In view of this, Alon and Yuster posed the following conjecture.

Conjecture 1 (Alon and Yuster [AlYu06]).

For n1n\geq 1, we have D(n,K3)=max{2n2/4,n!}.D(n,K^{\circlearrowright}_{3})=\max\{2^{\lfloor n^{2}/4\rfloor},n!\}.

Using a simple computer program, we checked that K4,4K_{4,4} is the only 88-vertex graph that maximizes D(8,K3)D(8,K^{\circlearrowright}_{3}). This fact together with the verification made by Alon and Yuster for graphs with at most seven vertices implies the following proposition.

Proposition 1.1.

D(8,K3)=216D(8,K^{\circlearrowright}_{3})=2^{16} and among all graphs with 88 vertices, D(G,K3)=216D(G,K^{\circlearrowright}_{3})=2^{16} if and only if GK4,4G\simeq K_{4,4}. Furthermore, D(n,K3)=n!D(n,K^{\circlearrowright}_{3})=n! for 1n71\leq n\leq 7.

In this paper we prove the following result that confirms Conjecture 1 and states that the balanced complete bipartite graph is the only nn-vertex graph for which there are exactly 2n2/42^{\lfloor n^{2}/4\rfloor} orientations with no copy of K3K^{\circlearrowright}_{3}.

Theorem 1.2.

For n8n\geq 8, we have D(n,K3)=2n2/4.D(n,K^{\circlearrowright}_{3})=2^{\lfloor n^{2}/4\rfloor}. Furthermore, among all graphs GG with nn vertices, D(G,K3)=2n2/4D(G,K^{\circlearrowright}_{3})=2^{\lfloor n^{2}/4\rfloor} if and only if GKn/2,n/2G\simeq K_{\lfloor n/2\rfloor,\lceil n/2\rceil}.

Overview of the paper. Our proof is divided into two parts. Proposition 3.3 deals with graphs with at most 1313 vertices, and its proof is given in the appendix (Section 5); and Theorem 1.2 deals with general graphs (Section 3). The proofs of these results are somehow similar and consist of an analysis of the size of a maximum clique of the given graph. In each step, we partition the vertices of a graph GG into a few parts and, using the results presented in Section 2, explore the orientations of the edges between these parts that lead to K3K^{\circlearrowright}_{3}-free orientations of GG. Our proof is then reduced to solving a few equations which, in the case of the proof of Proposition 3.3, can be checked by straightforward computer programs. In Section 4 we present some open problems. The reader is referred to [Bo78, Di10] for standard terminology on graphs.

2. Extensions of K3K^{\circlearrowright}_{3}-free orientations

In this section we provide several bounds on the number of ways one can extend a K3K^{\circlearrowright}_{3}-free orientation of a subgraph of a graph GG to a K3K^{\circlearrowright}_{3}-free orientation of GG.

Given subgraphs G1G_{1} and G2G_{2} of GG, we write G1G2G_{1}\cup G_{2} for the subgraph of GG with vertex set V(G1)V(G2)V(G_{1})\cup V(G_{2}) and edge set E(G1)E(G2)E(G_{1})\cup E(G_{2}). Let G1\vec{G}_{1} and G2\vec{G}_{2} be orientations, respectively, of G1G_{1} and G2G_{2} with the property that any edge of E(G1)E(G2)E(G_{1})\cap E(G_{2}) gets the same orientation in G1\vec{G}_{1} and G2\vec{G}_{2}. We denote by G1G2\vec{G}_{1}\cup\vec{G}_{2} the orientation of G1G2G_{1}\cup G_{2} following the orientations G1\vec{G}_{1} and G2\vec{G}_{2}.

Let GG be a graph and SE(G)S\subseteq E(G). For simplicity, we say that an orientation of the subgraph G[S]{G[S]} of GG induced by the set of edges SS is an orientation of SS. The next definition is a central concept of this paper.

Definition (Compatible orientations).

Given a graph GG, disjoint sets SS, TE(G)T\subseteq E(G) and orientations S\vec{S} of SS and T\vec{T} of TT, we say that S\vec{S} and T\vec{T} are compatible if ST\vec{S}\cup\vec{T} is K3K^{\circlearrowright}_{3}-free.

Given a graph GG and disjoint sets A,BV(G)A,B\subseteq V(G), denote by EG(A,B)E_{G}(A,B) the set of edges of GG between AA and BB and by G[A,B]G[A,B] the spanning subgraph of GG induced by EG(A,B)E_{G}(A,B). It is useful to have an upper bound on number of K3K^{\circlearrowright}_{3}-free orientations of EG(A,B)E_{G}(A,B) that are compatible with a fixed orientation of G[A]G[B]G[A]\cup G[B]. This quantity is precisely the maximum number of ways one can extend a K3K^{\circlearrowright}_{3}-free orientation of G[A]G[B]G[A]\cup G[B] to a K3K^{\circlearrowright}_{3}-free orientation of G[AB]G[A\cup B].

Definition.

Given a graph GG and disjoint sets AA, BV(G)B\subseteq V(G), let T=G[A]G[B]T=G[A]\cup G[B]. We define extG(A,B){\rm{ext}}_{G}(A,B) as follows:

extG(A,B)=maxT𝒟(T,K3)|{S𝒟(G[A,B],K3):S and T are compatible}|.{\rm{ext}}_{G}(A,B)=\max_{\vec{T}\in\mathcal{D}(T,K^{\circlearrowright}_{3})}|\{\vec{S}\in\mathcal{D}(G[A,B],K^{\circlearrowright}_{3})\colon\text{$\vec{S}$ and $\vec{T}$ are compatible}\}|.

For simplicity, when A={u}A=\{u\}, we write extG(u,B){\rm{ext}}_{G}(u,B) instead of extG({u},B){\rm{ext}}_{G}(\{u\},B). In the rest of this section we give upper bounds for extG(A,B){\rm{ext}}_{G}(A,B) for specific graphs GG and subgraphs G[A]G[A] and G[B]G[B]. If AA induces a complete graph with kk vertices, then we remark that any K3K^{\circlearrowright}_{3}-free orientation S\vec{S} of G[A]G[A] is a transitive orientation, which thus induces a unique ordering (v1,,vk)(v_{1},\ldots,v_{k}) of the vertices of AA, called the transitive ordering of S\vec{S}, such that every edge {vi,vj}\{v_{i},v_{j}\} (1i<jk1\leq i<j\leq k) is oriented from viv_{i} to vjv_{j} in S\vec{S}.

Given a graph GG, a vertex vV(G)v\in V(G) and a clique WV(G){v}W\subseteq V(G)\setminus\{v\}, we denote by dG(v,W)d_{G}(v,W) the number of neighbors of vv in WW. Consider a K3K^{\circlearrowright}_{3}-free orientation W\vec{W} of G[W]G[W] and note that if we have a transitive ordering (w1,,wk)(w_{1},\ldots,w_{k}) of W\vec{W}, then there are exactly dG(v,W)+1d_{G}(v,W)+1 ways to extend this ordering to a transitive ordering of vWv\cup W, as it depends only on the position in which we place vv in (w1,,wk)(w_{1},\ldots,w_{k}) with respect to its neighbors in WW (there are dG(v,W)+1d_{G}(v,W)+1 such positions). We summarize this discussion in the following proposition.

Proposition 2.1.

Given a graph GG, vV(G)v\in V(G) and WV(G){v}W\subseteq V(G)\setminus\{v\}. If G[W]G[W] is a complete graph, then extG(v,W)=dG(v,W)+1{\rm{ext}}_{G}(v,W)=d_{G}(v,W)+1.

In the next two results, we give an upper bound for extG(A,B){\rm{ext}}_{G}(A,B) when AA induces a complete graph and B={u,v}B=\{u,v\} is an edge. We denote by dA(x)d_{A}(x) the neighborhood of xx in AA and dA(x,y)d_{A}(x,y) denotes the number of common neighbors of xx and yy in AA.

Lemma 2.2.

Let r3r\geq 3 be an integer and let GG be a graph. If A,BV(G)A,B\subseteq V(G) induce disjoint cliques with |A|=r|A|=r and B={u,v}B=\{u,v\} such that dA(x,y)0d_{A}(x,y)\neq 0, then

extG(A,B)(dA(u)+1)(dA(v)+1)(dA(u,v)+12).{\rm{ext}}_{G}(A,B)\leq(d_{A}(u)+1)(d_{A}(v)+1)-\dbinom{d_{A}(u,v)+1}{2}.
Proof.

Let A\vec{A} and B\vec{B} be arbitrary K3K^{\circlearrowright}_{3}-free orientations of G[A]G[A] and G[B]G[B] respectively. Suppose without loss of generality that B\vec{B} assigns the orientation of {u,v}\{u,v\} from uu to vv and consider the transitive ordering of A\vec{A}. We estimate in how many ways one can include uu and vv in the ordering (v1,,vr)(v_{1},\ldots,v_{r}) while keeping it transitive. Since {u}NA(u)\{u\}\cup N_{A}(u) and {v}NA(v)\{v\}\cup N_{A}(v) are cliques, by Proposition 2.1 we have extG(u,A)dA(u)+1{\rm{ext}}_{G}(u,A)\leq d_{A}(u)+1 and extG(v,A)dA(v)+1{\rm{ext}}_{G}(v,A)\leq d_{A}(v)+1, which gives at most (dA(u)+1)(dA(v)+1)(d_{A}(u)+1)(d_{A}(v)+1) positions to put the vertices uu and vv in the transitive ordering of A\vec{A}. Note that there are (dA(u,v)+12)\binom{d_{A}(u,v)+1}{2} ways to place {u,v}\{u,v\} in the transitive ordering of A\vec{A} such that uu appears after vv and they have a common neighbor between them. But each such ordering induces a K3K^{\circlearrowright}_{3}. This finishes the proof. ∎

The following corollary bounds the number of extensions extG(A,B){\rm{ext}}_{G}(A,B) when AA is a maximum clique of GG and B={u,v}B=\{u,v\} is an edge.

Corollary 2.3.

Let r2r\geq 2 be an integer and let GG be a Kr+1K_{r+1}-free graph. If A,BV(G)A,B\subseteq V(G) are disjoint cliques with |A|=r|A|=r and B={x,y}B=\{x,y\}, then

extG(A,B)r2(r12).{\rm{ext}}_{G}(A,B)\leq r^{2}-{r-1\choose 2}.
Proof.

Let dx=dG(x,A)d_{x}=d_{G}(x,A) and dy=dG(y,A)d_{y}=d_{G}(y,A), and put d=dx+dyd=d_{x}+d_{y}. If drd\leq r, then by applying Proposition 2.1 twice, with xx and yy, we have

extG(A,B)(dx+1)(dy+1)d24+d+1r24+r+1r2(r12).{\rm{ext}}_{G}(A,B)\leq(d_{x}+1)(d_{y}+1)\leq\dfrac{d^{2}}{4}+d+1\leq\frac{r^{2}}{4}+r+1\leq r^{2}-{r-1\choose 2}.

Therefore, we assume that d>rd>r. Note that since GG is Kr+1K_{r+1}-free, we have dx,dyr1d_{x},d_{y}\leq r-1. Applying Lemma 2.2 and using the fact that, for d>rd>r, we have dA(x,y)drd_{A}(x,y)\geq d-r, we obtain

extG(A,B)(dx+1)(dy+1)(dr+12)d24+d+1(dr+12).{\rm{ext}}_{G}(A,B)\leq(d_{x}+1)(d_{y}+1)-{d-r+1\choose 2}\leq\dfrac{d^{2}}{4}+d+1-\dbinom{d-r+1}{2}. (1)

One can check that the right-hand side of (1) is a polynomial on dd of degree 22 with negative leading coefficient and it is a growing function in the interval (,2r+1)(-\infty,2r+1). Since d2(r1)d\leq 2(r-1), we have

extG(A,B)(r1)2+2(r1)+1(r12)=r2(r12).{\rm{ext}}_{G}(A,B)\leq(r-1)^{2}+2(r-1)+1-\dbinom{r-1}{2}=r^{2}-\dbinom{r-1}{2}.

Given a graph GG, an edge ee, and an orientation S\vec{S} of E(G){e}E(G)\setminus\{e\}, we say that the orientation of ee is forced if there is only one orientation of ee compatible with S\vec{S}. In the next two lemmas we provide bounds for the number of K3K^{\circlearrowright}_{3}-free orientations of K4K_{4}-free graphs.

Lemma 2.4.

Let GG be a K4K_{4}-free graph and let AA, BV(G)B\subseteq V(G) be disjoint cliques of size 22. Then extG(A,B)5{\rm{ext}}_{G}(A,B)\leq 5.

Proof.

First, note that if eG(A,B)2e_{G}(A,B)\leq 2, then the trivial bound extG(A,B)2e(A,B){\rm{ext}}_{G}(A,B)\leq 2^{e(A,B)} implies extG(A,B)4{\rm{ext}}_{G}(A,B)\leq 4. Also, since GG is K4K_{4}-free, we have eG(A,B)3e_{G}(A,B)\leq 3. Thus, we may assume that eG(A,B)=3e_{G}(A,B)=3, i.e., G[AB]G[A\cup B] is a K4K_{4}^{-}. Let A={u1,u2}A=\{u_{1},u_{2}\} and B={v1,v2}B=\{v_{1},v_{2}\} so that u2v2u_{2}v_{2} is not an edge and consider an arbitrary orientation of the edges {u1,u2}\{u_{1},u_{2}\} and {v1,v2}\{v_{1},v_{2}\}.

If the oriented edges are u1u2u_{1}u_{2} and v1v2v_{1}v_{2} (or, by symmetry, u2u1u_{2}u_{1} and v2v1v_{2}v_{1}), then for the two possible orientations of {u1,v1}\{u_{1},v_{1}\}, the orientation of one of the two remaining edges in EG(A,B)E_{G}(A,B) is forced. Thus, since there is only one edge left to orient in EG(A,B)E_{G}(A,B), which can be done in two ways, we have extG(A,B)4{\rm{ext}}_{G}(A,B)\leq 4.

It remains to consider the case where the oriented edges are u1u2u_{1}u_{2} and v2v1v_{2}v_{1} (or, by symmetry, u2u1u_{2}u_{1} and v1v2v_{1}v_{2}). If {u1v1}\{u_{1}v_{1}\} is oriented from u1u_{1} to v1v_{1}, then the orientation of the two remaining edges in EG(A,B)E_{G}(A,B) are forced, which gives us one K3K^{\circlearrowright}_{3}-free orientation. On the other hand, if {u1v1}\{u_{1}v_{1}\} is oriented from v1v_{1} to u1u_{1}, then one can orient the both remaining edges in E(A,B)E(A,B) in two ways, which in total gives that extG(A,B)5{\rm{ext}}_{G}(A,B)\leq 5. ∎

Lemma 2.5.

Let GG be a K4K_{4}-free graph and let uV(G)u\in V(G) and BV(G)B\subseteq V(G) with |B|=4|B|=4. If G[B]G[B] induces a copy of K4K_{4}^{-}, then extG(u,B)5{\rm{ext}}_{G}(u,B)\leq 5.

Proof.

Consider an arbitrary orientation of the edges of G[B]G[B]. We may assume that dB(u)3d_{B}(u)\geq 3, as otherwise we have extG(u,B)4{\rm{ext}}_{G}(u,B)\leq 4. Since GG is K4K_{4}-free and G[B]G[B] induces a copy of K4K_{4}^{-}, the vertex uu must have exactly three neighbors in BB, which span an induced path v1v2v3v_{1}v_{2}v_{3}. By symmetry, we assume that {v1,v2}\{v_{1},v_{2}\} is oriented from v1v_{1} to v2v_{2}. If we orient uv1uv_{1} from uu to v1v_{1}, then the orientation of {u,v2}\{u,v_{2}\} is forced, which leaves two possible orientations for the edge {u,v3}\{u,v_{3}\}. On the other hand, if we orient uv1uv_{1} from uu to v1v_{1}, we just apply Proposition 2.1 to conclude that extG(u,{v2,v3})3{\rm{ext}}_{G}(u,\{v_{2},v_{3}\})\leq 3. Combining the possible orientations, we obtain extG(u,B)5{\rm{ext}}_{G}(u,B)\leq 5. ∎

We now provide an upper bound for extG(A,B){\rm{ext}}_{G}(A,B) (see Lemma 2.7 below) in a specific configuration of a K4K_{4}-free graph GG, and subsets of vertices AA and BB, which is proved using the following proposition.

Proposition 2.6.

Let PP be a path abcdeabcde, and let T={ac,bd,ce}T=\{ac,bd,ce\}. Given an orientation T\vec{T} of TT, there are at most eight orientations of E(P)E(P) compatible with T\vec{T}. Moreover, if the edges {a,c}\{a,c\} and {b,d}\{b,d\} are oriented, respectively, towards aa and dd, then there are at most 77 such orientations.

Proof.

By Proposition 2.1, there are three orientations of T1=G[{a,b,c}]T_{1}=G[\{a,b,c\}] (resp. T2=G[{c,d,e}]T_{2}=G[\{c,d,e\}]) compatible with T\vec{T}, and hence there are at most nine orientations of E(P)E(P) compatible with T\vec{T}. In these orientations, each direction of {b,c}\{b,c\} and {c,d}\{c,d\} appears at least once. If {b,d}\{b,d\} is oriented towards dd (resp. towards bb), then the orientations in which {b,c}\{b,c\} and {c,d}\{c,d\} are oriented, respectively, towards bb and cc (resp. cc and dd) are not compatible with T\vec{T}. Therefore, there are at most eight orientations of E(P)E(P) compatible with T\vec{T}. Now, suppose that {a,c}\{a,c\} and {b,d}\{b,d\} are oriented towards aa and dd. If we orient {b,c}\{b,c\} towards cc (resp. bb), then {a,b}\{a,b\} must be oriented towards aa (resp. {c,d}\{c,d\} must be oriented towards dd), and there are three orientations of E(T2)E(T_{2}) (resp. four orientations of {{a,b},{d,e}}\{\{a,b\},\{d,e\}\}) from which we can complete a compatible orientation of E(P)E(P). Therefore, there are at most seven orientations of E(P)E(P). ∎

Lemma 2.7.

Let GG be a K4K_{4}-free graph and let AA, BV(G)B\subseteq V(G) be disjoint cliques of size 33. Then extG(A,B)15{\rm{ext}}_{G}(A,B)\leq 15.

Proof.

Let A={x1,x2,x3}A=\{x_{1},x_{2},x_{3}\} and B={y1,y2,y3}B=\{y_{1},y_{2},y_{3}\}. Since GG is K4K_{4}-free, yiy_{i} cannot be adjacent to every vertex of AA, for i=1,2,3i=1,2,3. This implies that dA(yi)2d_{A}(y_{i})\leq 2, for i=1,2,3i=1,2,3. Analogously, we have dB(xi)2d_{B}(x_{i})\leq 2, for i=1,2,3i=1,2,3. Thus the set EE of edges in GG joining AA and BB induces a set of paths and cycles. Since GG is K4K_{4}-free, EE does contain a cycle of length 44. If |E|3|E|\leq 3, then extG(A,B)2|E|8{\rm{ext}}_{G}(A,B)\leq 2^{|E|}\leq 8, as desired. If |E|=4|E|=4, then some vertex, say x1Ax_{1}\in A, is incident to two edges of EE, say {x1,y1}\{x_{1},y_{1}\} and {x1,y2}\{x_{1},y_{2}\}, which implies that extG(x1,B)3{\rm{ext}}_{G}(x_{1},B)\leq 3, and hence extG(A,B)extG(x1,B)2|E{{x1,y1},{x1,y2}}|12{\rm{ext}}_{G}(A,B)\leq{\rm{ext}}_{G}(x_{1},B)\cdot 2^{|E\setminus\{\{x_{1},y_{1}\},\{x_{1},y_{2}\}\}|}\leq 12, as desired. If |E|=5|E|=5, then |E||E| induces a path of length 55, say x1y1x2y2x3y3x_{1}y_{1}x_{2}y_{2}x_{3}y_{3}. In this case, note that {x1,x2}\{x_{1},x_{2}\} and {y1,y2}\{y_{1},y_{2}\} are disjoint cliques of size 22, and hence, by Lemma 2.4, we have extG({x1,x2},{y1,y2})5{\rm{ext}}_{G}(\{x_{1},x_{2}\},\{y_{1},y_{2}\})\leq 5. Since each edge in EE either joins {x1,x2}\{x_{1},x_{2}\} to {y1,y2}\{y_{1},y_{2}\}, or is adjacent to x3x_{3}, we have extG(A,B)extG({x1,x2},{y1,y2})extG(x3,B)15{\rm{ext}}_{G}(A,B)\leq{\rm{ext}}_{G}(\{x_{1},x_{2}\},\{y_{1},y_{2}\})\cdot{\rm{ext}}_{G}(x_{3},B)\leq 15, as desired.

Thus, we may assume |E|=6|E|=6, and hence EE induces the cycle x1y1x2y2x3y3x1x_{1}y_{1}x_{2}y_{2}x_{3}y_{3}x_{1}. By symmetry, we may assume that {x1,x2}\{x_{1},x_{2}\}, {x1,x3}\{x_{1},x_{3}\} are both oriented towards x1x_{1}, and {y1,y3}\{y_{1},y_{3}\} is oriented towards y1y_{1}. Suppose {y2,y3}\{y_{2},y_{3}\} is oriented towards y2y_{2}. If we orient {x1,y1}\{x_{1},y_{1}\} towards y1y_{1}, then x2y1x_{2}y_{1} must be oriented towards y1y_{1}, and, since {x1,x3}\{x_{1},x_{3}\} and {y2,y3}\{y_{2},y_{3}\} are oriented towards x1x_{1} and y2y_{2}, by Proposition 2.6, there are 77 compatible orientations of the edges in the path x2y2x3y3x1x_{2}y_{2}x_{3}y_{3}x_{1} (see Figure 1(a)). If we orient {x1,y1}\{x_{1},y_{1}\} towards x1x_{1}, then {y3,x1}\{y_{3},x_{1}\} must be oriented towards x1x_{1}, and by Proposition 2.6, there are 88 compatible orientations of the edges in the path y1x2y2x3y3y_{1}x_{2}y_{2}x_{3}y_{3} (see Figure 1(b)). Thus, there are 1515 compatible orientations of EE, as desired. Thus, we may assume that {y2,y3}\{y_{2},y_{3}\} is oriented towards y3y_{3}, and hence {y1,y2}\{y_{1},y_{2}\} must be oriented towards y1y_{1}. If we orient {x1,y1}\{x_{1},y_{1}\} towards y1y_{1}, then {x2,y1}\{x_{2},y_{1}\} must be oriented towards y1y_{1}, and by Proposition 2.6, there are 88 compatible orientations of the edges in the path x2y2x3y3x1x_{2}y_{2}x_{3}y_{3}x_{1} (see Figure 1(c)). If we orient {x1,y1}\{x_{1},y_{1}\} towards x1x_{1}, then {y3,x1}\{y_{3},x_{1}\} must be oriented towards x1x_{1}, and, since {x1,x3}\{x_{1},x_{3}\} and {x1,x2}\{x_{1},x_{2}\} are oriented towards x1x_{1}, regardless of the orientation of {x2,x3}\{x_{2},x_{3}\}, by Proposition 2.6, there are 77 compatible orientations of the edges in the path y1x2y2x3y3y_{1}x_{2}y_{2}x_{3}y_{3} (see Figure 1(d)) Thus, there are 1515 compatible orientations of EE, as desired. ∎

x1x_{1}y1y_{1}x2x_{2}y2y_{2}x3x_{3}y3y_{3}
(a)
x1x_{1}y1y_{1}x2x_{2}y2y_{2}x3x_{3}y3y_{3}
(b)
x1x_{1}y1y_{1}x2x_{2}y2y_{2}x3x_{3}y3y_{3}
(c)
x1x_{1}y1y_{1}x2x_{2}y2y_{2}x3x_{3}y3y_{3}
(d)
Figure 1. Compatible orientations between two cliques of size 33 in a K4K_{4}-free graph.

3. Proof of the main theorem

In this section we prove our main result, Theorem 1.2. In order to bound the number of K3K^{\circlearrowright}_{3}-free orientations of a graph GG, we decompose it into disjoint cliques of different sizes and we use the results of Section 2 to bound the number of extensions of K3K^{\circlearrowright}_{3}-free orientations between those cliques. Before moving to the proof of the main theorem though, we need bounds on the number of K3K^{\circlearrowright}_{3}-free orientations of some small graphs. The first one concerns the complete tripartite graph K1,,K_{1,\ell,\ell}.

Proposition 3.1.

For any positive integer \ell, we have

D(K1,,,K3)=i=0j=0(i)(j)2(i)j+(j)i.D(K_{1,\ell,\ell},K^{\circlearrowright}_{3})=\sum_{i=0}^{\ell}\sum_{j=0}^{\ell}{\ell\choose i}{\ell\choose j}2^{(\ell-i)j+(\ell-j)i}.
Proof.

Let K1,,K_{1,\ell,\ell} be a complete tripartite graph with vertex partition {v}AB\{v\}\cup A\cup B. For 1i,j1\leq i,j\leq\ell there are (i)(j)\binom{\ell}{i}\binom{\ell}{j} orientations of the edges incident to vv with exactly ii out-neighbors of vv in AA, and jj in-neighbors of vv in BB, sets which we denote by A+A^{+} and BB^{-} respectively. For each of those orientations, the edges between A+A^{+} and BB^{-} and between AA+A\setminus A^{+} and BBB\setminus B^{-} are forced in any K3K^{\circlearrowright}_{3}-free orientation. Since any of the other (i)j+(j)i(\ell-i)j+(\ell-j)i edges can be oriented in two ways, we sum over ii and jj to get

D(K1,,,K3)=i=0j=0(i)(j)2(i)j+(j)i.D(K_{1,\ell,\ell},K^{\circlearrowright}_{3})=\sum_{i=0}^{\ell}\sum_{j=0}^{\ell}{\ell\choose i}{\ell\choose j}2^{(\ell-i)j+(\ell-j)i}.

In the rest of the paper, we count the number of K3K^{\circlearrowright}_{3}-free orientations of a graph by decomposing its vertex set and we often use the following inequality without explicit reference. For a partition of the vertices of a graph GG into sets AA and BB we have, from the definition of extG(A,B){\rm{ext}}_{G}(A,B), that

D(G,K3)D(G[A],K3)extG(A,B)D(G[B],K3),D(G,K^{\circlearrowright}_{3})\leq D(G[A],K^{\circlearrowright}_{3})\cdot{\rm{ext}}_{G}(A,B)\cdot D(G[B],K^{\circlearrowright}_{3}),

When AA is a clique, we define mA,B=max{|N(v,B)|+1:vA}m_{A,B}=\max\{|N(v,B)|+1:v\in A\} and use the bound

extG(A,B)(mA,B)|A|.{\rm{ext}}_{G}(A,B)\leq(m_{A,B})^{|A|}.

In the proof of Theorem 1.2, we first show that D(G,K3)<2n2/4D(G,K^{\circlearrowright}_{3})<2^{\lfloor n^{2}/4\rfloor} for every graph containing a K4K_{4}. For K4K_{4}-free graphs we may use Lemma 2.7 to bound the number of extensions between two triangles. But when considering graphs with no two disjoint triangles, we need the following result.

Lemma 3.2.

Let HH be a K4K_{4}-free graph with 77 vertices that contains a triangle TT, a matching {e1,e2}\{e_{1},e_{2}\} such that e1e_{1} and e2e_{2} are not incident to the vertices of TT, and that does not contains two vertex-disjoint triangles. Then, D(H,K3)<212D(H,K^{\circlearrowright}_{3})<2^{12}.

Proof.

Let HH be as in the statement. Recall that D(T,K3)=6D(T,K^{\circlearrowright}_{3})=6 and D(e1,K3)=D(e2,K3)=2D(e_{1},K^{\circlearrowright}_{3})=D(e_{2},K^{\circlearrowright}_{3})=2. Moreover, extH(T,ei)8{\rm{ext}}_{H}(T,e_{i})\leq 8 for i=1,2i=1,2, by Corollary 2.3. Also, since H[e1e2]H[e_{1}\cup e_{2}] is triangle-free, EH(e1,e2)2E_{H}(e_{1},e_{2})\leq 2 and hence extH(e1,e2)4{\rm{ext}}_{H}(e_{1},e_{2})\leq 4. Throughout the proof, we use each of these bounds unless the structure of HH allows us to obtain a better bound.

First note that if there is at most one edge between e1e_{1} and e2e_{2}, then extH(e1,e2)2{\rm{ext}}_{H}(e_{1},e_{2})\leq 2. In this case we use the bound

D(H,K3)D(T,K3)D(e1,K3)D(e2,K3)extH(T,e1)extH(T,e2)extH(e1,e2),D(H,K^{\circlearrowright}_{3})\leq D(T,K^{\circlearrowright}_{3})\cdot D(e_{1},K^{\circlearrowright}_{3})\cdot D(e_{2},K^{\circlearrowright}_{3})\cdot{\rm{ext}}_{H}(T,e_{1})\cdot{\rm{ext}}_{H}(T,e_{2})\cdot{\rm{ext}}_{H}(e_{1},e_{2}),

to obtain D(H,K3)622882<212D(H,K^{\circlearrowright}_{3})\leq 6\cdot 2\cdot 2\cdot 8\cdot 8\cdot 2<2^{12}, which allows us to restrict to graphs HH such that H[e1e2]K2,2H[e_{1}\cup e_{2}]\simeq K_{2,2}.

We count the number of orientations by considering different values of EH(e1e2,V(T))E_{H}(e_{1}\cup e_{2},V(T)). In particular, since HH is K4K_{4}-free, we have that EH(ei,V(T))4E_{H}(e_{i},V(T))\leq 4 for i=1,2i=1,2. First note that if E(ei,V(T))=3E(e_{i},V(T))=3 for i=1,2i=1,2, then extH(ei,T)6{\rm{ext}}_{H}(e_{i},T)\leq 6. Therefore, if there are at most six edges between H[e1e2]H[e_{1}\cup e_{2}] and TT, then either there are at most three edges between each eie_{i} and TT, which implies extG(T,e1),extG(T,e2)6{\rm{ext}}_{G}(T,e_{1}),{\rm{ext}}_{G}(T,e_{2})\leq 6; or, without loss of generality, there are at most two edges between e1e_{1} and TT, which implies extG(T,e1)4{\rm{ext}}_{G}(T,e_{1})\leq 4. In both cases we have that extG(T,e1)extG(T,e2)36{\rm{ext}}_{G}(T,e_{1})\cdot{\rm{ext}}_{G}(T,e_{2})\leq 36 and consequently that D(H,K3)622364<212D(H,K^{\circlearrowright}_{3})\leq 6\cdot 2\cdot 2\cdot 36\cdot 4<2^{12}.

Thus, we assume that 7EH(e1e2,V(T))87\leq E_{H}(e_{1}\cup e_{2},V(T))\leq 8. Then, without loss of generality, we have EH(e1,V(T))=4E_{H}(e_{1},V(T))=4 and, by Turán’s Theorem, H1=H[e1V(T)]H_{1}=H[e_{1}\cup V(T)] is isomorphic to K1,2,2K_{1,2,2}. If EH(e2,V(T))=3E_{H}(e_{2},V(T))=3, the aforementioned bounds and Lemma 3.1 yields

D(H,K3)D(H1,K3)extH(e2,T)ext(e1,e2)8284<212.D(H,K^{\circlearrowright}_{3})\leq D(H_{1},K^{\circlearrowright}_{3})\cdot{\rm{ext}}_{H}(e_{2},T)\cdot{\rm{ext}}(e_{1},e_{2})\leq 82\cdot 8\cdot 4<2^{12}.

Finally, if EH(ei,V(T))=4E_{H}(e_{i},V(T))=4 for both i=1,2i=1,2, then the graphs Hi=H[eiV(T)]H_{i}=H[e_{i}\cup V(T)] are isomorphic to K1,2,2K_{1,2,2} with viV(T)v_{i}\in V(T) being the vertex of degree 44 in HiH_{i}. Since HH does not contain two disjoint triangles, then v1=v2v_{1}=v_{2} and since H[e1e2]K2,2H[e_{1}\cup e_{2}]\simeq K_{2,2}, we have in fact HK1,3,3H\simeq K_{1,3,3}. Finally, Lemma 3.1 yields D(H,K3)=2754<212D(H,K^{\circlearrowright}_{3})=2754<2^{12}. ∎

In the remainder of this section we prove Theorem 1.2, which follows by induction on the number of vertices. Unfortunately, we need a slightly stronger base of induction than the one given by Proposition 1.1, which is the content of the next proposition. We present its proof in the Appendix (Section 5). Recall that the clique number of a graph GG, denoted by ω(G)\omega(G), is the size of a clique in GG with a maximum number of vertices.

Proposition 3.3.

Let GG be an nn-vertex graph. If 9n7+min{ω(G),8}9\leq n\leq 7+\min\{\omega(G),8\}, then D(G,K3)2n2/4D(G,K^{\circlearrowright}_{3})\leq 2^{\lfloor n^{2}/4\rfloor}. Furthermore, D(G,K3)=2n2/4D(G,K^{\circlearrowright}_{3})=2^{\lfloor n^{2}/4\rfloor} if and only if GKn/2,n/2G\simeq K_{\lfloor n/2\rfloor,\lceil n/2\rceil}.

We are now ready to prove Theorem 1.2, which is rewritten as follows:

Theorem (Theorem 1.2).

Let GG be an nn-vertex graph. If n8n\geq 8, then D(G,K3)2n2/4.D(G,K^{\circlearrowright}_{3})\leq 2^{\lfloor n^{2}/4\rfloor}. Furthermore, D(G,K3)=2n2/4D(G,K^{\circlearrowright}_{3})=2^{\lfloor n^{2}/4\rfloor} if and only if GKn/2,n/2G\simeq K_{\lfloor n/2\rfloor,\lceil n/2\rceil}.

Proof.

Let r=ω(G)r=\omega(G). The proof follows by induction on nn. By Proposition 1.1, the statement holds for n=8n=8. If 9n109\leq n\leq 10, then the result follows from Mantel’s Theorem (see [Ma1907]) for r=2r=2, and from Proposition 3.3 for r3r\geq 3, as n7+min{r,8}n\leq 7+\min\{r,8\}. Thus, assume n11n\geq 11 and suppose that the statement holds for any graph with less than nn vertices (but at least 8 vertices).

Let KK be a clique of GG of size s=min{r,8}s=\min\{r,8\}. If n7+sn\leq 7+s, then the result follows from Proposition 3.3, so we may assume that ns8n-s\geq 8. Thus, we can apply the induction hypothesis for any subgraph of GG with at least nsn-s vertices.

If r8r\geq 8, then we have s=8s=8. By Proposition 1.1, we have D(K,K3)216D(K,K^{\circlearrowright}_{3})\leq 2^{16} and, by Proposition 2.1, for each vertex vV(GK)v\in V(G-K) we have extG(v,K)9{\rm{ext}}_{G}(v,K)\leq 9. Therefore, applying the induction hypothesis to GKG-K we have

D(G,K3)\displaystyle D(G,K^{\circlearrowright}_{3}) D(K,K3)extG(GK,K)D(GK,K3)\displaystyle\leq D(K,K^{\circlearrowright}_{3})\cdot{\rm{ext}}_{G}(G-K,K)\cdot D(G-K,K^{\circlearrowright}_{3})
2169n82(n8)2/4<2n2/4,\displaystyle\leq 2^{16}\cdot 9^{n-8}\cdot 2^{(n-8)^{2}/4}<2^{\lfloor n^{2}/4\rfloor}, (2)

where we used that n81n-8\geq 1. From now on we assume that r7r\leq 7 and consequently that s=rs=r. Due to the different structure of the graphs with small clique numbers, we divide the rest of the proof according to the value of rr.

Case 𝐫{𝟓,𝟔,𝟕}\mathbf{r\in\{5,6,7\}}. Let G=GKG^{\prime}=G-K. Since GG is Kr+1K_{r+1}-free, every vertex vv of V(G)V(G^{\prime}) is adjacent to at most r1r-1 vertices of KK. Then, by Proposition 2.1, we have extG(v,K)r{\rm{ext}}_{G}(v,K)\leq r for every vV(G)v\in V(G^{\prime}). Therefore, the following holds for r{5,6,7}r\in\{5,6,7\} and n9n\geq 9.

D(G,K3)\displaystyle D(G,K^{\circlearrowright}_{3}) D(K,K3)extG(G,K)D(G,K3)\displaystyle\leq D(K,K^{\circlearrowright}_{3})\cdot{\rm{ext}}_{G}(G^{\prime},K)\cdot D(G^{\prime},K^{\circlearrowright}_{3})
r!rnrD(G,K3)\displaystyle\leq r!\cdot r^{n-r}\cdot D(G^{\prime},K^{\circlearrowright}_{3})
r!2(nr)log2r2(nr)2/4\displaystyle\leq r!\cdot 2^{(n-r)\log_{2}r}\cdot 2^{(n-r)^{2}/4}
<2r2+2r(nr)14+(nr)242n2/4.\displaystyle<2^{\frac{r^{2}+2r(n-r)-1}{4}+\frac{(n-r)^{2}}{4}}\leq 2^{\lfloor n^{2}/4\rfloor}. (3)

Case 𝐫=𝟒\mathbf{r=4}. Let G=GKG^{\prime}=G-K. By the induction hypothesis, for any uV(G)u\in V(G), we have D(Gu,K3)2(n1)2/4D(G-u,K^{\circlearrowright}_{3})\leq 2^{\lfloor(n-1)^{2}/4\rfloor}. If GG contains a vertex uu with degree smaller than (n1)/2(n-1)/2, then

D(G,K3)<D(Gu,K3)2d(u)2n2/4.D(G,K^{\circlearrowright}_{3})<D(G-u,K^{\circlearrowright}_{3})\cdot 2^{d(u)}\leq 2^{\lfloor n^{2}/4\rfloor}. (4)

Thus, we may assume that δ(G)(n1)/2\delta(G)\geq(n-1)/2. Since n11n\geq 11, we have δ(G)5\delta(G)\geq 5 and since GG is K5K_{5}-free, each vertex in V(G)V(G^{\prime}) contains at most 33 neighbors in KK. Hence, we have δ(G)2\delta(G^{\prime})\geq 2. Therefore, since |V(G)|7|V(G^{\prime})|\geq 7, there is a matching with at least two edges in GG^{\prime}.

Let y2y\geq 2 be the size of a maximum matching MM. By Lemma 2.2, we have extG(e,K)13{\rm{ext}}_{G}(e,K)\leq 13, for every eE(G)e\in E(G^{\prime}). Moreover, since every vertex in V(G)V(G^{\prime}) has at most 33 neighbors in KK, by Proposition 2.1, we have extG(v,K)4{\rm{ext}}_{G}(v,K)\leq 4 for every vV(G)V(M)v\in V(G^{\prime})\setminus V(M). Therefore, we have

D(G,K3)\displaystyle D(G,K^{\circlearrowright}_{3}) D(K,K3)extG(V(M),K)extG(V(G)V(M),K)D(G,K3)\displaystyle\leq D(K,K^{\circlearrowright}_{3})\cdot{\rm{ext}}_{G}(V(M),K)\cdot{\rm{ext}}_{G}(V(G^{\prime})\setminus V(M),K)\cdot D(G^{\prime},K^{\circlearrowright}_{3})
4!13y4n42y2(n4)2/4\displaystyle\leq 4!\cdot 13^{y}\cdot 4^{n-4-2y}\cdot 2^{\lfloor(n-4)^{2}/4\rfloor}
3(1316)y2322(n4)2(n4)2/4<2n2/4,\displaystyle\leq 3\cdot\left(\dfrac{13}{16}\right)^{y}\cdot 2^{3}\cdot 2^{2(n-4)}\cdot 2^{(n-4)^{2}/4}<2^{\lfloor n^{2}/4\rfloor}, (5)

as 3(13/16)223/43\cdot(13/16)^{2}\leq 2^{3/4}.

Case 𝐫=𝟑\mathbf{r=3}. Let 𝒯\mathcal{T} be a maximum collection of vertex-disjoint triangles of GG. Set G=GT𝒯V(T)G^{\prime}=G-\cup_{T\in\mathcal{T}}V(T), let MM be a maximum matching in GG^{\prime}, and let Z=V(G)V(M)Z=V(G^{\prime})\setminus V(M). Clearly, GG^{\prime} is a K3K_{3}-free graph and ZZ is an independent set. Set x=|𝒯|x=|\mathcal{T}|, y=|M|y=|M| and z=|Z|z=|Z| and note that n=3x+2y+zn=3x+2y+z.

By Lemma 2.7, we have extG(T1,T2)15{\rm{ext}}_{G}(T_{1},T_{2})\leq 15 for every T1,T2𝒯T_{1},T_{2}\in\mathcal{T} and by Lemma 2.2 we have extG({u,v},T)8{\rm{ext}}_{G}(\{u,v\},T)\leq 8 for every {u,v}M\{u,v\}\in M and every T𝒯T\in\mathcal{T}. Moreover, since GG is K4K_{4}-free, by Proposition 2.1, we have extG(v,T)3{\rm{ext}}_{G}(v,T)\leq 3 for every vZv\in Z and every T𝒯T\in\mathcal{T}. Since GG^{\prime} is K3K_{3}-free, no vertex in ZZ is adjacent to two vertices of the same edge in MM, and hence extG(u,{v,w})2{\rm{ext}}_{G}(u,\{v,w\})\leq 2 for every uZu\in Z and {u,v}M\{u,v\}\in M. Finally, note that D(T,K3)6D(T,K^{\circlearrowright}_{3})\leq 6 for every T𝒯T\in\mathcal{T}, and since GG^{\prime} is K3K_{3}-free, we have D(G[M],K3)2(2y)2/4=2y2D(G[M],K^{\circlearrowright}_{3})\leq 2^{(2y)^{2}/4}=2^{y^{2}}. Therefore, we have D(G,K3)6x15(x2)8xy2y23xz2yz=f(x,y,z)D(G,K^{\circlearrowright}_{3})\leq 6^{x}\cdot 15^{x\choose 2}\cdot 8^{xy}\cdot 2^{y^{2}}\cdot 3^{xz}\cdot 2^{yz}=f(x,y,z).

Claim.

f(x,y,z)<2n2/4f(x,y,z)<2^{\lfloor n^{2}/4\rfloor} when (i) x3x\geq 3 or (ii) z2z\geq 2.

Proof.

Since n=3x+2y+zn=3x+2y+z, we have that

n214=9x24+3xy+y2+32xz+yz+z214.\frac{n^{2}-1}{4}=\frac{9x^{2}}{4}+3xy+y^{2}+\frac{3}{2}xz+yz+-\frac{z^{2}-1}{4}.

We are left to prove that xlog26+(x2)log215+xzlog239x2/4+3xz/2(z21)/4x\log_{2}6+\binom{x}{2}\log_{2}15+xz\log_{2}3\leq 9x^{2}/4+3xz/2-(z^{2}-1)/4. By using the bounds log2153.95\log_{2}15\leq 3.95, log262.6\log_{2}6\leq 2.6 and log231.6\log_{2}3\leq 1.6 and multiplying the previous equation by 44, we are left with the following inequality:

1.1x22.5x0.4xz+z21>0.1.1x^{2}-2.5x-0.4xz+z^{2}-1>0. (6)

Note that z20.4xz0.04x2z^{2}-0.4xz\geq-0.04x^{2} and, moreover, that x22.5x1>0x^{2}-2.5x-1>0 for every x3x\geq 3. Finally, we are left with the case x{1,2}x\in\{1,2\} and z2z\geq 2, which can be done by replacing each value of xx in (6) and using that z2z\geq 2. ∎

Therefore, we may assume x2x\leq 2 and z1z\leq 1. In this case, we need to explore the structure of the graph GG carefully. Recall that y=|M|y=|M| and z=|Z|z=|Z|, where MM is a maximum matching of GG^{\prime} and Z=V(G)V(M)Z=V(G^{\prime})\setminus V(M). Since n11n\geq 11, we have MM\neq\emptyset.

Suppose first that x=2x=2 and let T1T_{1} and T2T_{2} be the triangles in 𝒯\mathcal{T}. Let ee be an edge of MM and H=G[V(T1)V(T2)eZ]H=G[V(T_{1})\cup V(T_{2})\cup e\cup Z]. Since |V(H)|{8,9}|V(H)|\in\{8,9\} and HH is not a balanced complete bipartite graph, by Proposition 3.3, we have D(H,K3)<216+4zD(H,K^{\circlearrowright}_{3})<2^{16+4z}. By Lemmas 2.1 and 2.2 and the fact that GG^{\prime} is K3K_{3}-free, we have for every eM{e}e^{\prime}\in M\setminus\{e\}, that extG(e,Z)2z{\rm{ext}}_{G}(e^{\prime},Z)\leq 2^{z}, extG(e,e)4{\rm{ext}}_{G}(e^{\prime},e)\leq 4 and extG(e,Ti)8{\rm{ext}}_{G}(e^{\prime},T_{i})\leq 8 for i=1,2i=1,2. We conclude that extG(e,H)2z488=28+z{\rm{ext}}_{G}(e^{\prime},H)\leq 2^{z}\cdot 4\cdot 8\cdot 8=2^{8+z} for every eM{e}e^{\prime}\in M\setminus\{e\}. Finally, we have extG(e,e′′)4{\rm{ext}}_{G}(e^{\prime},e^{\prime\prime})\leq 4 for every two edges ee^{\prime} and e′′e^{\prime\prime} of MM, and there are 22 ways to orient each one of the y1y-1 edges of M{e}M\setminus\{e\}. Therefore,

D(G,K3)\displaystyle D(G,K^{\circlearrowright}_{3}) <216+4z2(8+z)(y1)4(y12)2y1=2((6+2y+z)2z)/4=2n2/4,\displaystyle<2^{16+4z}\cdot 2^{(8+z)(y-1)}\cdot 4^{y-1\choose 2}\cdot 2^{y-1}=2^{((6+2y+z)^{2}-z)/4}=2^{\lfloor n^{2}/4\rfloor}, (7)

where we used that z2=zz^{2}=z.

Thus, we may assume that x=1x=1. Let TT be the triangle in 𝒯\mathcal{T}. Since n11n\geq 11, we have y2y\geq 2. Let e1e_{1} and e2e_{2} be edges of MM and put H=G[V(T)e1e2]H=G[V(T)\cup e_{1}\cup e_{2}]. By Lemma 3.2, we have D(H,K3)<212D(H,K^{\circlearrowright}_{3})<2^{12}. For every eM{e1,e2}e\in M\setminus\{e_{1},e_{2}\} we have extG(e,e1)4{\rm{ext}}_{G}(e,e_{1})\leq 4 and extG(e,e2)4{\rm{ext}}_{G}(e,e_{2})\leq 4, and, by Lemma 2.2, we have extG(e,T)8{\rm{ext}}_{G}(e,T)\leq 8, and hence extG(e,H)extG(e,K)extG(e,e1)extG(e,e2)=128{\rm{ext}}_{G}(e,H)\leq{\rm{ext}}_{G}(e,K)\cdot{\rm{ext}}_{G}(e,e_{1})\cdot{\rm{ext}}_{G}(e,e_{2})=128. Also, by Proposition 2.1, for every vertex uV(T)V(M)u\notin V(T)\cup V(M) we have extG(u,T)3{\rm{ext}}_{G}(u,T)\leq 3, and since GG^{\prime} is K3K_{3}-free, extG(u,e)2{\rm{ext}}_{G}(u,e)\leq 2 for every eMe\in M. Therefore, we have

D(G,K3)<212128y22(2y4)2/4(32y)z2((3+2y+z)21)/4<2n2/4.D(G,K^{\circlearrowright}_{3})<2^{12}\cdot 128^{y-2}\cdot 2^{(2y-4)^{2}/4}\cdot(3\cdot 2^{y})^{z}\leq 2^{((3+2y+z)^{2}-1)/4}<2^{\lfloor n^{2}/4\rfloor}. (8)

Case 𝐫=𝟐\mathbf{r=2}. Since GG is triangle-free, we have D(G,K3)=2|E(G)|D(G,K^{\circlearrowright}_{3})=2^{|E(G)|}. Thus, by Mantel’s Theorem, if GG is not isomorphic to Kn/2,n/2K_{\lfloor n/2\rfloor,\lceil n/2\rceil}, we have

D(G,K3)<2n2/4.D(G,K^{\circlearrowright}_{3})<2^{\lfloor n^{2}/4\rfloor}. (9)

Furthermore, D(G,K3)=2n2/4D(G,K^{\circlearrowright}_{3})=2^{\lfloor n^{2}/4\rfloor} if and only if GKn/2,n/2G\simeq K_{\lfloor n/2\rfloor,\lceil n/2\rceil}. This completes the proof that for any nn-vertex graph GG with n8n\geq 8, we have D(G,K3)2n2/4D(G,K^{\circlearrowright}_{3})\leq 2^{\lfloor n^{2}/4\rfloor}. Since inequalities (3)–(9) are strict, we get that D(G,K3)=2n2/4D(G,K^{\circlearrowright}_{3})=2^{\lfloor n^{2}/4\rfloor} if and only if GKn/2,n/2G\simeq K_{\lfloor n/2\rfloor,\lceil n/2\rceil}, which concludes the proof of the theorem. ∎

4. Open problems

In this section we discuss some open problems and directions for future research. Given an oriented graph H\vec{H}, recall that D(n,H)D(n,\vec{H}) denotes the maximum number of H\vec{H}-free orientations of GG, for all nn-vertex graphs GG.

4.1. Avoiding an oriented graph

In this paper we determine D(n,K3)D(n,K^{\circlearrowright}_{3}) for every possible nn. A natural problem is to extend our result to estimate the number of orientations of graphs avoiding strongly connected cycles CkC^{\circlearrowright}_{k} for k4k\geq 4. As far as we know, the following problem is open even for large nn.

Problem 1.

Let k4k\geq 4. Determine D(n,Ck)D(n,C^{\circlearrowright}_{k}) for every n1n\geq 1.

An interesting problem is to determine D(n,H)D(n,\vec{H}) for any oriented graph H\vec{H}. For a tournament Tk\vec{T}_{k} on kk vertices, D(n,Tk)D(n,\vec{T}_{k}) was determined for sufficiently large nn by Alon and Yuster [AlYu06]. For a moment, we consider edge colorings of graphs. Denote by F(n,k)F(n,k) the maximum number of 22-edge colorings of a graph GG with no monochromatic KkK_{k}, among all graphs GG on nn vertices. The following result was proved by Yuster [Yu96] (for k=3k=3) and Alon, Balogh, Keevash and Sudakov [AlBaKeSu04] (for k4k\geq 4).

Lemma 4.1.

For every k3k\geq 3, there exists n0n_{0} such that for all nn0n\geq n_{0} we have F(n,k)=2n2/4F(n,k)=2^{\lfloor n^{2}/4\rfloor}.

Consider now the transitively oriented tournament KkK_{k}^{\shortrightarrow} with kk vertices. Using a simple argument, Alon and Yuster [AlYu06] used Lemma 4.1 to prove that D(n,K3)=2n2/4D(n,K_{3}^{\shortrightarrow})=2^{\lfloor n^{2}/4\rfloor} for n1n\geq 1. For k4k\geq 4, they proved that D(n,Kk)=2n2/4D(n,K_{k}^{\shortrightarrow})=2^{\lfloor n^{2}/4\rfloor} for a (very) large nn. Thus, the following problem remains open.

Problem 2.

Let k4k\geq 4. Determine D(n,Kk)D(n,K_{k}^{\shortrightarrow}) for every n1n\geq 1.

4.2. Avoiding families of oriented graphs

Another direction of research arises when, instead of forbidding a fixed oriented graph, we forbid families of oriented graphs. For example, one may consider orientations of graphs that avoid non-transitive tournaments. Denote by Tk(n)T_{k}(n) the maximum number of orientations of a graph GG in which every copy of KkK_{k} is transitively oriented, for every nn-vertex graph GG. The following problem generalizes Theorem 1.2.

Problem 3.

Let k4k\geq 4. Determine Tk(n)T_{k}(n) for every n1n\geq 1.

Consider the number of orientations of graphs that avoids strongly connected tournaments. We denote by Sk(n)S_{k}(n) the maximum number of orientations of a graph GG in which no copy of KkK_{k} is strongly connected, for every nn-vertex graph GG.

Problem 4.

Let k4k\geq 4. Determine Sk(n)S_{k}(n) for every n1n\geq 1.

Note that Problem 4 also generalizes Theorem 1.2. We remark that it would be interesting to determine Tk(n)T_{k}(n) and Sk(n)S_{k}(n) even if only for very large nn. For related problems in the context of random graphs, the reader is referred to [AlKoMoPa14, CoKoMoMo20].

References

5. Appendix

Here we prove Proposition 3.3, which states that for an nn-vertex graph GG with 9n7+min{ω(G),8}9\leq n\leq 7+\min\{\omega(G),8\} we have D(G,K3)2n2/4D(G,K^{\circlearrowright}_{3})\leq 2^{\lfloor n^{2}/4\rfloor} and, furthermore, D(G,K3)=2n2/4D(G,K^{\circlearrowright}_{3})=2^{\lfloor n^{2}/4\rfloor} if and only if GKn/2,n/2G\simeq K_{\lfloor n/2\rfloor,\lceil n/2\rceil}.

Similarly to the proof of Theorem 1.2, we explore the structure of the graph GG depending on the size of its maximum clique. By Mantel’s Theorem, we have D(G,K3)=2n2/4D(G,K^{\circlearrowright}_{3})=2^{\lfloor n^{2}/4\rfloor} when GG is the balanced complete bipartite graph. We show that if this is not the case, then D(G,K3)<2n2/4.D(G,K^{\circlearrowright}_{3})<2^{\lfloor n^{2}/4\rfloor}. To show that this holds we use straightforward computer methods to check some inequalities, namely, inequalities (10)–(19).

Proof of Proposition 3.3.

Let GG be an nn-vertex graph and for simplicity put r=ω(G)r=\omega(G). Suppose 9n7+min{r,8}9\leq n\leq 7+\min\{r,8\} and let WW be a clique of size |W|=min{r,8}|W|=\min\{r,8\} in GG. Put G=GWG^{\prime}=G\setminus W. Note that if |W|=8|W|=8, then Proposition 1.1 implies D(G,K3)(n8)!D(G^{\prime},K^{\circlearrowright}_{3})\leq(n-8)! and D(G[W],K3)216D(G[W],K^{\circlearrowright}_{3})\leq 2^{16}, and Proposition 2.1 implies extG(v,W)9{\rm{ext}}_{G}(v,W)\leq 9 for every vV(G)v\in V(G^{\prime}). Therefore, for every 9n15=7+min{r,8}9\leq n\leq 15=7+\min\{r,8\} we have

D(G,K3)(n8)!9n8216<2n2/4.D(G,K^{\circlearrowright}_{3})\leq(n-8)!\cdot 9^{n-8}\cdot 2^{16}<2^{\lfloor n^{2}/4\rfloor}. (10)

From now on we assume that |W|7|W|\leq 7, which implies |W|=r|W|=r and, from Proposition (1.1), we have D(G,K3)(nr)!D(G^{\prime},K^{\circlearrowright}_{3})\leq(n-r)! and D(G[W],K3)r!D(G[W],K^{\circlearrowright}_{3})\leq r!. Note that since GG has no clique of size r+1r+1, for each vV(G)v\in V(G^{\prime}) we have dG(v,W)r1d_{G}(v,W)\leq r-1, which implies from Proposition 2.1 that extG(v,W)r{\rm{ext}}_{G}(v,W)\leq r for every vV(G)v\in V(G^{\prime}). Combining these facts, for r{6,7}r\in\{6,7\} and 9n7+r9\leq n\leq 7+r we have

D(G,K3)(nr)!rnrr!<2n2/4.D(G,K^{\circlearrowright}_{3})\leq(n-r)!\cdot r^{n-r}\cdot r!<2^{\lfloor n^{2}/4\rfloor}. (11)

Therefore, we may assume that r5r\leq 5. Due to the different structure of the graphs with small clique numbers, we divide the rest of the proof according to the value of rr.

Case 𝐫=𝟓\mathbf{r=5}. Let MM be a maximum matching of GG^{\prime}, say with xx edges (0x(n5)/20\leq x\leq\lfloor(n-5)/2\rfloor), and note that G′′=G[V(G)V(M)]G^{\prime\prime}=G^{\prime}[V(G^{\prime})\setminus V(M)] is an independent set with n52xn-5-2x vertices. By Corollary 2.3, we have extG(e,W)19{\rm{ext}}_{G}(e,W)\leq 19 for every eMe\in M. Therefore, for 9n129\leq n\leq 12 and 2x(n5)/22\leq x\leq\lfloor(n-5)/2\rfloor, we have

D(G,K3)(n5)!19x5n52x5!<2n2/4.D(G,K^{\circlearrowright}_{3})\leq(n-5)!\cdot 19^{x}\cdot 5^{n-5-2x}\cdot 5!<2^{\lfloor n^{2}/4\rfloor}. (12)

Thus, we may assume that x1x\leq 1. This implies GG^{\prime} is a star with at most n6n-6 edges or GG^{\prime} is composed of one triangle and n8n-8 isolated vertices. Hence, D(G,K3)2n6D(G^{\prime},K^{\circlearrowright}_{3})\leq 2^{n-6}. Therefore, for 9n129\leq n\leq 12 and 0x10\leq x\leq 1, we have

D(G,K3)5!19x5n52x2n6<2n2/4.D(G,K^{\circlearrowright}_{3})\leq 5!\cdot 19^{x}\cdot 5^{n-5-2x}\cdot 2^{n-6}<2^{\lfloor n^{2}/4\rfloor}. (13)

Case 𝐫=𝟒\mathbf{r=4}. First, suppose that GG^{\prime} contains a clique KK with 44 vertices. Let G′′=G[V(G)K]G^{\prime\prime}=G^{\prime}[V(G^{\prime})\setminus K] (note that G′′G^{\prime\prime} has n8n-8 vertices) and let xx be the number of edges in a maximum matching of G′′G^{\prime\prime} (0x10\leq x\leq 1). From Proposition 1.1 we have D(G[WK],K3)<216D(G[W\cup K],K^{\circlearrowright}_{3})<2^{16} and from Proposition 2.1, since GG has no K5K_{5}, for every vV(G′′)v\in V(G^{\prime\prime}) we have extG(v,K)4{\rm{ext}}_{G}(v,K)\leq 4 and extG(v,W)4{\rm{ext}}_{G}(v,W)\leq 4. Furthermore, by Corollary 2.3, for any edge {u,v}\{u,v\} of G′′G^{\prime\prime}, we have extG({u,v},K)13{\rm{ext}}_{G}(\{u,v\},K)\leq 13 and extG({u,v},W)13{\rm{ext}}_{G}(\{u,v\},W)\leq 13. Therefore, for 9n119\leq n\leq 11 and 0x10\leq x\leq 1 we have

D(G,K3)<(n8)!132x42(n82x)216<2n2/4.D(G,K^{\circlearrowright}_{3})<(n-8)!\cdot 13^{2x}\cdot 4^{2(n-8-2x)}\cdot 2^{16}<2^{\lfloor n^{2}/4\rfloor}. (14)

Thus we may assume that GG^{\prime} contains no copy of K4K_{4}. This allows us to use Lemma 2.7. Suppose that GG^{\prime} contains two vertex-disjoint triangles. In this case, we have n10n\geq 10. Let V1V_{1} and V2V_{2} be the vertex sets of these triangles, say V2={u,v,w}V_{2}=\{u,v,w\}, and note that, since n11n\leq 11, there is one vertex that do not belong to V1V2V_{1}\cup V_{2} in GG^{\prime} if and only if n=11n=11. If n=11n=11, let zz be this vertex. In this case, from Proposition 2.1, we have extG(z,V1V2W)334=36{\rm{ext}}_{G}(z,V_{1}\cup V_{2}\cup W)\leq 3\cdot 3\cdot 4=36. Since extG({u,v},W)13{\rm{ext}}_{G}(\{u,v\},W)\leq 13 and extG(w,W)4{\rm{ext}}_{G}(w,W)\leq 4, we obtain that extG(V2,W)52{\rm{ext}}_{G}(V_{2},W)\leq 52. Note that D(G[WV1],K3)7!D(G[W\cup V_{1}],K^{\circlearrowright}_{3})\leq 7! and D(G[V2],K3)6D(G[V_{2}],K^{\circlearrowright}_{3})\leq 6 and, from Lemma 2.7 we obtain extG(V1,V2)15{\rm{ext}}_{G}(V_{1},V_{2})\leq 15. Combining the above facts, we have

D(G,K3)\displaystyle D(G,K^{\circlearrowright}_{3}) 615527!<2n2/4,\displaystyle\leq 6\cdot 15\cdot 52\cdot 7!<2^{\lfloor n^{2}/4\rfloor}, for n=10;\displaystyle\text{for }n=10; (15)
D(G,K3)\displaystyle D(G,K^{\circlearrowright}_{3}) 63615527!<2n2/4,\displaystyle\leq 6\cdot 36\cdot 15\cdot 52\cdot 7!<2^{\lfloor n^{2}/4\rfloor}, for n=11.\displaystyle\text{for }n=11. (16)

Thus, we may assume that GG^{\prime} contains no two vertex-disjoint triangles. If GG^{\prime} contains a triangle KK, then let G′′=G[V(G)K]G^{\prime\prime}=G^{\prime}[V(G^{\prime})\setminus K] (note that G′′G^{\prime\prime} has n7n-7 vertices) and let xx be the number of edges in a maximum matching of G′′G^{\prime\prime} (0x(n7)/2)0\leq x\leq\lfloor(n-7)/2)\rfloor). Therefore, for 9n119\leq n\leq 11 we have

D(G,K3)(2x4(x2))13x8x3n72x4n72x2x(n72x)7!<2n2/4.D(G,K^{\circlearrowright}_{3})\leq(2^{x}\cdot 4^{x\choose 2})\cdot 13^{x}\cdot 8^{x}\cdot 3^{n-7-2x}\cdot 4^{n-7-2x}\cdot 2^{x(n-7-2x)}\cdot 7!<2^{\lfloor n^{2}/4\rfloor}. (17)

Finally, assume that GG^{\prime} contains no triangles. Then, similarly as before, letting xx be the number of edges in a maximum matching of GG^{\prime} (0x(n4)/2)0\leq x\leq\lfloor(n-4)/2)\rfloor), for 9n119\leq n\leq 11 we have

D(G,K3)(2x4(x2))13x4n42x2x(n42x)4!<2n2/4.D(G,K^{\circlearrowright}_{3})\leq(2^{x}\cdot 4^{x\choose 2})\cdot 13^{x}\cdot 4^{n-4-2x}\cdot 2^{x(n-4-2x)}\cdot 4!<2^{\lfloor n^{2}/4\rfloor}. (18)

Case 𝐫=𝟑\mathbf{r=3}. In this case the graph GG has 9n109\leq n\leq 10 vertices. We start by noticing that if GG contains three vertex-disjoint triangles, then there are six possible orientations of the edges of each triangle and, by Lemma 2.7, there are at most fifteen ways to orient the edges between the triangles. Let yy be the number of vertices that are not in these triangles. Note that 0y10\leq y\leq 1 and y=1y=1 if and only if n=10n=10. Since GG is K4K_{4}-free, in case y=1y=1, Proposition 2.1 implies that there are 33 ways to orient the edges between the vertex outside the triangles and each of the triangles. Therefore, for 9n109\leq n\leq 10 we have

D(G,K3)6315333y<2n2/4.D(G,K^{\circlearrowright}_{3})\leq 6^{3}\cdot 15^{3}\cdot 3^{3y}<2^{\lfloor n^{2}/4\rfloor}. (19)

From the above discussion, we may assume that GG contains at most two vertex-disjoint triangles. For the rest of the proof we have to analyze the structure of GG carefully. Thus we consider two possible cases, depending on the number of vertices of GG.

Subcase 𝐧=𝟗\mathbf{n=9}. First suppose that δ(G)4\delta(G)\leq 4. Let uu be a vertex of minimum degree and note that if uu is contained in a triangle, then extG(u,Gu)322<24{\rm{ext}}_{G}(u,G-u)\leq 3\cdot 2^{2}<2^{4} and by Proposition 1.1, we have D(Gu,K3)216D(G-u,K^{\circlearrowright}_{3})\leq 2^{16}. In case no triangle contains uu, Proposition 1.1 gives D(Gu,K3)<216D(G-u,K^{\circlearrowright}_{3})<2^{16} and extG(u,Gu)24{\rm{ext}}_{G}(u,G-u)\leq 2^{4}. Therefore, we obtain

D(G,K3)D(Gu,K3)extG(u,Gu)<220=2n2/4.D(G,K^{\circlearrowright}_{3})\leq D(G-u,K^{\circlearrowright}_{3})\cdot{\rm{ext}}_{G}(u,G-u)<2^{20}=2^{\lfloor n^{2}/4\rfloor}. (20)

Thus we may assume δ(G)5\delta(G)\geq 5. Suppose that GG contains two vertex-disjoint triangles with vertex sets V1V_{1} and V2V_{2} (recall that GG contains at most two vertex-disjoint triangles). Let GG^{\prime} be the subgraph of GG induced by the vertices that are not in V1V_{1} or V2V_{2}. Thus, since GG is K4K_{4}-free, each vertex of GG^{\prime} has at most two neighbors in each of V1V_{1} and V2V_{2}. Since δ(G)5\delta(G)\geq 5 and GG^{\prime} is triangle-free, GG^{\prime} is an induced path of length 22, say uvwuvw. Moreover, each of the vertices uu and ww has two neighbors in V1V_{1} and also in V2V_{2}. The vertex vv has two neighbors in one of the triangles, say in the set V1V_{1}. Since GG is K4K_{4}-free, uu and vv have only one common neighbor in V1V_{1}, which implies that the subgraph HH of GG induced by the vertices V1{u,v}V_{1}\cup\{u,v\} is a K1,2,2K_{1,2,2}. Thus, by Proposition 3.1, we have D(H,K3)82D(H,K^{\circlearrowright}_{3})\leq 82. Also, H=G[V2{w}]H^{\prime}=G[V_{2}\cup\{w\}] is a copy of K4K_{4}^{-}, and hence D(H,K3)63=18D(H^{\prime},K^{\circlearrowright}_{3})\leq 6\cdot 3=18. Finally, applying Lemmas 2.12.5 and 2.7, we obtain extG(u,V2)3{\rm{ext}}_{G}(u,V_{2})\leq 3, extG(w,V1)3{\rm{ext}}_{G}(w,V_{1})\leq 3, extG(V1,V2)15{\rm{ext}}_{G}(V_{1},V_{2})\leq 15, extG(v,V(H))5{\rm{ext}}_{G}(v,V(H^{\prime}))\leq 5, and hence

D(G,K3)821815335<220=2n2/4.D(G,K^{\circlearrowright}_{3})\leq 82\cdot 18\cdot 15\cdot 3\cdot 3\cdot 5<2^{20}=2^{\lfloor n^{2}/4\rfloor}. (21)

Assume that GG contains one triangle with vertex set V1={u1,u2,u3}V_{1}=\{u_{1},u_{2},u_{3}\}, but does not contain two vertex-disjoint triangles. Let GG^{\prime} be the subgraph of GG induced by the vertices that are not in V1V_{1}. Since δ(G)5\delta(G)\geq 5 and no vertex in GG^{\prime} is adjacent to more than two vertices in V1V_{1}, we have δ(G)3\delta(G^{\prime})\geq 3. Thus, by Mantel’s Theorem GG^{\prime} is isomorphic to K3,3K_{3,3}. It is not hard to show that, since GG is K4K_{4}-free and δ(G)5\delta(G)\geq 5, the graph GG is isomorphic to the graph K1,4,4K_{1,4,4}. Therefore, by Proposition 3.1, we have

D(G,K3)=271614<220=2n2/4.D(G,K^{\circlearrowright}_{3})=271614<2^{20}=2^{\lfloor n^{2}/4\rfloor}. (22)

Subcase 𝐧=𝟏𝟎\mathbf{n=10}. We proceed similarly as in the case above. First suppose that δ(G)5\delta(G)\leq 5 and let uu be a vertex of minimum degree. If uu is contained in a triangle, then the previous subcase for graphs with 99 vertices gives extG(u,Gu)323<25{\rm{ext}}_{G}(u,G-u)\leq 3\cdot 2^{3}<2^{5} and also by the previous case (or Mantel’s Theorem in case GuG-u is K3K_{3}-free) we have D(Gu,K3)220D(G-u,K^{\circlearrowright}_{3})\leq 2^{20}. On the other hand, if there is no triangle that contains uu, then the previous subcase for graphs with 99 vertices gives D(Gu,K3)<220D(G-u,K^{\circlearrowright}_{3})<2^{20} because GuG-u contains a triangle, and hence we have extG(u,Gu)25{\rm{ext}}_{G}(u,G-u)\leq 2^{5}. Therefore, we have

D(G,K3)D(Gu,K3)extG(u,Gu)<225=2n2/4.D(G,K^{\circlearrowright}_{3})\leq D(G-u,K^{\circlearrowright}_{3})\cdot{\rm{ext}}_{G}(u,G-u)<2^{25}=2^{\lfloor n^{2}/4\rfloor}. (23)

Thus, we may assume that δ(G)6\delta(G)\geq 6. Suppose that GG contains two vertex-disjoint triangles with vertex sets V1V_{1} and V2V_{2} (recall that GG contains at most two vertex-disjoint triangles). Let GG^{\prime} be the subgraph of GG induced by the vertices that are not in V1V_{1} or V2V_{2}. Note that since GG is K4K_{4}-free and GG^{\prime} is triangle-free, the graph GG^{\prime} is a cycle and each vertex of GG^{\prime} has exactly two neighbors in each of V1V_{1} and V2V_{2}. Let a1b1a_{1}b_{1} and a2b2a_{2}b_{2} be two non-incident edges of GG^{\prime} and put Hi=G[Vi{ai,bi}]H_{i}=G[V_{i}\cup\{a_{i},b_{i}\}], for i{1,2}i\in\{1,2\}. Note that H1H_{1} and H2H_{2} are isomorphic to K1,2,2K_{1,2,2}. Then, by Proposition 3.1, we have D(H1,K3),D(H2,K3)82D(H_{1},K^{\circlearrowright}_{3}),D(H_{2},K^{\circlearrowright}_{3})\leq 82. Analogous to the subcase for graphs with 99 vertices, we have extG(aibi,V3i)8{\rm{ext}}_{G}(a_{i}b_{i},V_{3-i})\leq 8 for 1i21\leq i\leq 2, extG(a1b1,a2b2)4{\rm{ext}}_{G}(a_{1}b_{1},a_{2}b_{2})\leq 4, and extG(T1,T2)15{\rm{ext}}_{G}(T_{1},T_{2})\leq 15. Therefore, we have

D(G,K3)82215824<225=2n2/4.D(G,K^{\circlearrowright}_{3})\leq 82^{2}\cdot 15\cdot 8^{2}\cdot 4<2^{25}=2^{\lfloor n^{2}/4\rfloor}. (24)

Assume that GG contains one triangle with vertex-set V1V_{1}, but does not contain two vertex-disjoint triangles. Let G=GV1G^{\prime}=G-V_{1} and note that GG^{\prime} is a triangle-free graph with 77 vertices. By Mantel’s Theorem, |E(G)|12|E(G^{\prime})|\leq 12. Since δ(G)6\delta(G)\geq 6, and every vertex of GG^{\prime} has at most two neighbors in V1V_{1}, we have δ(G)4\delta(G^{\prime})\geq 4, which implies that |E(G)|14|E(G^{\prime})|\geq 14, a contradiction.

Case 𝐫=𝟐\mathbf{r=2}. Since GG is triangle-free, we have D(G,K3)=2|E(G)|D(G,K^{\circlearrowright}_{3})=2^{|E(G)|}. Thus, by Mantel’s Theorem, if GG is not isomorphic to Kn/2,n/2K_{\lfloor n/2\rfloor,\lceil n/2\rceil}, we have

D(G,K3)<2n2/4.D(G,K^{\circlearrowright}_{3})<2^{\lfloor n^{2}/4\rfloor}. (25)

Furthermore, D(G,K3)=2n2/4D(G,K^{\circlearrowright}_{3})=2^{\lfloor n^{2}/4\rfloor} if and only if GKn/2,n/2G\simeq K_{\lfloor n/2\rfloor,\lceil n/2\rceil}, which completes the proof that for any nn-vertex graph GG with 9n7+min{ω(G),8}9\leq n\leq 7+\min\{\omega(G),8\} we have D(G,K3)2n2/4D(G,K^{\circlearrowright}_{3})\leq 2^{\lfloor n^{2}/4\rfloor}. Since inequalities (10)–(25) are strict, we get that D(G,K3)=2n2/4D(G,K^{\circlearrowright}_{3})=2^{\lfloor n^{2}/4\rfloor} if and only if GKn/2,n/2G\simeq K_{\lfloor n/2\rfloor,\lceil n/2\rceil}, which concludes the proof of the proposition. ∎