Introduction

In the whole paper, G is a simple graph with vertex set V(G) and edge set E(G) (briefly V and E). For every vertex vV, the open neighborhood N(v) is the set {uVu vE}, and its closed neighborhood is the set N[v]=N(v){v}. The open neighborhood of a set SV is the set N(S)= v S N(v), and the closed neighborhood of S is the set N[S]=N(S)S. In a graph, a stem is a vertex adjacent to at least one end vertex. The sets of all end vertices and all stems are denoted by Ω(G) and Ω1(G), respectively. In K2, a vertex is both an end vertex and a stem. For two vertices u and v in a connected graph G, the distance d G (u,v) between u and v is the length of a shortest uv path in G. For a set SV and a vertex vV, the distance d G (v,S) between v and S is the minimum distance between v and a vertex of S. If a vertex u is adjacent to a vertex v, we write uv, while if u and v are nonadjacent, we write uv. If v is adjacent to no vertex in a set AV(G), then we write vA, and if v is adjacent to every vertex in A, then we write vA. A plane graph is a planar graph together with an embedding in the plane. From the Jordan closed curve theorem, we know that a cycle C in a plane graph separates the plane into two regions, the interior of C and the exterior of C. We use [1] for the terminology and notation which are not defined in this study.

A set DV(G) is a dominating set of G if for every vertex vV(G)−D, there exists a vertex uD such that v and u are adjacent. The minimum cardinality of a dominating set in G is the domination number denoted by γ(G). The literature on domination has been surveyed in the two books by Haynes et al. [2, 3].

A set DV(G) is a total dominating set (TDS) of a graph G if each vertex of G has a neighbor in D. Equivalently, a set DV(G) is a TDS of a graph G if D is a dominating set of G and 〈D〉 does not contain an isolate vertex. The cardinality of a minimum TDS in G is the total domination number and is denoted by γ t (G). A minimum TDS of a graph G is called a γ t (G)-set. The notion of total domination in graphs was introduced by Cockayne et al. [4] in 1980, and for a survey of total domination in graphs, see [5] and for more detail, see [6].

A subset S of vertices of G is a restrained dominating set if N[S]=V and the subgraph induced by VS has no isolated vertex. The restrained domination number γ r (G) is the minimum cardinality of a restrained dominating set of G. The restrained domination number was introduced by Domke et al. [7], and it has been studied by several authors, for example, see [8, 9].

A set D tr V(G) is a total restrained dominating set (TRDS) of a graph G if it is a dominating set and the induced subgraphs by D t r and V(G)−D t r do not contain an isolated vertex. The cardinality of a minimum TRDS in G is the total restrained domination number and is denoted by γ t r (G). A minimum TRDS of a graph G is called a γ t r (G)-set. Thus, the total restrained dominating set of a graph combines the properties of both a total dominating set and a restrained dominating set. We assume that every graph without an isolated vertex has a TRDS and D t r =V(G) is such a set. Moreover, the above definitions imply that for any graph G without an isolated vertex, every TRDS is a TDS, so γ t (G)≤γ t r (G). The total restrained domination number of a graph was defined by Ma et al. [10] in 2005, for more, see [11]y. We state the following result which derived from Goddard and Henning [12]:

Theorem 1

[12] If G is a planar graph with diam(G)=2, then γ(G)≤2 or G=G9, where G9 is the graph of Figure 1.

Figure 1
figure 1

The graph G 9 .

Our aim was to continue the study of total restrained domination number of graphs. In this article, we first give some results on total restrained domination number of graphs. And then, we characterize all graphs G of order n for which

  1. (1)

    γ t r (G)=n;

  2. (2)

    γ(G)=1 and γ t r (G)=3;

  3. (3)

    γ t r (G)=2.

Furthermore, we give some bounds on total restrained domination number of graphs with diameter 3. Finally, we present some bounds for total restrained domination number of some planar graphs with diameter 2 and γ-set of cardinality 2.

Results

We begin with the following result that has a straightforward proof.

Lemma 2

Let G be a nontrivial connected graph of order n. Then,

(1) γ(G)≤γ t (G)≤γ t r (G) and γ r (G)≤γ t r (G).

Furthermore, γ t r (G)≥m a x{γ r (G),γ t (G)};

(2)Ω(G) Ω 1 (G) D tr ;

(3) 2≤γ t r (G)≠n−1.

Lemma 3

γ t r (K n )=2, where n≠3, and for n=3, γ t r (K n )=3.

Proof

It is easy to see that any 2-subset is a total restrained dominating set of K n , where n≠3. Hence, the result follows. □

Lemma 4

Let T be a tree of diameter 2 or 3 and of order n≥3. Then, γ t r (T)=n.

Proof

Clearly, diam(T)=2 if and only if T=K1,n−1. Also, diam(T)=3 if and only if T is a double star graph, say Sp,q. By these facts and by Observation 2, it follows that γ t r (K1,n−1)=n and γ t r (Sp,q)=|V(Sp,q)|. □

In the following theorem, we show that for any n≥4, there exists a connected graph G of order n and diam(G)=γ t r (G)=2.

Proposition 5

Let G be a planar complete bipartite graph of order n. Then, γ t r (G)=2 if and only if either G=K2 or G=K2,n−2.

Proof

It is well known that a complete bipartite graph G is planar if and only if G=Km,nm, where m=1,2. On the other hand, γ t r (K1,n−1)=n. Therefore, the desired result follows by combining these assumptions. □

Observation 6

γ t r (Km,nm)=2, where nmm≥2.

As a consequence of Proposition 5 and Observation 6, we have the following corollary:

Corollary 7

Let G be a graph of order n≥4 which contains Km,nm as subgraph, where nmm≥2. Then, γ t r (G)=2.

Proposition 8

Let G be a nontrivial connected graph of order n with diam(G)=2 and Ω(G)≠. Then, γ t r (G)=|Ω(G)|+1.

Proof

Since G is connected and diam(G)=2 and Ω(G)≠, then G contains a K1,n−1 as spanning graph. Let x be the unique stem vertex of G. Clearly, all of the non-end vertices must be adjacent to x. It follows that γ t r =|Ω(G)|+1. □

Characterizations

In the following result, we determine all graphs of order n with γ t r (G)=n.

Proposition 9

Let G be a connected graph of order n≥2. Then, γ t r (G)=n if and only if either G=K3 or Ω(G) Ω 1 (G)S=V(G), where S={v|vΩ(G) Ω 1 (G)andN(v) Ω 1 (G)forallvΩ(G) Ω 1 (G)}.

Proof

Necessity: Observation 2(2) asserts that Ω(G) Ω 1 (G) D tr . On the other hand, since N(v) Ω 1 (G) for all vΩ(G) Ω 1 (G) and G(Ω(G) Ω 1 (G)) is union of isolated vertices, too. These imply that γ t r (G)=n.

Sufficiency: It is trivial to check that γ t r (K3)=3. Now, we assume that GK3. Let γ t r (G)=n. Assume, to the contrary N(v)⫅̸Ω(G) Ω 1 (G), then there is uV(G)( Ω 1 (G)Ω(G)) such that u vE(G). There are w,rV(G) such that u wE(G) and v rE(G), where w and r are not vertices of degree 1. Therefore, S=V−{u,v} is a γ t r (G)-set, a contradiction. □

Proposition 10

Let G be a connected graph of order n and γ(G)=1. Then, (1) γ tr (G)=Ω(G) Ω 1 (G), while G has a pendant edge. (2) γ t r (G)≤3, while G has no pendant edge, with equality if and only if G is union of k= n 1 2 copies of complete graph K3 such that all of them have a common vertex and n is an odd integer.

Proof

It is well known that γ(G)=1 if and only if G has a vertex of degree n−1. Now, if G has a pendant edge, then Ω(G) Ω 1 (G) is a TRDS of G; this completes the part (1). Finally, if G has no pendant edge, then clearly, we have γ t r (G)≤3.

If G is union of k= n 1 2 copies of complete graph K3 such that all of them have a common vertex and n is an odd integer, then γ t r (G)=3.

Conversely, since γ(G)=1, then G contains a K1,n−1 as spanning graph. We claim that G is the union of k= n 1 2 copies of complete graph K3 such that all of them have a common vertex. Assume, to the contrary, that a copy, say G i K3, and so |V(G i )|≥4. Then, there exists a vertex wV(G i ) such that {u,w} is a γ t r -set of G, where u is the common vertex of all copies and G i −{u,w} has no isolated vertex, a contradiction with γ t r (G)=3. This completes the proof. □

In the following result, we characterize all graphs with γ t r (G)=2.

Proposition 11

Let G be a connected graph of order n. Then, γ t r (G)=2 if and only if either (1) G has a vertex v of degree n−1 such that |Ω(G)|=1 or G has no pendant edge and a component of G[N(v)] is of order at least 3, or (2) G has Sp,q as spanning subgraph such that G has no pendant edge and each component of G[V(G)−{u,v}] is of order at least 2 and p+1≤deg G (u)≤n−2, q+1≤deg G (v)≤n−2 for some u and v.

Proof

Necessity: It is obvious. Sufficiency: Since γ t r (G)=2, then γ(G)≤2. We consider the following two cases: □

Case 1: If γ(G)=1, then G contains a K1,n−1 as spanning graph. By Observation 2(2), we imply that |Ω(G)|≤1, otherwise, a contradiction with γ t r (G)=2. If |Ω(G)|=1 and so Ω(G) Ω 1 (G) is the unique TRDS of G, hence the desired result follows. Finally, |Ω(G)|=0. Since G contains a K1,n−1 as spanning graph, therefore there exists a vertex vV(G) such that deg(v)=n−1. It is easy to say that G[N(v)] is union of some connected graph such that each vertex of these graphs are adjacent to v in G. We deduce that one of them must be of order at least 3, otherwise, a contradiction with γ t r (G)=2.

Case 2: If γ(G)=2, then G must be have a Sp,q as spanning subgraph. Observation 2(2) implies that G has no pendant edge, and there exist two vertices u and v such that G[V(G)−{u,v}] is the union of some connected graph of order at least 2 and p+1≤deg G (u)≤n−2, q+1≤deg G (v)≤n−2, otherwise, a contradiction with γ t r (G)=2.

Bounds on total restrained domination number

Theorem 12

Let G be a nontrivial connected graph with diam(G)=3 and |Ω1(G)|=2. Let T={u|d(u,w)=3,wΩ(G)} and |T|=m. Let v be a vertex in N(Ω1(G)) such that |N T (v)|=k and k be the maximum number between vertices such as v’s. Then, |Ω(G)S|+2 γ tr (G)|Ω(G)S|+mk+3, where S={v|N(v) Ω 1 (G)}. These bounds are sharp.

Proof

It is clear to see that |Ω(G)S|+2 γ tr (G). Now, we show that γ tr (G)|Ω(G)S|+2+(1+mk). Let v be a vertex such that |N T (v)|=k. Let the other vertices in T be totally dominated by at most mk vertices in N( Ω 1 (G))N(T). Let W be at most these mk vertices. Then, D=Ω(G)S Ω 1 (G)W{v} is a total dominating set, and D and GD have no isolated vertices. Therefore, γ tr |Ω(G)S|+2+(1+mk).

The sharpness of the lower bound is trivial. To show the sharpness of the upper bound, we define the graph G2,m,k, as shown in Figure 2, where m=6 and k=4.

Figure 2
figure 2

The graph G 2 , m , k .

It is easy to check that S={u1,u3}, Ω(G)={x,y}, T={w2,w3,z1,z2,z3,z4}, N(Ω1(G))={u1,u2,u3,w1,w4,a,b,x,y}, and N T (u2)={z1,z2,z3,z4} such that |N T (u2)| is the maximum number between vertices in N(Ω1(G)). Then, γ tr (G)=|Ω(G)S|+mk+3. Furthermore, {a,b,x,y,w1,w4,u1,u2,u3} is a γ t r -set for G. □

Theorem 13

Let G be a nontrivial connected graph with diam(G)=3 and |Ω1(G)|=1. Then, |Ω(G)|+2≤γ t r (G)≤deg(v)+|S|+1, where vΩ1(G) and S={u|N(u)N(v)}{u|V(G[N[u]{v}])N[v]}. These stated bounds are sharp.

Proof

Let w,v,s,t be a diametral path in G and wΩ(G) and vΩ1(G). Clearly, every vertex from V(G)−N[v] will be joined to a vertex from N[v]−Ω(G). Let V(G)N[v]=S S ¯ , where S={z|N(z)N[v]}{z|V(G[N[z]{v}])N[v]}. It is not so difficult to see that for every vertex r S ¯ , there exist a vertex x S ¯ such that xr. Therefore, N[v]S is a total restrained dominating set of G. This completes the proof.

The sharpness of the lower bound is trivial. To show the sharpness of the upper bound, we consider the graph G k as shown in Figure 3, where k=deg(v)+|S|+1. Furthermore, S={u} and {w1,w2,…,w t ,v,a,b,u} is a γ t r -set of the graph. □

Figure 3
figure 3

The graph G k .

Total restrained domination number of some planar graphs

If G is a planar graph of diameter 2. Then, by Theorem 1, we have G=G9 or γ(G)≤2. It is straightforward to see that γ t r (G9)=3. Now, suppose γ(G)≤2. If γ(G)=1, then we can apply Proposition 10 to obtain total restrained domination number of G. Now, in the following results, we discuss total restrained domination number of planar graph G of diameter 2 and γ(G)=2.

Proposition 14

Let G be a planar graph of diameter 2 and with a γ(G)-set {a,b}V(G), d(a,b)=1 and |N(a)N(b)|1. Then, γ t r (G)≤3.

Proof

Let γ(G)=2 and d(a,b)=1; then, G has no pendant edge, otherwise, a contradiction with diam(G)=2 or γ(G)=2. If |N(a)N(b)|=0, then it is easy to see that {a,b} is a D t r . If |N(a)N(b)|=1, we may assume that N(a)N(b)={u}. If deg(u)=2, then {a,b,u} is a total restrained domination number of G, otherwise, {a,b} is a D t r . This completes the proof. □

Theorem 15

Let G be a planar graph of diameter 2 and with a γ(G)-set {a,b}V(G), d(a,b)=2 and |N(a)N(b)|2. Then, γ t r (G)≤3.

Proof

Let γ(G)=2 and d(a,b)=2; then, G have no pendant edge. Assume, to the contrary, let G has a pendant edge. Then, it must be at t, where t lies on atb path, a contradiction by the stated γ-set. Let A, B, and C be three sets such as N(a)N(b)=C, N(a)−C=A, and N(b)−C=B. Since d(a,b)=2, so |C|≥1. We process the following cases:

Case 1: |C|=1 and so C={c}. If c(AB), then contradicting with γ(G)=2. Hence, there is a vertex from AB such that is not adjacent to c. Without the loss of generality, we may assume that xA and xc. Let B1 and B2 be partitions of B, such that B1 is the set of those vertices which has a neighbor in AB and B2 is the set of those vertices that are adjacent to c and has no neighbor in AB.

Claim 1. B2=.

Proof

Assume, to the contrary, that B2 and so yB2. It is easy to check that d(x,y)≥3, a contradiction with diam(G)=2. Hence, the desired result follows. □

Thus, each vertex of B must be adjacent to AB. Now, we consider the following two cases:

(1): deg(z)=2 for some zA such that z∼{a,c}. It is easy to check that cB. Assume, to the contrary, that there exists a vertex b B such that cb’, then d(z, b )3, a contradiction with diam(G)=2. Certainly, the planarity of G and diam(G)=2 shows that |B|≤2, otherwise, a contradiction with diam(G)=2.

On the other side, all vertices of A, except those vertices such as z’s, are adjacent to c or only a vertex of B, say b1, otherwise, a contradiction with diam(G)=2. It implies that {b1,c,b} is a TRDS of G, where |B|=1, and {b1,c} is a TRDS of G, where |B|=2. Hence, the result follows.

(2): deg(z)≥3 for all zA. Hence, {a,b,c} is a TRDS of G. Hence, the result follows.

Case 2: If |C|=2, and let C={c1,c2}. We have the following easy claim. Claim 2. Every vertex xAB has a neighbor in AB. Now, we continue to complete of the proof by the following:

  1. (1)

    If c 1y or c 2y, where yAB. Without the loss of generality, we may assume that c 1y. Then, by using Claim 2, {a,c 2,b} is a TRDS of G.

  2. (2)

    If c 1 y and c 2 y for every yAB. Therefore, every vertex of A must be adjacent to a vertex of B and converse. Otherwise, if there exist two vertices a 1A and b 1B such that a 1 b 1 , a contradiction with diam(G)=2 (because d(a 1,b 1)≥3, d(a 1,b)≥3 or d(a,b 1)≥3). Now, we consider the following claim.

Claim 3. If c i AB for i=1,2, then |A|4 and |B|4.

Proof

Assume, to the contrary, that |A|≥4 and |B|≥4. Since, c i AB, and by assumption diam(G)=2, it implies that there exists a vertex xAB, say xA, such that d(x,y)≥3 for some yB, otherwise, a contradiction with diam(G)=2. Hence, the result follows. □

Claim 3 and our assumptions imply that one of the following holds.

(2-1) |A|=1 and |B|≥1. Let A={a1}. The vertex a1 must be adjacent to all vertices of B, otherwise, a contradiction with diam(G)=2. It is easy to check that {a1,a,c1} is a TRDS of G. Hence, the result follows.

(2-2) |A|=2 and |B|≥2. We simply imply that there exists a vertex in A or B; without the loss of generality, we may assume that xA, such that xA−{x}, otherwise, a contradiction with diam(G)=2. Thus, there exists a vertex yB with xy such that {x,b,y} is a TRDS of G.

(2-3) |A|=3 and |B|≥3. An argument similar to that described in the proof of Case (2-2) shows that the result holds.

The following graph shows that Theorem 15 is not true for |C|=3.

Let C={c1,c2,c3}, A=N(a)−C={a1,a2,a3}, and B=N(b)−C={b1,b2,b3}. Let E(G)={a c i ,b c i |i=1,2,3}{a a i , c 1 a i , c 1 b i ,b b i |i=1,2,3} (see the graph G|C| as shown in Figure 4). Then, G is a planner graph with diam(G)=2, but γ t r (G)=4.

Figure 4
figure 4

The graph G |C| .

We conclude our results, with the following result. As a consecutive of the Proposition 14 and Theorem 15, we have the following corollary:

Corollary 16

Let G be a planar graph of diameter 2 and with a γ(G)-set {a,b}V(G) and |N(a)N(b)|t. Then, γ t r (G)≤t+2. This bound is sharp.

To show the sharpness of Corollary 16, we construct the graph Gt+2 as shown in Figure 5.

Figure 5
figure 5

The graph G t+2 .

It is easy to check that {a,b}, {a,c}, and {b,c} are γ-sets of the constructed graph. Furthermore, d(a,b)=d(a,c)=1 and d(b,c)=2. Also, |N(a)N(b)|= t 1 , |N(a)N(c)|= t 2 , and |N(b)N(c)|= t 3 +1, where t1t2t3−1 and t=m i n{t1,t2,t3−1}.