1 Introduction

Consider the following approach to protecting a network. Suppose that one or more entities are stationed at some of the nodes of a network and that an entity at a node v can deal with a problem produced in v or in its neighbouring nodes. Depending on the nature of the network, an entity could consist of a robot, an observer, a spy, an intruder, a legion, a guard, and so on. Informally, we say that a network (or its underlying graph) is protected under a placement of entities if there exists at least one entity available to handle a problem at any node.

Let G be a simple graph whose vertex set is V(G) and whose edge set is E(G). Consider a function \(f: V(G)\longrightarrow \{0,1,2\}\) where f(v) denotes the number of entities stationed at vertex v. For every \(i\in \{0,1,2\}\) we define the sets \(V_i=\{v\in V(G){:}\; f(v)=i\}\). We will identify the function f with the partition of the vertex set induced by f and, with this end, we will write \(f(V_0,V_1, V_2).\) The weight of f is defined to be

$$\begin{aligned} \omega (f)=f(V(G))=\sum _{v\in V(G)}f(v)=\sum _ii|V_i|. \end{aligned}$$

We now consider two particular strategies of graph protection; the so-called Roman domination and the so-called Italian domination. As we can expect, the minimum number of entities required for protection under each strategy is of interest.

Let N(v) be the open neighbourhood of \(v\in V(G)\). A function \(f(V_0,V_1,V_2)\) is a Roman dominating function (RDF) if \(N(v)\cap V_2\ne \emptyset \) for every vertex \(v\in V_0\). The Roman domination number, denoted by \(\gamma _R(G)\), is defined to be

$$\begin{aligned} \gamma _R(G)=\min \{w(f):\, f \text { is a RDF on } G\}. \end{aligned}$$

This strategy of graph protection was formally proposed by Cockayne et al. in [2]. For simplicity, a Roman dominating function with minimum weight \(\gamma _{_R}(G)\) on G will be called a \(\gamma _{_R}(G)\)-function.

A generalization of Roman domination called Italian domination was introduced by Chellali et al. in [1], where it was called Roman \(\{2\}\)-domination. The concept was studied further in [7, 8]. An Italian dominating function (IDF) on a graph G is a function \(f(V_0,V_1,V_2)\) satisfying that \(f(N(v))=\sum _{u\in N(v)}f(u)\ge 2\) for every \(v\in V_0\), i.e. \(f(V_0,V_1,V_2)\) is an IDF if \(N(v)\cap V_2\ne \emptyset \) or \(|N(v)\cap V_1|\ge 2\) for every \(v\in V_0\).

The Italian domination number, denoted by \(\gamma _{_I}(G)\), is defined to be

$$\begin{aligned} \gamma _{_I}(G)=\min \{w(f):\, f \text { is an IDF on } G\}. \end{aligned}$$

An Italian dominating function with minimum weight \(\gamma _{_I}(G)\) on G will be called a \(\gamma _{_I}(G)\)-function. We will assume a similar agreement when referring to the optimal functions (and sets) associated with other parameters defined below.

Since the problem of computing \(\gamma _I(G)\) is NP-hard [1], the need to obtain formulas for this parameter arises. In this article, we address this problem for the case of rooted product graphs and corona product graphs.

Given a graph G and a graph H with root vertex \(v\in V(H)\), the rooted product graph \(G\circ _v H\) is defined to be the graph obtained from G and H by taking one copy of G and |V(G)| copies of H and identifying the ith vertex of G with the root v in the ith copy of H for each \(i\in \{1,\dots , |V(G)|\}\). For every vertex \(x\in V(G)\), the copy of H in \(G\circ _v H\) containing x will be denoted by \(H_x\), and for every IDF f on \(G\circ _v H\), the restriction of f to \(V(H_x)\) and \(V(H_x)\setminus \{x\}\) will be denoted by \(f_x\) and \(f_x^-\), respectively. Notice that \(V(G\circ _v H)=\cup _{x\in V(G)}V(H_x)\) and so, if f is a \(\gamma _{_I}(G\circ _v H)\)-function, then

$$\begin{aligned} \gamma _{_I}(G\circ _v H)=\sum _{x\in V(G)}\omega (f_x)=\sum _{x\in V(G)}\omega (f_x^-)+\sum _{x\in V(G)}f(x). \end{aligned}$$

Throughout the paper, we will use the notation \(K_t\), \(C_t\) and \(P_t\) for complete graphs, cycle graphs and path graphs of order t, respectively. We will use the notation \(G \cong H\) if G and H are isomorphic graphs.

For the remainder of the paper, definitions will be introduced whenever a concept is needed.

2 Italian Domination of Rooted Product Graphs

To begin the study we need to establish some preliminary tools.

Lemma 2.1

If \(f(V_0,V_1,V_2)\) is a \(\gamma _{_I}(G\circ _v H)\)-function and \(x\in V(G)\), then \(\omega (f_x)\ge \gamma _{_I}(H)-1\). Furthermore, if \(\omega (f_x)=\gamma _{_I}(H)-1\), then \(f(x)=0\).

Proof

Suppose to the contrary that there exists a vertex \(x\in V(G)\) such that \(\omega (f_x)\le \gamma _{_I}(H)-2\). Now, if \(f(x)>0\), then \(f_x\) is an IDF on \(H_x\) and \(\omega (f_x)< \gamma _I(H_x)\), which is a contradiction; while if \(f(x)=0\), then the function g, defined by \(g(x)=1\) and \(g(v)=f_x(v)\) whenever \(v\ne x\), is an IDF on \(H_x\) of weight \(\omega (g)=\omega (f_x)+1 < \gamma _{_I}(H_x)\), which is a contradiction again. Hence, \(\omega (f_x)\ge \gamma _{_I}(H)-1\) for every \(x\in V(G)\).

Now, if there exists a vertex \(x\in V(G)\) such that \(\omega (f_x)=\gamma _{_I}(H)-1\) and \(f(x)>0\), then \(f_x\) is an IDF on \(H_x\) of weight \(\omega (f_x)<\gamma _{_I}(H_x)\), which is a contradiction. Therefore, if \( \omega (f_x)=\gamma _{_I}(H)-1\), then \(f(x)=0\). \(\square \)

For every \(\gamma _{_I}(G\circ _v H)\)-function \(f(V_0,V_1,V_2)\) we define the sets

$$\begin{aligned} {\mathcal {A}}_f=\{x\in V(G): \omega (f_x)\ge \gamma _{_I}(H)\} \end{aligned}$$

and

$$\begin{aligned} {\mathcal {B}}_f=\{x\in V(G) : \omega (f_x)=\gamma _{_I}(H)-1\}. \end{aligned}$$

Notice that by Lemma 2.1 we have that if \({\mathcal {B}}_f\ne \emptyset \), then \(\{{\mathcal {A}}_f, {\mathcal {B}}_f\}\) is a partition of the vertex set of G and so

$$\begin{aligned} \gamma _{_I}(G\circ _v H)=\sum _{x\in {\mathcal {A}}_f}\omega (f_x)+\sum _{x\in {\mathcal {B}}_f}\omega (f_x). \end{aligned}$$

The following consequence of Lemma 2.1 is immediate.

Corollary 2.2

Let f be a \(\gamma _{_I}(G\circ _v H)\)-function. If \({\mathcal {B}}_f\ne \emptyset \), then either \(H\in \{K_1,K_2,\overline{K_2}\}\) or \(\gamma _{_I}(H)\ge 3\).

Lemma 2.3

If f is a \(\gamma _{_I}(G\circ _v H)\)-function, then \({\mathcal {A}}_f\) is a dominating set of G.

Proof

Let \(f(V_0,V_1,V_2)\) be a \(\gamma _{_I}(G\circ _v H)\)-function. Notice that Lemma 2.1 leads to \({\mathcal {B}}_f\subseteq V_0\). Now, since f is a \(\gamma _{_I}(G\circ _v H)\)-function, if there exists \(x\in {\mathcal {B}}_f \) such that \(N(x)\cap V(G)\cap (V_1\cup V_2)=\emptyset \), then \(f_x\) is an IDF on \(H_x\) of weight \(\omega (f_x)=\gamma _{_I}(H)-1<\gamma _{_I}(H_x)\), which is a contradiction. Hence, every vertex \(x\in {\mathcal {B}}_f \) is adjacent to some vertex belonging to \(V(G)\cap (V_1\cup V_2)\subseteq {\mathcal {A}}_f\setminus V_0\). Therefore, \({\mathcal {A}}_f\) is a dominating set of G. \(\square \)

Lemma 2.4

If \(f(V_0,V_1,V_2)\) is a \(\gamma _{_I}(G\circ _v H)\)-function such that \({\mathcal {B}}_f\ne \emptyset \), then \(\omega (f_x)=\gamma _{_I}(H)\) for every \(x\in {\mathcal {A}}_f\cap (V_0\cup V_1)\); while \(\omega (f_x)\le \gamma _{_I}(H)+1\) for every \(x\in {\mathcal {A}}_f\cap V_2\).

Proof

Let f be a \(\gamma _{_I}(G\circ _v H)\)-function and \(u\in V(G)\) such that \(u\in {\mathcal {B}}_f\). First, suppose to the contrary that there exists \(x\in {\mathcal {A}}_f\cap (V_0\cup V_1)\) such that \(\omega (f_x)\ge \gamma _{_I}(H)+1\). Let g be the function on \(G\circ _vH\) defined by \(g(w)=f(w)\) for every \(w\notin V(H_x)\), \(g(x)=1\) and \(g_x^-\) is induced by \(f_u^-\). It is readily seen that g is an IDF on \(G\circ _vH\) and \(\omega (g)\le \omega (f)-1=\gamma _{_I}(G\circ _v H)-1\), which is a contradiction. Therefore, \(\omega (f_x)=\gamma _{_I}(H)\) for every \(x\in {\mathcal {A}}_f\cap (V_0\cup V_1)\).

Now, suppose to the contrary that there exists \(x\in {\mathcal {A}}_f\cap V_2\) such that \(\omega (f_x)\ge \gamma _{_I}(H)+2\). In this case we define a function g on \(G\circ _vH\) by \(g(w)=f(w)\) for every \(w\notin V(H_x)\), \(g(x)=2\) and \(g_x^-\) is induced by \(f_u^-\). It is readily seen that g is an IDF on \(G\circ _vH\) and \(\omega (G)\le \omega (f)-1=\gamma _{_I}(G\circ _v H)-1\), which is a contradiction. Therefore, \(\omega (f_x)\le \gamma _{_I}(H)+1\) for every \(x\in {\mathcal {A}}_f\cap V_2\). \(\square \)

Let us define the sets

$$\begin{aligned} {\mathcal {A}}_f^{i,j}=\{x\in {\mathcal {A}}_f: f(x)=i \text { and } \omega (f_x)=j\}, \end{aligned}$$

where \(i\in \{0,1,2\}\), \(j\in \{\gamma _{_I}(H), \gamma _{_I}(H)+1\}\). For simplicity, we will use the notation \(m=\gamma _{_I}(H)\) in some lemmas and proofs, specially when \(\gamma _{_I}(H)\) is a superscript.

From Lemma 2.4 we have the following consequence.

Corollary 2.5

If \(f(V_0,V_1,V_2)\) is a \(\gamma _{_I}(G\circ _v H)\)-function such that \({\mathcal {B}}_f\ne \emptyset \), then

$$\begin{aligned} {\mathcal {A}}_f={\mathcal {A}}_f^{0,m}\cup {\mathcal {A}}_f^{1,m}\cup {\mathcal {A}}_f^{2,m}\cup {\mathcal {A}}_f^{2,m+1}. \end{aligned}$$

Lemma 2.6

Let f be a \(\gamma _{_I}(G\circ _v H)\)-function. If \({\mathcal {B}}_f\ne \emptyset \), then there exists a \(\gamma _{_I}(G\circ _v H)\)-function g such that \({\mathcal {B}}_g={\mathcal {B}}_f\) and

$$\begin{aligned} {\mathcal {A}}_g\in \{{\mathcal {A}}_g^{1,m},{\mathcal {A}}_g^{2,m}, {\mathcal {A}}_g^{2,m+1},{\mathcal {A}}_g^{1,m}\cup {\mathcal {A}}_g^{2,m+1}\}. \end{aligned}$$

Proof

Let f be a \(\gamma _{_I}(G\circ _v H)\)-function with \({\mathcal {B}}_f\ne \emptyset \). Notice that, by Lemma 2.3, \({\mathcal {A}}_f\ne \emptyset \). Now, since f is a \(\gamma _{_I}(G\circ _v H)\)-function, if \({\mathcal {A}}_f^{2,m}\ne \emptyset \), then \({\mathcal {A}}_f^{2,m+1}=\emptyset \). Furthermore, if \({\mathcal {A}}_f^{1,m}\ne \emptyset \) and \({\mathcal {A}}_f^{0,m}\ne \emptyset \), then we fix \(y\in {\mathcal {A}}_f^{1,m}\) and we define a \(\gamma _{_I}(G\circ _v H)\)-function g such that for every \(x\in {\mathcal {A}}_f^{0,m}\), \(g_x\) is induced by \(f_y\) and \(g_z=f_z\) for every \(z\in V(G)\setminus {\mathcal {A}}_f^{0,m}\). In such a case, \({\mathcal {A}}_g^{1,m}\ne \emptyset \) and \({\mathcal {A}}_g^{0,m}=\emptyset \).

Using similar arguments we can show that if \({\mathcal {A}}_f^{2,m}\ne \emptyset \), then there exists a \(\gamma _{_I}(G\circ _v H)\)-function g such that \({\mathcal {A}}_g^{0,m}\cup {\mathcal {A}}_g^{1,m}\cup {\mathcal {A}}_g^{2,m+1}=\emptyset \).

Hence, by Corollary 2.5 we conclude that

$$\begin{aligned} {\mathcal {A}}_g\in \big \{{\mathcal {A}}_g^{0,m},{\mathcal {A}}_g^{1,m},{\mathcal {A}}_g^{2,m},{\mathcal {A}}_g^{0,m}\cup {\mathcal {A}}_g^{2,m+1},{\mathcal {A}}_g^{1,m}\cup {\mathcal {A}}_g^{2,m+1}\big \}. \end{aligned}$$

Finally, if \({\mathcal {A}}_g^{0,m}\ne \emptyset \), then we fix \(y\in {\mathcal {B}}_g\) and we define a function h on \(G\circ _v H\) by \(h_z=g_z\) for every \(z\in V(G){\setminus } {\mathcal {A}}_g^{0,m}\) and for every \(x\in {\mathcal {A}}_g^{0,m}\) we set \(h(x)=1\) and \(h_x^-\) is induced by \(g^-_y\) . Notice that h is an IDF of weight \(\omega (h)=\omega (g)=\omega (f)\) and \({\mathcal {A}}_h\in \{ {\mathcal {A}}_h^{1,m},{\mathcal {A}}_h^{2,m}, {\mathcal {A}}_h^{2,m+1},{\mathcal {A}}_h^{1,m}\cup {\mathcal {A}}_h^{2,m+1}\}.\) Therefore, the result follows. \(\square \)

Proposition 2.7

If there exists a \(\gamma _{_I}(G\circ _v H)\)-function f such that \({\mathcal {B}}_f\ne \emptyset \), then

$$\begin{aligned} \gamma _{_I}\big (G\circ _v H\big )\le n(G)\big (\gamma _{_I}(H)-1\big )+\gamma _{_I}(G). \end{aligned}$$

Proof

Let f be a \(\gamma _{_I}(G\circ _v H)\)-function and \(u\in V(G)\) such that \(u\in {\mathcal {B}}_f\). Let h be a \(\gamma _{_I}(G)\)-function. By Lemma 2.1, \(f(u)=0\), so that \(f_u^-\) is an IDF on \(H_u-\{u\}\). Notice that \(\omega (f_u^-)=\omega (f_u)=\gamma _{_I}(H)-1\). Consider the function g on \(G\circ _v H\) such that \(g_x^-\) is induced by \(f_u^-\) and \(g(x)=h(x)\) for every vertex \(x\in V(G)\). Thus, g is an IDF on \(G\circ _v H\) of weight \(\omega (g)=n(G)\omega (f_u^-)+\omega (h)=n(G)(\gamma _{_I}(H)-1)+\gamma _{_I}(G)\), concluding that \(\gamma _{_I}(G\circ _v H)\le n(G)(\gamma _{_I}(H)-1)+\gamma _{_I}(G)\). \(\square \)

Theorem 2.8

(Trichotomy) For any graph G, any graph H and any vertex \(v\in ~V(H)\),

  • \(\gamma _{_I}(G\circ _v H)=n(G)(\gamma _{_I}(H)-1)+\gamma (G)\) or

  • \(\gamma _{_I}(G\circ _v H)= n(G)(\gamma _{_I}(H)-1)+\gamma _{_I}(G)\) or

  • \(\gamma _{_I}(G\circ _v H)= n(G)\gamma _{_I}(H).\)

Furthermore, the following statements hold for any pair of \(\gamma _{_I}(G\circ _v H)\)-functions f and \(f'\).

  • \({\mathcal {B}}_f=~\emptyset \) if and only if \({\mathcal {B}}_{f'}=~\emptyset \).

  • \(\gamma _{_I}(G\circ _v H)=n(G)\gamma _{_I}(H)\) if and only if \({\mathcal {B}}_f=~\emptyset \).

Proof

Let \(f(V_0,V_1,V_2)\) be a \(\gamma _{_I}(G\circ _v H)\)-function. If \({\mathcal {B}}_f=~\emptyset \), then \(\omega (f_x)\ge \gamma _{_I}(H)\) for every \(x\in V(G)\), which implies that \(\gamma _{_I}(G\circ _v H)\ge n(G)\gamma _{_I}(H)\). Hence, \(\gamma _{_I}(G\circ _v H)=n(G)\gamma _{_I}(H)\), as we always can construct an IDF g such that \(\omega (g_x)=\gamma _{_I}(H)\) for every \(x\in V(G)\).

From now on we consider the case \({\mathcal {B}}_f\ne \emptyset \), and so we can assume that f is a \(\gamma _{_I}(G\circ _v H)\)-function which satisfies Lemma 2.6.

First, suppose that there exists \(x\in {\mathcal {B}}_f\) such that \(f(y)>0\) for some \(y\in N(x)\cap V(H_x)\). Let S be a \(\gamma (G)\)-set and consider the function g on \(G\circ _v H\) where \(g_u^-\) is induced by \(f_x^-\) for every \(u\in V(G)\), \(g(u)=1\) for every \(u\in S\) and \(g(u)=0\) for every \(u\in V(G){\setminus } S\). Notice that for every \(u\in V(G)\), \(g_u^-\) is an IDF on \(H_u-\{u\}\). Moreover, since S is a dominating set of G and for every \(u\in V(G){\setminus } S\) there exists a vertex \(y\in N(u)\cap V(H_u)\) with \(g(y)>0\), we conclude that g is an IDF on \(G\circ _v H\) of weight \(n(G)(\gamma _{_I}(H)-1)+\gamma (G)\), concluding that \(\gamma _{_I}(G\circ _v H)\le n(G)(\gamma _{_I}(H)-1)+\gamma (G)\). To show that in fact this is an equality, we observe that Lemmas 2.3 and 2.4 lead to

$$\begin{aligned} \gamma _{_I}\big (G\circ _v H\big )&\ge \vert {\mathcal {A}}_f\vert \gamma _{_I}(H)+\vert {\mathcal {B}}_f\vert \big (\gamma _{_I}(H)-1\big )\\&=n(G)\big (\gamma _{_I}(H)-1\big )+\vert {\mathcal {A}}_f\vert \\&\ge n(G)\big (\gamma _{_I}(H)-1\big )+\gamma (G). \end{aligned}$$

Hence, \(\gamma _{_I}(G\circ _v H)= n(G)(\gamma _{_I}(H)-1)+\gamma (G)\).

From now on we suppose that \(N(x)\cap V(H_x)\subseteq V_0\) for every \(x\in {\mathcal {B}}_f\). Notice that in this case, \(|N(x)\cap {\mathcal {A}}_f \cap V_1 |\ge 2\) or \(|N(x)\cap {\mathcal {A}}_f \cap V_2)|\ge 1\) for every vertex \(x\in {\mathcal {B}}_f\). Furthermore, since f satisfies Lemma 2.6, \({\mathcal {A}}_f\subseteq V_1\cup V_2\). Hence, the restriction of f to V(G) is an IDF on G, and so

$$\begin{aligned} \sum _{x\in {\mathcal {A}}_f}f(x)\ge \gamma _{_I}(G). \end{aligned}$$

Since f satisfies Lemma 2.6, we can differentiate the following cases.

Case 1. \({\mathcal {A}}_f={\mathcal {A}}_f^{1,m}\). In this case,

$$\begin{aligned} \gamma _{_I}(G\circ _v H)&=|{\mathcal {A}}_f|\gamma _{_I}(H)+|{\mathcal {B}}_f|\big (\gamma _{_I}(H)-1\big )\\&=n(G)\big (\gamma _{_I}(H)-1\big )+|{\mathcal {A}}_f|\\&\ge n(G)\big (\gamma _{_I}(H)-1\big )+\gamma _{_I}(G). \end{aligned}$$

Hence, by Proposition 2.7 we conclude that \(\gamma _{_I}(G\circ _v H)=n(G)(\gamma _{_I}(H)-1)+\gamma _{_I}(G)\).

Case 2. \({\mathcal {A}}_f={\mathcal {A}}_f^{2,m}\). By Lemma 2.3 we have that \(|{\mathcal {A}}_f|\ge \gamma (G)\), so that

$$\begin{aligned} \gamma _{_I}(G\circ _v H)&=|{\mathcal {A}}_f|\gamma _{_I}(H)+|{\mathcal {B}}_f|\big (\gamma _{_I}(H)-1\big )\\&=n(G)\big (\gamma _{_I}(H)-1\big )+|{\mathcal {A}}_f|\\&\ge n(G)\big (\gamma _{_I}(H)-1\big )+\gamma (G). \end{aligned}$$

To show the equality, we take a \(\gamma (G)\)-set S and fix \(x\in {\mathcal {A}}_f\) and \(y\in {\mathcal {B}}_f\). Consider the function g on \(G\circ _v H\) such that for every \(u\in S\), \(g_u\) is induced by \(f_x\) and for every \(u\in V(G){\setminus } S\), \(g_u\) is induced by \(f_y\). Then, \(g(u)=2\) for every \(u\in S\) and we have that g is an IDF on \(G\circ _v H\) of weight \(n(G)(\gamma _{_I}(H)-1)+\gamma (G)\), concluding that \(\gamma _{_I}(G\circ _v H)= n(G)(\gamma _{_I}(H)-1)+\gamma _{}(G)\).

Case 3. \({\mathcal {A}}_f={\mathcal {A}}_f^{2,m+1}\). By Lemma 2.3 we have that \(|{\mathcal {A}}_f|\ge \gamma (G)\) and since \(\gamma _{_I}(G)\le 2\gamma (G)\) we deduce that

$$\begin{aligned} \gamma _{_I}(G\circ _v H)&=|{\mathcal {A}}_f|\big (\gamma _{_I}(H)+1\big )+|{\mathcal {B}}_f|\big (\gamma _{_I}(H)-1\big )\\&=n(G)\big (\gamma _{_I}(H)-1\big )+2|{\mathcal {A}}_f|\\&\ge n(G)\big (\gamma _{_I}(H)-1\big )+2\gamma (G)\\&\ge n(G)\big (\gamma _{_I}(H)-1\big )+\gamma _{_I}(G). \end{aligned}$$

Hence, by Proposition 2.7 we conclude that \(\gamma _{_I}(G\circ _v H)=n(G)(\gamma _{_I}(H)-1)+\gamma _{_I}(G)\).

Case 4. \({\mathcal {A}}_f={\mathcal {A}}_f^{1,m}\cup {\mathcal {A}}_f^{2,m+1}\). In this case,

$$\begin{aligned} \big |{\mathcal {A}}_f^{1,m}\big |+2\big |{\mathcal {A}}_f^{2,m+1}\big |=\sum _{x\in {\mathcal {A}}_f}f(x)\ge \gamma _{_I}(G). \end{aligned}$$

Thus,

$$\begin{aligned} \gamma _{_I}\big (G\circ _v H\big )&=\big |{\mathcal {A}}_f^{1,m}\big |\gamma _{_I}(H)+\big |{\mathcal {A}}_f^{2,m+1}\big |\big (\gamma _{_I}(H)+1\big )+\big |{\mathcal {B}}_f\big |\big (\gamma _{_I}(H)-1\big )\\ {}&=n(G)\big (\gamma _{_I}(H)-1\big )+\big |{\mathcal {A}}_f^{1,m}\big |+2\big |{\mathcal {A}}_f^{2,m+1}\big |\\&\ge n(G)\big (\gamma _{_I}(H)-1\big )+\gamma _{_I}(G). \end{aligned}$$

Finally, by Proposition 2.7 we conclude that \(\gamma _{_I}(G\circ _v H)=n(G)(\gamma _{_I}(H)-1)+\gamma _{_I}(G)\).

Therefore, \(\gamma _{_I}(G\circ _v H)\in \{n(G)(\gamma _{_I}(H)-1)+\gamma (G), n(G)(\gamma _{_I}(H)-1)+\gamma _{_I}(G), n(G)\gamma _{_I}(H)\}.\) The remaining statements follow from the previous analysis. \(\square \)

Corollary 2.9

For any graph G and \(v\in V(K_2)\),

$$\begin{aligned} \gamma _{_I}\big (G\circ _v K_2\big )=n(G)+\gamma (G). \end{aligned}$$

Proof

By Theorem 2.8 we have that \(\gamma _{_I}(G\circ _v K_2)\ge n(G)+\gamma (G).\) To conclude the proof we only need to observe that from any \(\gamma (G)\)-set D we can define an IDF \(f(W_0,W_1,W_2)\) on \(G\circ _vK_2\) in such a way that \(W_0=V(G)\setminus D\) and \(W_2=\emptyset \). Since \(\gamma _{_I}(G\circ _v K_2)\le \omega (f)= n(G)+\gamma (G)\), the result follows. \(\square \)

Corollary 2.10

Let G and H be two graphs and let \(v\in V(H)\). If \(n(H)\ge 3\), then \(\gamma _{_I}(G\circ _v H)\ge 2n(G)\) and the equality holds if and only if \(\gamma _{_I}(H)=2.\)

Proof

Let f be a \(\gamma _{_I}(G\circ _v H)\)-function. By Theorem 2.8 we differentiate two cases. First, if \(\gamma _{_I}(G\circ _v H)= n(G)\gamma _{_I}(H)\), then we immediately conclude that \(\gamma _{_I}(G\circ _v H)\ge 2 n(G)\) and the equality holds if and only if \(\gamma _{_I}(H)=2.\)

Now, if \(\gamma _{_I}(G\circ _v H)\ne n(G)\gamma _{_I}(H)\), then Theorem 2.8 and Corollary 2.2 lead to \(\gamma _{_I}(G\circ _v H)\ge n(G)(\gamma _{_I}(H)-1)+\gamma (G)\ge 2n(G)+\gamma (G)>2n(G)\). Therefore, the result follows. \(\square \)

From the results above, we can summarize the case where \(\gamma _{_I}(H)=2\) as follows.

Theorem 2.11

Let G and H be two graphs. If \(\gamma _{_I}(H)=2\), then

$$\begin{aligned} \gamma _{_I}(G\circ _v H)= \left\{ \begin{array}{lll} n(G)+\gamma (G), &{} \quad \text {if and only if }H\cong K_2 ;\\ \\ n(G)+\gamma _{_I}(G), &{}\quad \text {if and only if }H\cong {\overline{K}}_2; \\ \\ 2n(G), &{}\quad \text {otherwise.} \end{array} \right. \end{aligned}$$

From now on, the graph obtained from H by removing vertex v will be denoted by \(H-\{v\}\). Notice that any \(\gamma _{_I}(H-\{v\})\)-function can be extended to an IDF on H by assigning the value 1 to v, which implies that the following lemma holds.

Lemma 2.12

For any nontrivial graph H and any \(v\in V(H)\),

$$\begin{aligned} \gamma _{_I}(H-\{v\})\ge \gamma _{_I}(H)-1. \end{aligned}$$

In order to stablish a sufficient and necessary condition to assure that \(\gamma _{_I}(G\circ _v H)=n(G)\gamma _{_I}(H)\) when \(\gamma _{_I}(G)<n(G)\), we need to state the following lemma.

Lemma 2.13

Let f be a \(\gamma _{_I}(G\circ _v H)\)-function. If \({\mathcal {B}}_f\ne \emptyset \), then \(\gamma _{_I}(H-\{v\})= \gamma _{_I}(H)-1\).

Proof

If there exists \(x\in {\mathcal {B}}_f\), then \(\omega (f_x)=\gamma _{_I}(H)-1\) and \(f(x)=0\) (by Lemma 2.1), which implies that \(f_x^-\) is an IDF on \(H_x-\{x\}\) of weight \(\gamma _{_I}(H)-1\), and so \(\gamma _{_I}(H-\{v\})\le \gamma _{_I}(H)-1\). By Lemma 2.12 we conclude the proof. \(\square \)

The following result is straightforward.

Remark 2.14

\(\gamma _{_I}(G)=n(G)\) if and only if G has maximum degree \(\delta _{\max }(G)\le 1\).

Theorem 2.15

Let G be a graph of maximum degree \(\delta _{\max }(G)\ge 2\). Given a graph H and a vertex \(v\in V(H)\), \(\gamma _{_I}(G\circ _v H)=n(G)\gamma _{_I}(H)\) if and only if \(\gamma _{_I}(H-\{v\})\ge \gamma _{_I}(H)\).

Proof

Suppose that \(\gamma _{_I}(H-\{v\})< \gamma _{_I}(H)\). In such a case, \(\gamma _{_I}(H-\{v\})=\gamma _{_I}(H)-1\) by Lemma 2.12. Hence, from any \(\gamma _{_I}(H-\{v\})\)-function and any \(\gamma _{_I}(G)\)-function we can construct an IDF on \(G\circ _v H\) of weight \(n(G)(\gamma _{_I}(H)-1)+\gamma _{_I}(G)\), which implies that \( \gamma _{_I}(G\circ _v H)\le n(G)(\gamma _{_I}(H)-1)+\gamma _{_I}(G)\), and by Remark 2.14 we deduce that \( \gamma _{_I}(G\circ _v H)<n(G)\gamma _{_I}(H)\). Therefore, if \(\gamma _{_I}(G\circ _v H)=n(G)\gamma _{_I}(H)\), then \(\gamma _{_I}(H-\{v\})\ge \gamma _{_I}(H)\).

Now, assume that \(\gamma _{_I}(H-\{v\})\ge \gamma _{_I}(H)\) and let f be a \(\gamma _{_I}(G\circ _v H)\)-function. By Lemma 2.13 we have that \({\mathcal {B}}_f=\emptyset \), and so Theorem 2.8 leads to \(\gamma _{_I}(G\circ _v H)=n(G)\gamma _{_I}(H)\). \(\square \)

It was shown in [1] that \(\gamma _{_I}(C_t)=\left\lceil \frac{t}{2}\right\rceil \) for every \(t\ge 3\) and \(\gamma _{_I}(P_t)=\left\lceil \frac{t+1}{2}\right\rceil \) for every \(t\ge 1\). Since \(\gamma _{_I}(C_{t}-\{v\})=\gamma _{_I}(P_{t-1})=\left\lceil \frac{t}{2}\right\rceil =\gamma _{_I}(C_{t})\) for every \(t\ge 3\), Theorem 2.15 leads to the following result.

Corollary 2.16

If G be a graph, \(v\in V(C_t)\) and \(t\ge 3\), then

$$\begin{aligned} \gamma _{_I}(G\circ _v C_t)= n(G)\left\lceil \frac{t}{2}\right\rceil . \end{aligned}$$

From Lemma 2.12 and Theorems 2.8 and 2.15 we deduce the following result.

Theorem 2.17

Let G be a graph of maximum degree \(\delta _{\max }(G)\ge 2\). Given a graph H and a vertex \(v\in V(H)\), the following statements are equivalent.

  • \(\gamma _{_I}(G\circ _v H)= n(G)(\gamma _{_I}(H)-1)+\gamma _{_I}(G)\) or \(\gamma _{_I}(G\circ _v H)= n(G)(\gamma _{_I}(H)-1)+\gamma (G)\).

  • \(\gamma _{_I}(H-\{v\})=\gamma _{_I}(H)-1\).

We now focus on the case of graphs G with \(\gamma _{_I}(G)>\gamma (G)\).

Theorem 2.18

Let G be a graph of maximum degree \(\delta _{\max }(G)\ge 2\) with \( \gamma _{_I}(G)>\gamma (G)\). For any graph H and any vertex \(v\in V(H)\), \(\gamma _{_I}(G\circ _v H)=n(G)(\gamma _{_I}(H)-1)+\gamma (G)\) if and only if \(\gamma _{_I}(H-\{v\})=\gamma _{_I}(H)-1\) and one of the following conditions holds.

  1. (i)

    There exists a \(\gamma _{_I}(H-\{v\})\)-function g such that \(g(y)>0\) for some \(y\in N(v)\).

  2. (ii)

    There exists a \(\gamma _{_I}(H)\)-function h such that \(h(v)=2\).

Proof

Assume that \(\gamma _{_I}(G\circ _v H)=n(G)(\gamma _{_I}(H)-1)+\gamma (G)\). By Theorem 2.17, \(\gamma _{_I}(H-\{v\})=\gamma _{_I}(H)-1\). Suppose by contradiction that conditions (i) and (ii) do not hold. Let f be a \(\gamma _{_I}(G\circ _v H)\)-function. Since \(\gamma (G)<\gamma _{_I}(G)< n(G)\), we have that \(\gamma _{_I}(G\circ _v H)=n(G)(\gamma _{_I}(H)-1)+\gamma (G)<n(G)\gamma _{_I}(H)\), concluding that \({\mathcal {B}}_f\ne \emptyset \) by Theorem 2.8. We can assume that f satisfies Lemma 2.6 and so \({\mathcal {A}}_f\in \{{\mathcal {A}}_f^{1,m},{\mathcal {A}}_f^{2,m},{\mathcal {A}}_f^{2,m+1},{\mathcal {A}}_f^{1,m}\cup {\mathcal {A}}_f^{2,m+1}\}\). Moreover, \({\mathcal {A}}_f\ne {\mathcal {A}}_f^{2,m}\) since (ii) does not hold. For any \(x\in {\mathcal {B}}_f\), we have that \(f(x)=0\) (by Lemma 2.1), which implies that \(f_x^-\) is \(\gamma (H-\{x\})-\)function, and since (i) does not hold, \(N(x)\cap V(H_x)\subseteq V_0\). Hence, we only have to consider Cases 1, 3 and 4 of the proof of Theorem 2.8, to obtain that \(\gamma _{_I}(G\circ _v H)=n(G)(\gamma _{_I}(H)-1)+\gamma _{_I}(G)\), which is a contradiction as \(\gamma (G)<\gamma _{_I}(G)\). Hence, conditions (i) and (ii) hold.

Now, assume that \(\gamma _{_I}(H-\{v\})=\gamma _{_I}(H)-1\). First, suppose that condition (i) holds. So, consider a \(\gamma _{_I}(H-\{v\})\)-function h such that \(h(y)>0\) for some \(y\in N(v)\). Let S be a \(\gamma (G)\)-set and consider the function l on \(G\circ _v H\) such that for every vertex \(x\in V(G)\), \(l^-_x\) is induced by h, \(l(x)=1\) if \(x\in S\) and \(l(x)=0\) if \(x\not \in S\). Notice that l is an IDF on \(G\circ _v H\) of weight \(\omega (l)=n(G)(\gamma _{_I}(H)-1)+\gamma (G)\), which implies that \(\gamma _{_I}(G\circ _v H)\le n(G)(\gamma _{_I}(H)-1)+\gamma (G)\). Thus, by Theorem 2.17 we conclude that \(\gamma _{_I}(G\circ _v H)=n(G)(\gamma _{_I}(H)-1)+\gamma (G)\). Now, suppose that (i) does not hold and (ii) holds. As \(\gamma _{_I}(H-\{v\})=\gamma _{_I}(H)-1\) and \(\delta _{\max }(G)\ge 2\), by Theorem 2.17 we have that \(\gamma _{_I}(G\circ _v H)<n(G)\gamma _{_I}(H)\). Hence, by Theorem 2.8 we conclude that \({\mathcal {B}}_g\ne \emptyset \) for every \(\gamma _{_I}(G\circ _v H)\)-function g. We can assume that g satisfies Lemma 2.6, i.e. \({\mathcal {A}}_g\in \{{\mathcal {A}}_g^{1,m},{\mathcal {A}}_g^{2,m},{\mathcal {A}}_g^{2,m+1},{\mathcal {A}}_g^{1,m}\cup {\mathcal {A}}_g^{2,m+1}\}\). Moreover, since condition (ii) holds, we can claim that \({\mathcal {A}}_g^{2,m}\ne \emptyset \), so that \({\mathcal {A}}_g={\mathcal {A}}_g^{2,m}\). Now, for any \(x\in {\mathcal {B}}_g\), we have that \(g(x)=0\) and \(g_x^-\) is \(\gamma (H-\{x\})\)-function and, since (i) does not hold, \(N(x)\cap V(H_x)\subseteq V_0\). To conclude the proof we only have to consider Case 2 of the proof of Theorem 2.8, obtaining that \(\gamma _{_I}(G\circ _v H)=n(G)(\gamma _{_I}(H)-1)+\gamma (G)\). \(\square \)

From Theorems 2.15 and 2.18 we deduce the following result.

Theorem 2.19

Let G be a graph and \(t\ge 2\). If \(v\in L(P_t)\), then

$$\begin{aligned} \displaystyle \gamma _{_I}(G\circ _v P_t)= \left\{ \begin{array}{lll} n(G)\left\lceil \frac{t+1}{2}\right\rceil , &{}\quad t\equiv 1 \pmod 2 ;\\ \\ n(G) \left\lceil \frac{t}{2}\right\rceil +\gamma (G), &{}\quad t\equiv 0 \pmod 2 . \end{array} \right. \end{aligned}$$

Furthermore, if \(v\in V(P_t){\setminus } L(P_t)\), then

$$\begin{aligned} \gamma _{_I}(G\circ _v P_t)=n(G)\left\lceil \frac{t+1}{2}\right\rceil \end{aligned}$$

Proof

The case \(t\equiv 1 \pmod 2\) for any v is deduced from Theorem 2.15, while the case \(t\equiv 0 \pmod 2\) for \(v\in V(P_t){\setminus } L(P_t)\) is deduced from Theorem 2.18. \(\square \)

From Theorems 2.17 and 2.18 we immediately have the following result.

Theorem 2.20

Let G be a graph of maximum degree \(\delta _{\max }(G)\ge 2\) with \(\gamma (G)<\gamma _{_I}(G)\). For any graph H and any vertex \(v\in V(H)\), \(\gamma _{_I}(G\circ _v H)=n(G)(\gamma _{_I}(H)-1)+\gamma _{_I}(G)\) if and only if \(\gamma _{_I}(H-\{v\})=\gamma _{_I}(H)-1\) and the following conditions hold:

  1. (i)

    For every \(\gamma _{_I}(H-\{v\})\)-function g, \(g(y)=0\) for every \(y\in N(v)\).

  2. (ii)

    For every \(\gamma _{_I}(H)\)-function h, \(h(v)\ne 2\).

Theorem 2.21

Let G be a graph with \(\delta _{\max }(G)\ge 2\), H a graph and \(u\in V(H)\). If \(f(u)=2\) for every \(\gamma _{_I}(H)\)-function f, then for every \(v\in N(u)\),

$$\begin{aligned} \gamma _{_I}(G\circ _v H)=n(G)\gamma _{_I}(H). \end{aligned}$$

Proof

Assume that \(f(u)=2\) for every \(\gamma _{_I}(H)\)-function f, and let \(v\in N(u)\). Suppose to the contrary that \(\gamma _{_I}(G\circ _v H)\ne n(G)\gamma _{_I}(H)\). In such a case, by Theorem 2.15 and Lemma 2.12 we conclude that \(\gamma _{_I}(H-\{v\})=\gamma _{_I}(H)-1\). Let g be a \(\gamma _{_I}(H-\{v\})\)-function. If \(g(u)=2\), then we define a function h on H such that \(h(w)=g(w)\) for every \(w\ne v\) and \(h(v)=0\). Observe that h is an IDF on H with \(\omega (h)=\omega (g)=\gamma _{_I}(H)-1\), which is a contradiction. If \(g(u)\le 1\), then we define a function h on H such that \(h(w)=g(w)\) if \(w\ne v\) and \(h(v)=1\). In this case, h is a \(\gamma _{_I}(H)\)-function with \(h(u)\ne 2\), which is a contradiction. Therefore, \(\gamma _{_I}(G\circ _v H)=n(G)\gamma _{_I}(H)\). \(\square \)

The next theorem considers the case in which the root of H is a strong support vertex. A leaf of a graph H is a vertex of degree one while a strong support vertex of H is a vertex adjacent to at least two leaves. We denote the set of leaves of H as L(H) and the set of strong support vertices of H as S(H).

Theorem 2.22

Let G and H be two graphs. If \(v\in S(H)\) then

$$\begin{aligned} \gamma _{_I}(G\circ _v H)=n(G)\gamma _{_I}(H). \end{aligned}$$

Proof

By Theorem 2.15, it is enough to show that \(\gamma _{_I}(H-\{v\})\ge \gamma _{_I}(H)\). Notice that for any \(\gamma _{_I}(H-\{v\})\)-function g and any \(u\in L(H)\cap N(v)\) we have that \(g(u)=1\). Since \(|N(v)\cap L(H)|\ge 2\), the function f defined on H as \(f(v)=0\) and \(f(w)=g(w)\) if \(w\in V(H)-\{v\}\) is an IDF on H concluding that \(\gamma _{_I}(H-\{v\})\ge \omega (g)=\omega (f)=\gamma _{_I}(H)\), as required. \(\square \)

Theorem 2.23

Let G be a graph with \(\delta _{\max }(G)\ge 2\), H a graph and \(v\in V(H)\). If \(g(v)\ne 1\) for every \(\gamma _{_I}(H)\)-function g, then

$$\begin{aligned} \gamma _{_I}(G\circ _v H)=n(G)\gamma _{_I}(H). \end{aligned}$$

Proof

Assume that \(g(v)\ne 1\) for every \(\gamma _{_I}(H)\)-function g, and suppose that \(\gamma _{_I}(G\circ _v H)\ne n(G)\gamma _{_I}(H)\). By Lemma 2.12 and Theorem 2.15 we have that \(\gamma _{_I}(H-\{v\})=\gamma _{_I}(H)-1\). Let f be a \(\gamma _{_I}(H-\{v\})\)-function and consider the function h on H such that \(h(v)=1\) and \(h(u)=f(u)\) for every \(u\ne v\). Notice that h is a \(\gamma _{_I}(H)\)-function on H with \(h(v)=1\), which is a contradiction. Therefore, \(\gamma _{_I}(G\circ _v H)=n(G)\gamma _{_I}(H)\).

\(\square \)

3 The Case of Corona Graphs

Given two graphs G and H, the corona product \(G\odot H\) is defined as the graph obtained from G and H by taking one copy of G and n(G) copies of H and joining by an edge each vertex of the ith copy of H with the ith vertex of G for each \(i\in \{1,\dots ,n(G)\}\).

The join \(G + H\) is defined as the graph obtained from disjoint graphs G and H by taking one copy of G and one copy of H and joining by an edge each vertex of G with each vertex of H. Notice that the corona product graph \(K_1\odot H\) is isomorphic to the join graph \(K_1 + H\). Furthermore, any corona product graph \(G\odot H\) can be seen as a rooted product, i.e.

$$\begin{aligned} G\odot H\cong G\circ _v(K_1+H), \end{aligned}$$

where v is the vertex of \(K_1\). Since \(\gamma _{_I}(K_1+ H)=2\), by Theorem 2.11 we deduce the following result.

Corollary 3.1

For any graph G and any graph H,

$$\begin{aligned} \gamma _{_I}(G\odot H)= \left\{ \begin{array}{ll} n(G)+\gamma (G), &{}\quad \text { if } H\cong K_1;\\ \\ 2n(G), &{}\quad \text {otherwise.} \end{array}\right. \end{aligned}$$

4 NP-Hardness

Given a positive integer k and a graph G, the problem of deciding if G has an Italian dominating function f of weight \(\omega (f)\le k\) is NP-complete [1]. Therefore, the problem of computing the Italian domination number of a graph is NP-hard. In this section we will show an alternative way of reaching this conclusion.

Recently some authors have shown how graph products can become useful tools to show that some optimization problems are NP-hard. For instance, Fernau and Rodríguez-Velázquez [4, 5] have shown that the corona product of two graphs can be used to derive NP-hardness results on the (local) metric dimension, based on known NP-hardness results on the (local) adjacency dimension. In the same direction, Dettlaff et al. [3] have shown how we can use the lexicographic product of two graphs to deduce an NP-hardness result on the super domination number, from a well-known NP-hardness result on the independence number of a graph. In Theorem 4.1 we will show that we can use the rooted product of two graphs to study the computational complexity of the problem of finding the Italian domination number of a graph. In this case, we will use Corollary 2.9 and the fact that the problem of computing the domination number of a graph is NP-hard., i.e. given a positive integer k and a graph G, the problem of deciding if G has a dominating set D of cardinality \(|D|\le k\) is NP-complete [6], which implies that the optimization problem of computing the domination number of a graph is NP-hard.

Theorem 4.1

The problem of computing the Italian domination number of a graph is NP-hard.

Proof

By Corollary 2.9, for any graph G we have that

$$\begin{aligned} \gamma _{_I}(G\circ _v K_2)=n(G)+\gamma (G), \end{aligned}$$

where v is a leaf of \(K_2\). Hence, the problem of computing \(\gamma (G)\) is equivalent to the problem of finding \(\gamma _{_I}(G\circ _v K_2)\), which implies that the problem of computing the Italian domination number of a graph is NP-hard. \(\square \)