1 Introduction

Given a graph \(G=(V(G),E(G))\), the open neighbourhood of a vertex v of a graph G is defined to be \(N(v)=\{u \in V(G):\; u \text { is adjacent to } v\}\). The open neighbourhood of a set \(S\subseteq V(G)\) is defined as \(N(S)=\cup _{v\in S}N(v)\), while the external neighbourhood of S, or boundary of S, is defined as \(N_e(S)=N(S){\setminus } S\). The closed neighbourhood of v is \(N[v]=N(v)\cup \{v\}\) and the closed neighbourhood of a set \(S\subseteq V(G)\) is \(N[S]=N(S)\cup S\). We denote by \(\deg (v)=|N(v)|\) the degree of vertex v, as well as \(\delta (G)=\min _{v \in V(G)}\{\deg (v)\}\) the minimum degree of G, \({ \Delta }(G)=\max _{v \in V(G)}\{\deg (v)\}\) the maximum degree of G, \({\text {n}}(G)=|V(G)|\) the order of G and \({\text {m}}(G)=|E(G)|\) the size of G.

The differential of a set \(S\subseteq V(G)\) is defined as \(\partial (S)=|N_e(S)|-|S|\), while the differential of a graph G is defined to be

$$\begin{aligned} \partial (G)=\max \{\partial (S):\, S\subseteq V(G)\}. \end{aligned}$$

As described in [19], the definition of \(\partial (G)\) was given by Hedetniemi about twenty-five years ago in an unpublished paper, and was also considered by Goddard and Henning [10]. After that, the differential of a graph has been studied by several authors, including [2, 5, 19, 24, 26].

Lewis et al. [19] motivated the definition of differential from the following game, what we call graph differential game. “You are allowed to buy as many tokens as you like, say k tokens, at a cost of one dollar each. You then place the tokens on some subset D of k vertices of a graph G. For each vertex of G which has no token on it, but is adjacent to a vertex with a token on it, you receive one dollar. Your objective is to maximize your profit, that is, the total value received minus the cost of the tokens bought”. Obviously, \(\partial (D)=|N_e(D)|-|D|\) is the profit obtained with the placement D, while the maximum profit equals \(\partial (G)\).

In order to introduce a variant of this game, we need the following terminology. A set \(S\subseteq V(G)\) is a 2-packing if \(N[u]\cap N[v]= \varnothing \) for every pair of different vertices \(u,v\in S\). We define

$$\begin{aligned} \wp (G)=\{S\subseteq V(G): S \text { is a }2\text {-packing of } G \}. \end{aligned}$$

The 2-packing number of G, denoted by \(\rho (G)\), is defined to be

$$\begin{aligned} \rho (G)=\max \{|S|:\, S\in \wp (G) \}. \end{aligned}$$

Now, we consider a version of the graph differential game in which we impose two additional conditions: (1) every vertex which has no token on it is adjacent to at most one vertex with a token on it; and (2) no vertex with a token on it is adjacent to a vertex with a token on it. In this case, any placement D of tokens is a 2-packing and so this version of the game can be called 2-packing graph differential game, as the maximum profit equals the 2-packing differential of G, which is defined as

$$\begin{aligned} \partial _{2p}(G)=\max \{\partial (S):\, S\in \wp (G)\}. \end{aligned}$$

We define a \(\partial _{2p}(G)\)-set as a set \(S\in \wp (G)\) with \(\partial (S)=\partial _{2p}(G)\). The same agreement will be assumed for optimal parameters associated to other characteristic sets defined in the paper.

Let G be the graph shown in Fig. 1. In the graph differential game, if we place the tokens on vertices a, b and c, then we obtain the maximum profit \(\partial (G)=7\). In contrast, in the 2-packing graph differential game, the maximum profit \(\partial _{2p}(G)=6\) is given by the placement of token on vertices a and b.

Fig. 1
figure 1

A graph G with \(\partial (G)=7\) and \(\partial _{2p}(G)=6\)

In this paper we show that the 2-packing differential is closely related to several graph parameters, including the packing number, the independent domination number, the total domination number, the perfect differential, and the unique response Roman domination number. In particular, we show that the theory of 2-packing differentials is an appropriate framework to investigate the unique response Roman domination number of a graph without the use of functions.

The rest of the paper is organized as follows. Section 2 is devoted to provide some general bounds on the 2-packing differential, in terms of different parameters such as the maximum and minimum degrees of the graph, the number of vertices, the number of edges, among others. We show that the bounds are tight and, in some cases, we characterize the graphs achieving them. As a consequence of the study, we show that the problem of finding \(\partial _{2p}(G)\) is NP-hard. In Sect. 3 we obtain a Nordhaus–Gaddum type theorem for both the addition and the product of the 2-packing differential of a graph and its complement. Section 4 is devoted to the study of the relationship between the 2-packing differential and the perfect differential of a graph. In Sect. 5 we prove a Gallai-type theorem which states that \(\partial _{2p}(G)+\mu _{_R}(G)={\text {n}}(G)\), where \(\mu _{_R}(G)\) denotes the unique response Roman domination number of G. We derive several consequences of this result, including the fact that the problem of finding \(\mu _{_R}(G)\) is NP-hard. We finally show the case of the lexicographic product graph in Sect. 6, where we obtain general lower and upper bounds of the 2-packing differential and the unique response Roman domination number. We also compute the exact value of both parameters for the lexicographic product of a path and any other graph.

2 Basic Results and Computational Complexity

In this section we present lower and upper bounds of the 2-packing differential of a graph. In some cases, we also characterize the graphs achieving such bounds. Moreover, these results will provide the computational complexity of the computation of the 2-packing differential.

We begin with the following theorem that will be a key result in the rest of the paper. The bounds presented here are in terms of the maximum and minimum degrees of the graph and the 2-packing number.

Theorem 1

If G is a graph with no isolated vertex, then the following statements hold.

  1. (i)

    \(\partial _{2p}(G)=\max _{S\in \wp (G)}\left\{ \sum _{v\in S}(\deg (v)-1)\right\} .\)

  2. (ii)

    If G is a k-regular graph, then \(\partial _{2p}(G)=(k-1)\rho (G).\)

  3. (iii)

    \( \rho (G)(\delta (G)-1)\le \partial _{2p}(G)\le \rho (G)({ \Delta }(G)-1).\)

  4. (iv)

    \(\partial _{2p}(G)=\rho (G)({ \Delta }(G)-1)\) if and only if there exists a \(\rho (G)\)-set S such that \(\deg (v)={ \Delta }(G)\) for every \(v\in S\).

  5. (v)

    If \(\partial _{2p}(G)=\rho (G)(\delta (G)-1)\), then every vertex v in every \(\rho (G)\)-set has degree \(\deg (v)=\delta (G)\).

Proof

Notice that for any \(S\in \wp (G)\), we have that \( \partial (S)=|N(S)|-|S|=\sum _{v\in S}(\deg (v)-1)\). Hence, \( \partial _{2p}(G) =\max _{S\in \wp (G)}\left\{ \partial (S)\right\} =\max _{S\in \wp (G)}\{|N(S)|-|S|\} =\max _{S\in \wp (G)} \{\sum _{v\in S}(\deg (v)-1)\}. \) Therefore, (i) follows. From (i) we derive (ii) and (iii).

We proceed to prove (iv). If there exists a \(\rho (G)\)-set S such that \(\deg (v)={ \Delta }(G)\) for every \(v\in S\), then \(\rho (G)({ \Delta }(G)-1)=\partial (S)\le \partial _{2p}(G)\). Hence, (iii) leads to \(\partial _{2p}(G)=\rho (G)({ \Delta }(G)-1)\). Conversely, if \(\partial _{2p}(G)=\rho (G)({ \Delta }(G)-1)\), then for any \(\partial _{2p}(G)\)-set D we have that \(\rho (G)({ \Delta }(G)-1)=\partial (D)=\sum _{v\in D}(\deg (v)-1)\le \sum _{v\in D}({ \Delta }(G)-1)\le |D|({ \Delta }(G)-1)\le \rho (G)({ \Delta }(G)-1)\), which implies that D is a \(\rho (G)\)-set and \(\deg (v)={ \Delta }(G)\) for every \(v\in D\).

Finally, we prove (v). Suppose on the contrary that there exists a \(\rho (G)\)-set \(S'\) and a vertex \(v\in S'\) such that \(\deg (v)> \delta (G)\). Then, \(\partial _{2p}(G)=\max _{S\in \wp (G)}\left\{ \sum _{v\in S}(\deg (v)-1)\right\} \ge \sum _{v\in S'}(\deg (v)-1)>\rho (G)(\delta (G)-1)\). Figure 2 shows an example of a graph G with \(\partial _{2p}(G)= \rho (G)(\delta (G)-1)\), the set of black-coloured vertices is the unique \(\rho (G)\)-set. \(\square \)

Fig. 2
figure 2

A graph G with \(\partial _{2p}(G)= \rho (G)(\delta (G)-1)\)

The first consequence of the preceding result is the determination of the complexity of the computation of the 2-packing differential. Given a graph G and a positive integer t, the 2-packing problem is to decide whether there exists a 2-packing S in G such that |S| is at least t. It is well known that the 2-packing problem is NP-complete. Hence, the optimization problem of finding \(\rho (G)\) is NP-hard. Furthermore, it was shown in [17] that the 2-packing remains NP-complete for regular bipartite graphs. Therefore, from Theorem 1(ii) we derive the following result.

Corollary 1

The problem of finding the 2-packing differential of a graph is NP-hard, even for regular bipartite graphs.

As a second consequence of Theorem 1 we can derive the exact value of the 2-packing differential in particular graph families. To this end, we need the following definitions.

A set \(S\subseteq V(G)\) of vertices is a dominating set if \(N(v)\cap S\ne \varnothing \) for every vertex \(v\in V(G){\setminus } S\). Let \({\mathcal {D}}(G)\) be the set of dominating sets of G. The domination number of G is defined to be,

$$\begin{aligned} \gamma (G)=\min \{|S|:\, S\in {\mathcal {D}}(G)\}. \end{aligned}$$

Observe that \(\gamma (G)\ge \rho (G)\) and \({\mathcal {D}}(G) \cap \wp (G)\ne \varnothing \) if and only if there exists a \(\gamma (G)\)-set which is a \(\rho (G)\)-set. A graph G with \({\mathcal {D}}(G) \cap \wp (G)\ne \varnothing \) is called an efficient closed domination graph and in such case \(\gamma (G)= \rho (G)\). Furthermore, Meir and Moon [21] showed that \(\gamma (T)= \rho (T)\) for every tree T. Even so, there are trees in which \({\mathcal {D}}(T) \cap \wp (T)= \varnothing \).

If G is a k-regular nonempty graph and there exists \(S\in {\mathcal {D}}(G)\cap \wp (G)\), then \({\text {n}}(G)=|S|+|N(S)|=|S|+|S|k=\rho (G)(1+k).\) Therefore, the following result is a direct consequence of Theorem 1(ii).

Corollary 2

Let k be a positive integer. If G is a k-regular efficient closed domination graph, then

$$\begin{aligned} \partial _{2p}(G)=\frac{(k-1){\text {n}}(G)}{k+1}. \end{aligned}$$

The next statement is a direct consequence of Theorem 1(i).

Corollary 3

For any graph G of diameter at most two, \(\partial _{2p}(G)={ \Delta }(G)-1\).

We can also involve the order \({\text {n}}(G)\) and the size \({\text {m}}(G)\) of the graph and we obtain the following upper bound of the 2-packing differential.

Theorem 2

For any graph G with no isolated vertex,

$$\begin{aligned} \partial _{2p}(G)\le \rho (G)(\delta (G)-1)+2{\text {m}}(G)-{\text {n}}(G)\delta (G). \end{aligned}$$

Furthermore, the equality holds if and only if there exists a \(\rho (G)\)-set S such that \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus } S\).

Proof

If \(S\subseteq V(G)\) is a \(\partial _{2p}(G)\)-set, then

$$\begin{aligned} 2{\text {m}}(G)&=\sum _{v\in S}\deg (v)+\sum _{v\not \in S}\deg (v)\\&=\partial _{2p}(G)+|S|+\sum _{v\not \in S}\deg (v)\\&\ge \partial _{2p}(G)+|S|+({\text {n}}(G)-|S|)\delta (G)\\&=\partial _{2p}(G)+{\text {n}}(G)\delta (G)+|S|(1-\delta (G))\\&\ge \partial _{2p}(G)+{\text {n}}(G)\delta (G)+\rho (G)(1-\delta (G)). \end{aligned}$$

Therefore, the upper bound follows.

From the previous procedure we deduce that if \(\partial _{2p}(G)= 2{\text {m}}(G)-{\text {n}}(G)\delta (G)+(\delta (G)-1)\rho (G)\), then \(|S|=\rho (G)\) and \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus }S\). Conversely, if S is a \(\rho (G)\)-set and \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus }S\), then the same procedure leads to \(2{\text {m}}(G)-{\text {n}}(G)\delta (G)+(\delta (G)-1)\rho (G)=\partial (S)\le \partial _{2p}(G)\), and by the upper bound we conclude that the equality holds. \(\square \)

Notice that for any k-regular graph, \(2{\text {m}}(G)={\text {n}}(G)\delta (G)={\text {n}}(G)k\), which implies that \(\partial _{2p}(G)=(k-1)\rho (G)=2{\text {m}}(G)-{\text {n}}(G)\delta (G)+(\delta (G)-1)\rho (G).\)

Fig. 3
figure 3

A graph G with \( \partial _{2p}(G)=\rho (G)(\delta (G)-1)+2{\text {m}}(G)-{\text {n}}(G)\delta (G).\) The set of black-coloured vertices forms a \(\partial _{2p}(G)\)-set

Figure 3 shows a graph G with \( \partial _{2p}(G)=\rho (G)(\delta (G)-1)+2{\text {m}}(G)-{\text {n}}(G)\delta (G).\) Observe that the set S of black-coloured vertices forms a \(\rho (G)\)-set with \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus } S\).

The bound presented in Theorem 2 has a special behaviour in efficient closed domination graphs, as we show in the following two results.

Theorem 3

If G is an efficient closed domination graph with no isolated vertex, then the following statements hold.

  1. (i)

    \(\partial _{2p}(G)\ge {\text {n}}(G)-2\rho (G).\)

  2. (ii)

    If there exists a \(\rho (G)\)-set S such that \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus }S\), then

    $$\begin{aligned} \partial _{2p}(G)= {\text {n}}(G)-2\rho (G). \end{aligned}$$

Proof

For any set \(D\in {\mathcal {D}}(G)\cap \wp (G)\),

$$\begin{aligned} \partial _{2p}(G)\ge \partial (D)= |N(D)|-|D|= |V(G){\setminus }D|-|D|={\text {n}}(G)-2\rho (G). \end{aligned}$$

Now, in order to prove (ii), let S be a \(\rho (G)\)-set such that \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus }S\). In the proof of Theorem 2 we have shown that S is a \(\partial _{2p}(G)\)-set. Notice that \(|N(S)|\le {\text {n}}(G)-|S|={\text {n}}(G)-\rho (G)\). Hence, \({\text {n}}(G)-2\rho (G)\le \partial _{2p}(G)=\partial (S)=|N(S)|-\rho (G)\le {\text {n}}(G)-2\rho (G)\). Therefore, \(\partial _{2p}(G)= {\text {n}}(G)-2\rho (G).\) \(\square \)

By Theorems 2 and 3 we deduce the following result.

Theorem 4

For any efficient closed domination graph G with \(\delta (G)\ge 1\),

$$\begin{aligned} \rho (G)\ge \left\lceil \frac{{\text {n}}(G)(\delta (G)+1)-2{\text {m}}(G)}{\delta (G)+1}\right\rceil . \end{aligned}$$

Furthermore, the equality holds if and only if there exists a \(\rho (G)\)-set S such that \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus } S\).

Proof

By combining the bounds given in Theorems 2 and 3, we deduce that \(2{\text {m}}(G)-{\text {n}}(G)\delta (G)+(\delta (G)-1)\rho (G) \ge \partial _{2p}(G)\ge {\text {n}}(G)-2\rho (G).\) Therefore, the bound follows.

Now, if \(\rho (G)= \frac{{\text {n}}(G)(\delta (G)+1)-2{\text {m}}(G)}{\delta (G)+1},\) then we have equalities in the above inequality chain, and by Theorem 2 we conclude that there exists a \(\rho (G)\)-set S such that \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus } S\).

Conversely, if there exists a \(\rho (G)\)-set S such that \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus } S\), then Theorems 2 and 3 lead to \(2{\text {m}}(G)-{\text {n}}(G) \delta (G)+(\delta (G)-1)\rho (G)= {\text {n}}(G)-2\rho (G),\) which implies that \(\rho (G)= \frac{{\text {n}}(G)(\delta (G)+1)-2{\text {m}}(G)}{\delta (G)+1}\). \(\square \)

We now present lower and upper bounds of the 2-packing differential in terms of some dominating-type parameters. We begin with the following definitions.

A set \(S\subseteq V(G)\) which is both dominating and independent is called an independent dominating set. Moreover, the independent domination number i(G) is

$$\begin{aligned} i(G)=\min \{|S|:\, S \text { is an independent dominating set }\}. \end{aligned}$$

On the other hand, let \(S\subseteq V(G)\) be a \(\partial _{2p}(G)\)-set, we define the partition of V(G) associated to S as \(V(G)=N[S]\cup S'\cup S''\), where \(S'=\{v\in V(G){\setminus }N[S]: N(v)\subseteq N(S)\}\) and \(S''=V(G){\setminus } (N[S]\cup S')\). Clearly \(N[S], S', S''\) are pairwise disjoint sets and moreover, \(V(G)=N[S]\cup S'\cup S''\). We call \(S'\) and \(S''\) the additional sets of the partition.

Lemma 1

Let G be a graph with no isolated vertex. Let \(S\subseteq V(G)\) be a \(\partial _{2p}(G)\)-set and let \(S',S''\) the additional sets of the partition associated to S. The following statements hold.

  1. (i)

    \(S'\) is an independent set.

  2. (ii)

    \(N(u)\cap (S'\cup S'')=\varnothing \) for every \(u\in S\).

  3. (iii)

    \(N(v)\cap S''=\varnothing \) for every \(v\in S'\).

  4. (iv)

    If |S| is maximum among all \(\partial _{2p}(G)\)-sets then, \(N(w)\cap N(S)\ne \varnothing \) for every \(w\in S''\).

Proof

If there exist vertices \(u,v\in S'\) such that \(u\in N(v)\), then \(u\in N(S)\), by definition of \(S'\). This a contradiction with \(u\in S'\). If \(x\in N(u)\cap (S'\cup S'')\) for a vertex \(u\in S\) then, \(x\in N[S]\cap (S'\cup S'')\), which is not possible by definition of the partition. In a similar way, if \(y\in N(v)\cap S''\) for a vertex \(v\in S'\) then, \(y\in N(S)\cap S''\), which is not possible by definition of \(S''\). Finally, in order to prove (iv), suppose that there exists a vertex \(w\in S''\) such that \(N(w)\subseteq S''\). Notice that \(S_w=S\cup \{w\}\) is a 2-packing of G and that \(\partial (S_w)\ge \partial (S)=\partial _{2p}(G)\), which is a contradiction because \(|S_w|>|S|\). Hence, for every \(w\in S''\), it follows that \(N(w)\cap N(S)\ne \varnothing \). \(\square \)

In the following theorem we present lower and upper bounds of the 2-packing differential, and we characterize graphs attaining the upper one.

Theorem 5

For any graph G with no isolated vertex,

$${ \Delta }(G)-1\le \partial _{2p}(G) \le \frac{({ \Delta }(G)-1)({\text {n}}(G)-i(G))}{{ \Delta }(G)}.$$

Furthermore, the following statements are equivalent.

  1. (i)

    \( \partial _{2p}(G)=\frac{({ \Delta }(G)-1)({\text {n}}(G)-i(G))}{{ \Delta }(G)}.\)

  2. (ii)

    There exist an i(G)-set D and a 2-packing \(S\subseteq D\) such that \(N(S)\cup D=V(G)\) and \(\deg (v)={ \Delta }(G)\) for every \(v\in S\).

Proof

The lower bound is obtained by definition of \(\partial _{2p}(G)\). Let S be a \(\partial _{2p}(G)\)-set and let \( S', S''\) be the additional sets of the partition associated to S. Let \(S_1\) be an independent dominating set of the subgraph induced by \(S''\) then, \(|S_1|\le |S''|\). Also, by using Lemma 1, the set \(S\cup S'\cup S_1\) is an independent dominating set of G. Hence,

$$\begin{aligned} |N(S)|={\text {n}}(G)-(|S|+|S'|+|S''|)\le {\text {n}}(G)-(|S|+|S'|+|S_1|)\le {\text {n}}(G)-i(G). \end{aligned}$$

Also, notice that \(|N(S)|\le { \Delta }(G)|S|\). Hence,

$$\begin{aligned} { \Delta }(G)\partial _{2p}(G)&= { \Delta }(G)(|N(S)|-|S|)\\&= { \Delta }(G)|N(S)|-{ \Delta }(G)|S|\\&\le { \Delta }(G)|N(S)|-|N(S)|\\&= ({ \Delta }(G)-1)|N(S)|\\&\le ({ \Delta }(G)-1)({\text {n}}(G)-i(G)). \end{aligned}$$

Hence, the upper bound follows.

Now, if (i) holds, then we have equalities in the previous inequality chains. From these, we deduce that \(S''=\varnothing \), \(D=S\cup S'\) is an i(G)-set, where S is a 2-packing and \(|N(S)|={ \Delta }(G)|S|=n-i(G)\), which implies that \(N(S)\cup D=V(G)\) and \(\deg (v)={ \Delta }(G)\) for every \(v\in S\). Therefore, (ii) follows.

Finally, if (ii) holds, i.e., there exist an i(G)-set D and a 2-packing \(W\subseteq D\) such that \(N(W)\cup D=V(G)\) and \(\deg (v)={ \Delta }(G)\) for every \(v\in W\), then \({ \Delta }(G)|W|=|N(W)|={\text {n}}(G)-i(G)\) and so

$$\begin{aligned} \partial _{2p}(G)\ge \partial (W)=|N(W)|-|W|={\text {n}}(G)-i(G)-\frac{{\text {n}}(G)-i(G)}{{ \Delta }(G)}. \end{aligned}$$

Therefore, from the upper bound we deduce that the equality holds. \(\square \)

Corollary 4

Let G be a graph with no isolated vertex. If \({ \Delta }(G)={\text {n}}(G)-i(G)\), then \(\partial _{2p}(G)={ \Delta }(G)-1\).

The converse of the result above does not hold. For instance, let G be a graph having a vertex \(v\in V(G)\) of maximum degree \(\deg (v)={ \Delta }(G)={\text {n}}(G)-3\) such that the two vertices in \(V(G){\setminus }N[v]\) are adjacent. In this case, \(i(G)=2\) and \(\partial _{2p}(G)={\text {n}}(G)-4={ \Delta }(G)-1\), while \({ \Delta }(G)<{\text {n}}(G)-i(G)\).

Next, we consider a particular case of the equivalence given in Theorem 5.

Theorem 6

For any graph G with no isolated vertex,

$$\begin{aligned} \partial _{2p}(G)\le {\text {n}}(G)-i(G)-1. \end{aligned}$$

Furthermore, the equality holds if and only if \({ \Delta }(G)={\text {n}}(G)-i(G)\).

Proof

From Theorem 5 we deduce that \({\text {n}}(G)-i(G)\ge { \Delta }(G)\) and \(\partial _{2p}(G)\le {\text {n}}(G)-i(G)-\frac{{\text {n}}(G)-i(G)}{{ \Delta }(G)}.\) Therefore, the upper bound follows.

Now, if \({ \Delta }(G)={\text {n}}(G)-i(G)\), then from the bounds given in Theorem 5 we deduce that \(\partial _{2p}(G)={\text {n}}(G)-i(G)-1\). Conversely, if \(\partial _{2p}(G)={\text {n}}(G)-i(G)-1\), then by Theorem 5 we deduce that \({ \Delta }(G)={\text {n}}(G)-i(G)\), which completes the proof. \(\square \)

We now characterize all trees attaining the lower bound presented in Theorem 5. To this end, we will use the following notation. Given a tree T, a vertex \(v\in V(T)\) with \(\deg (v)={ \Delta }(T)\) and any vertex \(v_i\in N(v)\), denote by \(T_i(v)\) the sub-tree of T rooted in \(v_i\) obtained from T by removing the edge \(\{v,v_i\}\). For each \(i\in \{1, \dots ,{ \Delta }(T)\}\) such that \(T_i(v)\) is non-trivial, denote by \(w_i\) the neighbour of \(v_i\) in \(T_i(v)\) with the largest degree.

Theorem 7

Let T be a non-trivial tree. Then, \(\partial _{2p}(T)={ \Delta }(T)-1\) if and only if, for each vertex \(v\in V(T)\) with \(\deg (v)={ \Delta }(T)\), the following conditions hold.

  1. (i)

    \({\text {ecc}}(v)\le 3\),

  2. (ii)

    \(\deg (v_i) +\sum _{j\ne i} (\deg (w_j) -1)\le { \Delta }(T)\), (\(i=1, \dots , { \Delta }(T)\) and \(j\ne i\) with \(T_j(v)\) non-trivial),

  3. (iii)

    \(\sum _{i} (\deg (w_i) -1)\le { \Delta }(T)-1\), (\(i\in \{1, \dots ,{ \Delta }(T)\}\) such that \(T_i(v)\) is non-trivial).

Proof

Assume that \(\partial _{2p}(T)={ \Delta }(T)-1\) and take \(v\in V(T)\) with \(\deg (v)={ \Delta }(T)\). The distance between two vertices \(x,y\in V(T)\) will be denoted by d(xy).

If there exists \(w\in V(T)\) such that \(d(v,w)=4\), then for \(u\in N(w)\) with \(d(v,u)=3\) the set \(\{v,u\}\) is a 2-packing and \(\deg (u)\ge 2\). Thus, \(\partial _{2p}(T)\ge \partial (\{v,u\})\ge (\deg (u)-1)+(\deg (v)-1)>\deg (v)-1={ \Delta }(T)-1\), which is a contradiction. Therefore, \({\text {ecc}}(v)\le 3\).

The vertex set \(X=\{v_i\}\cup \{w_j:j\ne i, T_j(v) \text { is non-trivial}\}\) is a 2-packing, so \(\partial (X)=(\deg (v_i)-1) +\sum _{j\ne i} (\deg (w_j) -1)\le \partial _{2p}(T)={ \Delta }(T)-1\), that gives (ii). Analogously, the set \(\{w_i:T_i(v) \text { is non-trivial}\}\) is a 2-packing and this gives (iii).

Now, let T be a non-trivial tree satisfying (i), (ii) and (iii), let S be a 2-packing of T and let v be a vertex with \(\deg (v)={ \Delta }(T)\). Since \(\partial _{2p}(T)\ge { \Delta }(T)-1\), we proceed to show that \(\partial _{2p}(T)\le { \Delta }(T)-1\). To this end, we differentiate the following three cases.

Case 1: \(v\in S\). If there exists \(u\in S{\setminus }\{v\}\), then \(d(u,v)\ge 3\) and condition (i) gives that \(\deg (u)=1\) (see Fig. 4). Therefore, \(\partial (S)=\sum _{w\in S}(\deg (w)-1)=\deg (v)-1={ \Delta }(T)-1\).

Case 2: \(v_i\in S\), for some \(v_i\in N(v)\). Notice that \(N[v]\cap S=\{v_i\}\) and, if there exists \(u\in S{\setminus }\{v_i\}\), then \(d(u,v_i)\ge 3\). In such a case, u belongs to a non-trivial rooted sub-tree \(T_j(v)\), \(j\ne i\) and \(d(u,v)\ge 2\) (see Fig. 4). Clearly, \(S\cap V(T_j(v))=\{u\}\) and from (ii) we obtain \(\partial (S)=\sum _{w\in S}(\deg (w)-1)\le (\deg (v_i)-1) +\sum _{j\ne i} (\deg (w_j) -1)\le { \Delta }(T)-1\).

Case 3: \(N[v]\cap S=\emptyset \). Then every vertex \(u\in S\) satisfies \(d(u,v)\ge 2\) and from (iii) we obtain \(\partial (S)=\sum _{w\in S}(\deg (w)-1)\le \sum _{i} (\deg (w_i) -1)\le { \Delta }(T)-1\).

\(\square \)

Fig. 4
figure 4

A tree with \(\partial _{2p}(T)={ \Delta }(T)-1 =4\). The set of black-coloured vertices is a \(\partial _{2p}(T)\)-set and the set of grey-coloured vertices is another one

Some upper bounds of the 2-packing differential can be also expressed in terms of the total domination number. A set \(S\subseteq V(G)\) is a total dominating set of a graph G without isolated vertices if every vertex \(v\in V(G)\) is adjacent to at least one vertex in S. Let \({\mathcal {D}}_t(G)\) be the set of total dominating sets of G. The total domination number of G is defined to be,

$$\begin{aligned} \gamma _t(G)=\min \{|S|:\, S\in {\mathcal {D}}_t(G)\}. \end{aligned}$$

By definition, \({\mathcal {D}}_t(G)\subseteq {\mathcal {D}}(G)\), so that \(\gamma (G)\le \gamma _t(G)\). Furthermore, \(\gamma _t(G)\le 2\gamma (G)\).

Lemma 2

Let G be a graph with no isolated vertex. Let S be a \(\partial _{2p}(G)\)-set such that |S| is maximum among all \(\partial _{2p}(G)\)-sets and let \(S',S''\) be the additional sets of the partition associated to S. The following statements hold.

  1. (i)

    \(\gamma _t(G)\le 2|S|+|S'|+|S''|\).

  2. (ii)

    If \(\gamma _t(G)= 2|S|+|S'|+|S''|\), then \(S'\cup S''=\varnothing .\)

Proof

By Lemma 1, we know that \(N(w)\cap N(S)\ne \varnothing \) for every \(w\in S''\). Now, we define \(W'\) as a set of minimum cardinality among the sets \(W\subseteq N(S)\) satisfying that \(N(x)\cap W\ne \varnothing \) for every \(x\in S\cup S'\cup S''\).

Notice that \(S \cup W'\) is a total dominating set of G, which implies that \(\gamma _t(G)\le |S| + |W'|\le 2|S|+|S'|+|S''|\).

In order to prove (ii) assume \(\gamma _t(G)= 2|S|+|S'|+|S''|\). In this case, \(|W'|=|S|+|S'|+|S''|\). Suppose that there exists \(x\in S'\cup S''\). Since there exists \(y\in N(x)\cap W'\cap N(S)\), the minimality of \(|W'|\) leads to \( |W'|< |S|+|S'|+ |S''|\), which is a contradiction. Therefore, \(S'\cup S''=\varnothing .\) \(\square \)

Theorem 8

For any graph G with no isolated vertex,

$$\begin{aligned} \partial _{2p}(G)\le {\text {n}}(G)-\gamma _t(G). \end{aligned}$$

Furthermore, the equality holds if and only if G is an efficient closed domination graph with \(\gamma _t(G)=2\gamma (G)\).

Proof

Let S be a \(\partial _{2p}(G)\)-set such that |S| is maximum among all \(\partial _{2p}(G)\)-sets and let \(S',S''\) be the additional sets of the partition associated to S. By Lemma 2, \(\gamma _t(G)\le 2|S|+|S'|+|S''|\). Hence,

$$\begin{aligned} \partial _{2p}(G)= |N(S)|-|S|={\text {n}}(G)-2|S|-|S'|-|S''|\le {\text {n}}(G)-\gamma _t(G). \end{aligned}$$

Therefore, the upper bound follows.

Now, if \({\mathcal {D}}(G)\cap \wp (G)\ne \varnothing \) and \(\gamma _t(G)=2\gamma (G)\), then from the upper bound above and the lower bound given in Theorem 3 we deduce that \(\partial _{2p}(G)={\text {n}}(G)-\gamma _t(G)\). Conversely, if \(\partial _{2p}(G)={\text {n}}(G)-\gamma _t(G)\), then we have equalities in the above inequality chain. In particular, we deduce that \(2|S|+|S'|+|S''|=\gamma _t(G)\), and Lemma 2 leads to \(S'\cup S''=\varnothing \). Hence, \(S\in {\mathcal {D}}(G)\cap \wp (G)\) and so, \(\gamma _t(G)=2|S|=2\gamma (G)\), which completes the proof. \(\square \)

Theorem 9

For any graph G with no isolated vertex,

$$\begin{aligned} \partial _{2p}(G)\le \frac{2{\text {m}}(G)+\rho (G)(\delta (G)-1)-\gamma _t(G)\delta (G)}{\delta (G)+1}. \end{aligned}$$

Furthermore, the equality holds if and only if \(\gamma _t(G)=2\gamma (G)\) and there exists a set \(S\in {\mathcal {D}}(G)\cap \wp (G)\) such that \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus }S\).

Proof

Let S be a \(\partial _{2p}(G)\)-set such that |S| is maximum among all \(\partial _{2p}(G)\)-sets, and let \(m'\) be the size of the subgraph of G induced by \(V(G){\setminus }S\). Notice that every vertex in N(S) has exactly one neighbour in S, which implies that

$$\begin{aligned} m'=\frac{1}{2}\left( \displaystyle \sum _{v\in N(S)}(\deg (v)-1)+\sum _{v\in V(G){\setminus }N[S]}\deg (v)\right) . \end{aligned}$$

Observe that Lemma 2 leads to \(\gamma _t(G)\le 2|S|+|V(G){\setminus } N[S]|\). Hence,

$$\begin{aligned} {\text {m}}(G)&=\sum _{v\in S}\deg (v)+m'=\left( \partial _{2p}(G)+|S|\right) +\frac{1}{2}\\&\quad \times \left( \displaystyle \sum _{v\in N(S)}(\deg (v)-1)+\sum _{v\in V(G){\setminus } N[S]}\deg (v)\right) ,\,\quad \text {by Theorem}\,1\mathrm{(i)}, \\&\ge \partial _{2p}(G)+|S| +\frac{1}{2}\left( |N(S)|(\delta (G)-1)+(\gamma _t(G)-2|S|)\delta (G)\right) \\&\ge \partial _{2p}(G)+\frac{1}{2}(|S|+(|S|-|N(S)|)+(|N(S)|-|S|)\delta (G)\\&\quad +\gamma _t(G)\delta (G)-|S|\delta (G))\\&= \partial _{2p}(G)+\frac{1}{2}\left( \partial _{2p}(G)(\delta (G)-1)-(\delta (G)-1)|S| + \gamma _t(G)\delta (G) \right) \\&\ge \partial _{2p}(G)+\frac{1}{2}\left( \partial _{2p}(G)(\delta (G)-1)-(\delta (G)-1)\rho (G) + \gamma _t(G)\delta (G) \right) . \end{aligned}$$

Therefore, the upper bound follows.

Now, if the bound is achieved, then from the previous procedure we deduce that \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus } S\), \(|S|=\rho (G)\) and \(\gamma _t(G)=2|S|+|V(G){\setminus } N[S]|={\text {n}}(G)-\partial _{2p}(G)\). Thus, by Theorem 8 we conclude that \({\mathcal {D}}(G)\cap \wp (G)\ne \varnothing \) and \(\gamma _t(G)=2\gamma (G)\). Conversely, if \(\gamma _t(G)=2\gamma (G)\) and there exists a set \(D\in {\mathcal {D}}(G)\cap \wp (G)\) such that \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus } D\), then the same procedure leads to

$$\begin{aligned} 2{\text {m}}(G)+\rho (G)(\delta (G)-1)-\gamma _t(G)\delta (G)=(\delta (G)+1)\partial (D)\le (\delta (G)+1)\partial _{2p}(G), \end{aligned}$$

and by the upper bound we conclude that the equality holds. \(\square \)

To conclude this section, we derive some bounds in terms of the order of G.

Theorem 10

The following statements hold for any graph G with no isolated vertex.

  1. (i)

    If \(k\in \{1,2,3\}\) and \({ \Delta }(G)={\text {n}}(G)-k\), then \(\partial _{2p}(G)= {\text {n}}(G)-k-1.\)

  2. (ii)

    If \({ \Delta }(G)\le {\text {n}}(G)-4\), then \(\partial _{2p}(G)\le {\text {n}}(G)-4\) and the equality holds if and only if G is an efficient closed domination graph with \(\gamma (G)=2\).

Proof

Assume \({ \Delta }(G)={\text {n}}(G)-k\). If \(k\in \{1,2\}\), then \(\rho (G)=1\) and so \(\partial _{2p}(G)={ \Delta }(G)-1={\text {n}}(G)-k-1\). Now, let S be a \(\partial _{2p}(G)\)-set. If \(k=3\) then either \(\rho (G)=1\), and we proceed as above, or \(|S|\ge 2\), which implies that \({\text {n}}(G)-4={ \Delta }(G)-1\le \partial _{2p}(G)=\partial (S)= |N(S)|-|S|\le {\text {n}}(G)-2|S|\le {\text {n}}(G)-4.\) Therefore, (i) follows.

From now on, assume \({ \Delta }(G)\le {\text {n}}(G)-4\). Let S be a \(\partial _{2p}(G)\)-set. If \(|S|=1\), then \(\partial _{2p}(G)= { \Delta }(G)-1\le {\text {n}}(G)-5.\) Now, if \(|S|\ge 2\), then \(\partial _{2p}(G)=\partial (S)= |N(S)|-|S|\le {\text {n}}(G)-2|S|\le {\text {n}}(G)-4.\) Therefore, the equality \(\partial _{2p}(G)=\partial (S)={\text {n}}(G)-4\) holds if and only if \(S\in {\mathcal {D}}(G)\cap \wp (G)\) and \(|S|=2\). \(\square \)

3 Nordhaus–Gaddum Type Relations

Nordhaus and Gaddum [22] in 1956 proposed lower and upper bounds, in terms of the order of the graph, on the sum and the product of the chromatic number of a graph and its complement. Since then, several inequalities of a similar type have been proposed for other graph parameters. In this section we derive some Nordhaus–Gaddum type relations for the 2-packing differential.

A set \(S\subseteq V(G)\) is an open packing if \(N(u)\cap N(v)=\varnothing \) for every pair of different vertices \(u,v\in S\). The open packing number of G, denoted by \(\rho _o(G)\), is the maximum cardinality among all open packings of G. A graph G is an efficient open domination graph if there exists an open packing which is a dominating set. Recent results about this topic can be found in [15, 18].

Notice that the complement of G, denoted by \(G^c\), is an efficient closed domination graph with \(\gamma (G^c)=2\) if and only if G is an efficient open domination graph with \(\rho _o(G)=2\).

By Theorem 10 and the lower bound given in Theorem 5, we deduce the following result.

Theorem 11

Given a graph G, the following statements hold.

  • If \({ \Delta }(G)= {\text {n}}(G)-2\) and \(\delta (G)=1\), then \( \partial _{2p}(G)+\partial _{2p}(G^c)=2{\text {n}}(G)-6\) and \( \partial _{2p}(G)\cdot \partial _{2p}(G^c)=({\text {n}}(G)-3)^2\).

  • If \({ \Delta }(G)= {\text {n}}(G)-2\) and \(\delta (G)=2\), then \( \partial _{2p}(G)+\partial _{2p}(G^c)=2{\text {n}}(G)-7\) and \(\partial _{2p}(G)\cdot \partial _{2p}(G^c)=({\text {n}}(G)-3)({\text {n}}(G)-4)\).

  • If \({ \Delta }(G)= {\text {n}}(G)-3\) and \(\delta (G)=1\), then \( \partial _{2p}(G)+\partial _{2p}(G^c)=2{\text {n}}(G)-7\) and \( \partial _{2p}(G)\cdot \partial _{2p}(G^c)=({\text {n}}(G)-3)({\text {n}}(G)-4)\).

  • If \({ \Delta }(G)= {\text {n}}(G)-3\) and \(\delta (G)=2\), then \( \partial _{2p}(G)+\partial _{2p}(G^c)=2{\text {n}}(G)-8 \) and \( \partial _{2p}(G)\cdot \partial _{2p}(G^c)=({\text {n}}(G)-4)^2\).

  • If \({ \Delta }(G)= {\text {n}}(G)-2\) and \(\delta (G)\ge 3\), then

    $$\begin{aligned}&2{\text {n}}(G)-\delta (G)-5\le \partial _{2p}(G)+\partial _{2p}(G^c)\le 2{\text {n}}(G)-7, \\&\quad ({\text {n}}(G)-3)({\text {n}}(G)-\delta (G)-2)\le \partial _{2p}(G)\cdot \partial _{2p}(G^c)\le ({\text {n}}(G)-3)({\text {n}}(G)-4). \end{aligned}$$
  • If \({ \Delta }(G)= {\text {n}}(G)-2\) and \(\delta (G)\ge 3\), then \( \partial _{2p}(G)+\partial _{2p}(G^c)= 2{\text {n}}(G)-7\) if and only if \(\partial _{2p}(G)\cdot \partial _{2p}(G^c)= ({\text {n}}(G)-3)({\text {n}}(G)-4)\) if and only if G is an efficient open domination graph with \(\rho _o(G)=2\).

  • If \({ \Delta }(G)= {\text {n}}(G)-3\) and \(\delta (G)\ge 3\), then

    $$\begin{aligned}&2{\text {n}}(G)-\delta (G)-6\le \partial _{2p}(G)+\partial _{2p}(G^c)\le 2{\text {n}}(G)-8, \\&\quad ({\text {n}}(G)-4)({\text {n}}(G)-\delta (G)-2)\le \partial _{2p}(G)\cdot \partial _{2p}(G^c)\le ({\text {n}}(G)-4)^2. \end{aligned}$$
  • If \({ \Delta }(G)= {\text {n}}(G)-3\) and \(\delta (G)\ge 3\), then \(\partial _{2p}(G)+\partial _{2p}(G^c)= 2{\text {n}}(G)-8 \) if and only if \(\partial _{2p}(G)\cdot \partial _{2p}(G^c)= ({\text {n}}(G)-4)^2\) if and only if G is an efficient open domination graph with \(\rho _o(G)=2\).

  • If \({ \Delta }(G)\le {\text {n}}(G)-4\) and \(\delta (G)=1\), then

    $$\begin{aligned}&{\text {n}}(G)+{ \Delta }(G)-4\le \partial _{2p}(G)+\partial _{2p}(G^c)\le 2{\text {n}}(G)-7, \\&\quad ({ \Delta }(G)-1)({\text {n}}(G)-3)\le \partial _{2p}(G)\cdot \partial _{2p}(G^c)\le ({\text {n}}(G)-3)({\text {n}}(G)-4). \end{aligned}$$
  • If \({ \Delta }(G)\le {\text {n}}(G)-4\) and \(\delta (G)=1\), then \( \partial _{2p}(G)+\partial _{2p}(G^c)= 2{\text {n}}(G)-7 \) if and only if \(\partial _{2p}(G)\cdot \partial _{2p}(G^c)=({\text {n}}(G)-4)({\text {n}}(G)-3)\) if and only if G is an efficient closed domination graph with \(\gamma (G)=2\).

  • If \({ \Delta }(G)\le {\text {n}}(G)-4\) and \(\delta (G)=2\), then

    $$\begin{aligned}&{\text {n}}(G)+{ \Delta }(G)-5\le \partial _{2p}(G)+\partial _{2p}(G^c)\le 2{\text {n}}(G)-8, \\&\quad ({ \Delta }(G)-1)({\text {n}}(G)-4)\le \partial _{2p}(G)\cdot \partial _{2p}(G^c)\le ({\text {n}}(G)-4)^2. \end{aligned}$$
  • If \({ \Delta }(G)\le {\text {n}}(G)-4\) and \(\delta (G)= 2\), then \(\partial _{2p}(G)+\partial _{2p}(G^c)= 2{\text {n}}(G)-8 \) if and only if \(\partial _{2p}(G)\cdot \partial _{2p}(G^c)=({\text {n}}(G)-4)^2\) if and only if G is an efficient closed domination graph with \(\gamma (G)=2\).

  • If \({ \Delta }(G)\le {\text {n}}(G)-4\) and \(\delta (G)\ge 3\), then

    $$\begin{aligned}&{\text {n}}(G)+{ \Delta }(G)-\delta (G)-3\le \partial _{2p}(G)+\partial _{2p}(G^c)\le 2{\text {n}}(G)-8. \\&\quad ({ \Delta }(G)-1)({\text {n}}(G)-\delta (G)-2)\le \partial _{2p}(G)\cdot \partial _{2p}(G^c)\le ({\text {n}}(G)-4)^2. \end{aligned}$$
  • If \({ \Delta }(G)\le {\text {n}}(G)-4\) and \(\delta (G)\ge 3\), then \(\partial _{2p}(G)+\partial _{2p}(G^c)= 2{\text {n}}(G)-8 \) if and only if \(\partial _{2p}(G)\cdot \partial _{2p}(G^c)= ({\text {n}}(G)-4)^2\) if and only if G is simultaneously an efficient closed domination and an efficient open domination graph with \(\rho _o(G)=\gamma (G)=2\).

Proof

We will show the proofs of two typical items and the remaining ones have similar proofs.

Assume that \({ \Delta }(G)= {\text {n}}(G)-2\) and \(\delta (G)=1\) then, \({ \Delta }(G^c)= {\text {n}}(G^c)-1-\delta (G)={\text {n}}(G)-2\) and Theorem 10 gives \(\partial _{2p}(G)={\text {n}}(G)-3\), \(\partial _{2p}(G^c)={\text {n}}(G^c)-3={\text {n}}(G)-3\). Therefore, \( \partial _{2p}(G)+\partial _{2p}(G^c)=2{\text {n}}(G)-6\) and \( \partial _{2p}(G)\cdot \partial _{2p}(G^c)=({\text {n}}(G)-3)^2\).

Assume now that \({ \Delta }(G)= {\text {n}}(G)-2\) and \(\delta (G)\ge 3\) then, we know that \({ \Delta }(G^c)= {\text {n}}(G^c)-1-\delta (G)={\text {n}}(G)-1-\delta (G)\le {\text {n}}(G)-4\). Theorem 5 gives \({ \Delta }(G)-1+{ \Delta }(G^c)-1=2{\text {n}}(G)-\delta (G)-5\le \partial _{2p}(G)+\partial _{2p}(G^c)\) and moreover, \(({ \Delta }(G)-1)\cdot ({ \Delta }(G^c)-1)=({\text {n}}(G)-3)({\text {n}}(G)-\delta (G)-2)\le \partial _{2p}(G)\cdot \partial _{2p}(G^c)\). On the other hand, by Theorem 10, we obtain that \(\partial _{2p}(G)={\text {n}}(G)-3\) and \(\partial _{2p}(G^c)\le {\text {n}}(G^c)-4={\text {n}}(G)-4\). This gives the desired upper bounds \(\partial _{2p}(G)+\partial _{2p}(G^c)\le 2{\text {n}}(G)-7\) and \(\partial _{2p}(G)\cdot \partial _{2p}(G^c)\le ({\text {n}}(G)-3)({\text {n}}(G)-4)\).

Finally, if \({ \Delta }(G)= {\text {n}}(G)-2\) and \(\delta (G)\ge 3\), then \( \partial _{2p}(G)+\partial _{2p}(G^c)= 2{\text {n}}(G)-7\) if and only if \(\partial _{2p}(G^c)={\text {n}}(G)-4\) if and only if \(G^c\) is an efficient closed domination graph with \(\gamma (G^c)=2\) if and only if G is an efficient open domination graph with \(\rho _o(G)=2\). Moreover, \(\partial _{2p}(G)\cdot \partial _{2p}(G^c)= ({\text {n}}(G)-3)({\text {n}}(G)-4)\) if and only if \(\partial _{2p}(G^c)={\text {n}}(G)-4\), and this completes the proof of this item. \(\square \)

4 Perfect Differential Versus 2-Packing Differential

In this section we show some relationships between the 2-packing differential and the perfect differential of a graph. Given a set \(S\subseteq V(G)\) and a vertex \(v\in S\), the external private neighbourhood \({\text {epn}}(v,S)\) of v with respect to S is defined to be \({\text {epn}}(v,S)=\{u\in V(G){\setminus } S: \, N(u)\cap S=\{v\}\}\). The perfect neighbourhood of a set \(S\subseteq V(G)\) is defined to be \(N_p(S)=\{v\in V(G){\setminus } S:\, |N(v)\cap S|=1\}\). We define the perfect differential of a set \(S\subseteq V(G)\) as \(\partial _p(S)=|N_p(S)|-|S|\). The perfect differential of a graph, introduced by Cabrera Martínez and Rodríguez-Velázquez in [5], is defined as

$$\begin{aligned} \partial _p(G)=\max \{\partial _p(S):\, S\subseteq V(G)\}. \end{aligned}$$

Now, \(S\subseteq V(G)\) is a perfect dominating set of G if every vertex in \(V(G){\setminus } S\) is adjacent to exactly one vertex in S. Let \({\mathcal {D}}^p(G)\) be the set of perfect dominating sets of G, note that the hole vertex set V(G) is a perfect dominating set so, \({\mathcal {D}}^p(G)\ne \varnothing \). The perfect domination number of G is defined to be,

$$\begin{aligned} \gamma ^p(G)=\min \{|S|:\, S\in {\mathcal {D}}^p(G)\}. \end{aligned}$$

Notice that \({\mathcal {D}}^p(G)\subseteq {\mathcal {D}}(G)\), which implies that \(\gamma (G)\le \gamma ^{p}(G)\).

Theorem 12

[5] Given a nontrivial graph G, the following inequality chain holds.

$$\begin{aligned} {\text {n}}(G)-2\gamma ^p(G) \le \partial _p(G)\le \frac{{\text {n}}(G)({ \Delta }(G)-1)}{{ \Delta }(G)+1}. \end{aligned}$$

Furthermore, \(\partial _p(G)=\frac{{\text {n}}(G)({ \Delta }(G)-1)}{{ \Delta }(G)+1}\) if and only if \(\gamma ^p(G)=\frac{{\text {n}}(G)}{{ \Delta }(G)+1}\).

The following theorems show some relationships between the 2-packing differential and the perfect differential.

Theorem 13

For any nontrivial graph G, the following statements hold.

  1. (i)

    \(\partial _{2p}(G)\le \partial _p(G).\)

  2. (ii)

    \(\partial _{2p}(G)\le \frac{{\text {n}}(G)({ \Delta }(G)-1)}{{ \Delta }(G)+1}.\)

  3. (iii)

    \(\partial _{2p}(G)=\frac{{\text {n}}(G)({ \Delta }(G)-1)}{{ \Delta }(G)+1}\) if and only if \(\gamma ^p(G)=\frac{{\text {n}}(G)}{{ \Delta }(G)+1}\).

Proof

Let S be a \(\partial _{2p}(G)\)-set. Since S is a 2-packing, \(N(S)=N_p(S)\). Hence, \(\partial _{2p}(G)=\partial (S)=|N(S)|-|S|=|N_p(S)|-|S|=\partial _p(S)\le \partial _p(G)\). Therefore, (i) follows.

Notice that (ii) is a direct consequence of (i) and Theorem 12. We proceed to prove (iii). It is known that \(\gamma ^p(G)\ge \gamma (G)\ge \frac{{\text {n}}(G)}{{ \Delta }(G)+1}\) and \(\gamma (G)=\frac{{\text {n}}(G)}{{ \Delta }(G)+1}\) if and only if there exists a \(\gamma (G)\)-set S which is a \(\rho (G)\)-set and every vertex in S has degree \({ \Delta }(G)\), for instance, see [12]. Hence, by Theorem 1, if \(\gamma ^p(G)=\frac{{\text {n}}(G)}{{ \Delta }(G)+1}\), then

$$\begin{aligned} \partial _{2p}(G)=\displaystyle \max _{S\in \wp (G)}\left\{ \sum _{v\in S}(\deg (v)-1)\right\} =\rho (G)({ \Delta }(G)-1)=\frac{{\text {n}}(G)({ \Delta }(G)-1)}{{ \Delta }(G)+1}. \end{aligned}$$

Conversely, if \(\partial _{2p}(G)=\frac{{\text {n}}(G)({ \Delta }(G)-1)}{{ \Delta }(G)+1}\), then by (i) and Theorem 12 we have that \(\partial _p(G)=\frac{{\text {n}}(G)({ \Delta }(G)-1)}{{ \Delta }(G)+1}\). Therefore, Theorem 12 leads to \(\gamma ^p(G)=\frac{{\text {n}}(G)}{{ \Delta }(G)+1}\).

\(\square \)

The difference \(\partial _p(G)-\partial _{2p}(G)\) can be as large as desired. Consider the graph obtained by attaching to each vertex of a 5-cycle a set of k independent vertices. The resulting graph G has order \({\text {n}}(G)=5k+5\) and satisfies \(\partial _p(G)=5k-5\) (the set of vertices of the 5-cycle is a \(\partial _p(G)\)-set) and \(\partial _{2p}(G)=k+1\) (each single vertex in the 5-cycle is a \(\partial _{2p}(G)\)-set). Moreover, the set of vertices of the 5-cycle is a minimum perfect dominating set, so \(\gamma ^p(G)=5\) and \(\partial _p(G)={\text {n}}(G)-2\gamma ^p(G)\) takes the smallest possible value.

Regarding the case in which both parameters agree, we have the following result.

Theorem 14

For any graph G, at least one of the following statements hold.

  1. (i)

    \(\partial _{2p}(G)=\partial _p(G)\).

  2. (ii)

    \(\partial _{2p}(G)\ge \frac{1}{2}({ \Delta }(G)\partial _p(G)+2 -({\text {n}}(G)-2)({ \Delta }(G)-2))\).

Proof

By Theorem 13 we have that \(\partial _{2p}(G)\le \partial _p(G)\). From now on, we assume that \(\partial _{2p}(G)<\partial _p(G)\). Let S be a \(\partial _p(G)\)-set. Since \(\partial _p(G)=|N_p(S)|-|S|\) and \(|N_p(S)|+|S|\le {\text {n}}(G)\), it follows that \(|S|\le ({\text {n}}(G)-\partial _p(G))/2\). Let \(S_1\subseteq S\) be maximal 2-packing and \(S_2=S{\setminus } S_1\). Observe that S is not a 2-packing, as \(\partial _{2p}(G)<\partial _p(G)=\partial (S)\). Hence, \(N[S_2]\cap N(S_1)\ne \varnothing \), which implies that

$$\begin{aligned} |N_p(S)|= |N(S_1){\setminus } N[S_2]|+\sum _{x\in S_2}|{\text {epn}}(x,S)|\le (|N(S_1)|-1)+|S_2|({ \Delta }(G)-1). \end{aligned}$$

Thus,

$$\begin{aligned} \partial _{p}(G)&= |N_p(S)|-|S|\\&\le (|N(S_1)|-1)+|S_2|({ \Delta }(G)-1)-|S|\\&= \partial (S_1)+|S_1|-1+|S_2|({ \Delta }(G)-1)-|S|\\&= \partial (S_1)-1+|S_2|({ \Delta }(G)-2)\\&\le \partial _{2p}(G)-1+(|S|-1)({ \Delta }(G)-2)\\&\le \partial _{2p}(G)-1+\left( \frac{{\text {n}}(G)-\partial _p(G)}{2}-1\right) ({ \Delta }(G)-2). \end{aligned}$$

Therefore, the result follows. \(\square \)

The bound above is tight. For instance, for any integer \(t\ge 2\), the double star \(S_{t,t}\) satisfies that \(\partial _p(S_{t,t})=2t-2\), \( \partial _{2p}(S_{t,t})=t\), \({\text {n}}(S_{t,t})=2t+2\) and \({ \Delta }(S_{t,t})=t+1\). Hence, the bound is achieved by any double star \( S_{t,t}\) with \(t\ge 2\).

5 Unique Response Roman Domination Versus 2-Packing Differential

In this section we establish a Gallai-type theorem which states the relationship between the 2-packing differential and the unique response Roman domination number.

Cockayne, Hedetniemi and Hedetniemi [7] defined a Roman dominating function on a graph G to be a function \(f: V(G)\longrightarrow \{0,1,2\}\) satisfying the condition that every vertex u for which \(f(u)=0\) is adjacent to at least one vertex v for which \(f(v)=2\). For \(X\subseteq V(G)\) we define the weight of X as \(f(X)= \sum _{v\in X}f(v)\). The weight of f is defined to be

$$\begin{aligned} \omega (f)=f(V(G)). \end{aligned}$$

The unique response version of Roman domination was introduced by Rubalcaba and Slater in [25] and studied further in [9, 14, 31]. A function \(f: V(G)\longrightarrow \{0,1,2\}\) with the sets \(V_0, V_1, V_2\), where \(V_i = \{v \in V(G): \, f (v) = i\}\) for \(i \in \{0, 1, 2\}\), is a unique response Roman dominating function if \(x \in V_0\) implies \(|N(x) \cap V_2| = 1\) and \(x \in V_1 \cup V_2\) implies that \(N(x) \cap V_2=\varnothing \). The unique response Roman domination number of G, denoted by \(\mu _{_R}(G)\), is the minimum weight among all unique response Roman dominating functions on G.

Theorem 15

(Gallai-type theorem) For any graph G,

$$\begin{aligned} \mu _{_R}(G)+\partial _{2p}(G)={\text {n}}(G). \end{aligned}$$

Proof

It was shown in [9] that \(\mu _{_R}(G)=\min _{S\subseteq \wp (G)}\{2|S|+|V(G){\setminus } (N(S)\cup S)|\}\). Hence, the result is deduced as follows.

$$\begin{aligned} \mu _{_R}(G)&=\min _{S\subseteq \wp (G)}\{2|S|+|V(G){\setminus } (N(S)\cup S)|\}\\&= \min _{S\subseteq \wp (G)}\{2|S|+{\text {n}}(G)-(|N(S)|+|S|)|\}\\&= \min _{S\subseteq \wp (G)}\{{\text {n}}(G)-\partial (S)\}\\&= {\text {n}}(G)- \max _{S\subseteq \wp (G)}\{\partial (S)\}\\&= {\text {n}}(G)-\partial _{2p}(G). \end{aligned}$$

\(\square \)

Theorem 15 allows us to derive results on the unique response Roman domination number from results on the 2-packing differential and vice versa. For instance, from Corollary 1 and Theorem 15 we deduce the following result.

Theorem 16

The problem of finding the unique response Roman domination number of a graph is NP-hard, even for regular bipartite graphs.

Theorem 15 suggests the challenge of obtaining new results on the unique response Roman domination number from the approach of 2-packing differentials. As an example, the following table summarizes some of those results obtained here. The first column describes the result that combined with Theorem 15 leads to the result on the second column.

From

Result for graphs with no isolated vertex

Theorem 1(iii)

\(\mu _{_R}(G)\ge {\text {n}}(G)- \rho (G)({ \Delta }(G)-1)\).

The equality holds if and only if there exists a \(\rho (G)\)-set S

such that \(\deg (v)={ \Delta }(G)\) for every \(v\in S\).

Theorem 2

\( \mu _{_R}(G)\ge {\text {n}}(G)(\delta (G)+1)-\rho (G)(\delta (G)-1)-2{\text {m}}(G)\).

The equality holds if and only if there exists a \(\rho (G)\)-set S

such that \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus } S\).

Theorem 3

If G is an efficient closed domination graph, then

\(\mu _{_R}(G)\le 2\rho (G).\) In particular, if there exists a \(\rho (G)\)-set S

such that \(\deg (v)=\delta (G)\) for every \(v\in V(G){\setminus } S\), then

\(\mu _{_R}(G)= 2\rho (G).\)

Theorem 5

\( \mu _{_R}(G)\ge \frac{{\text {n}}(G)+({ \Delta }(G)-1)i(G)}{{ \Delta }(G)}.\)

Theorem 6

\( \mu _{_R}(G)\ge i(G)+1.\)

The equality holds if and only if \({ \Delta }(G)={\text {n}}(G)-i(G)\).

Theorem 8

\( \mu _{_R}(G)\ge \gamma _t(G).\)

The equality holds if and only if G is an efficient closed

domination graph and \(\gamma _t(G)=2\gamma (G)\).

Theorem 9

\( \mu _{_R}(G)\ge \frac{{\text {n}}(G)(\delta (G)+1)-2{\text {m}}(G)-\rho (G)(\delta (G)-1)+\gamma _t(G)\delta (G)}{\delta (G)+1}.\)

The equality holds if and only if there exists a set

\(S\in {\mathcal {D}}(G)\cap \wp (G)\) such that \(\deg (v)=\delta (G)\) for every

\(v\in V(G){\setminus } S\).

Theorem 13(i)

\(\mu _{_R}(G)\ge {\text {n}}(G)-\partial _p(G)\).

Theorem 13(ii)

\(\mu _{_R}(G)=\frac{2{\text {n}}(G)}{{ \Delta }(G)+1}\) if and only if \(\gamma ^p(G)=\frac{{\text {n}}(G)}{{ \Delta }(G)+1}\).

6 The Case of Lexicographic Product Graphs

In this final section we present the behaviour of the 2-packing differential under the lexicographic product operation. We first recall the following definition. Let G and H be two graphs. The lexicographic product of G and H is the graph \(G \circ H\) whose vertex set is \(V(G \circ H)= V(G) \times V(H )\) and \((u,v)(x,y) \in E(G \circ H)\) if and only if \(ux \in E(G)\) or \(u=x\) and \(vy \in E(H)\). Notice that for any \(u\in V(G)\) the subgraph of \(G\circ H\) induced by \(\{u\}\times V(H)\) is isomorphic to H. For simplicity, we will denote this subgraph by \(H_u\).

For a basic introduction to the lexicographic product of two graphs we suggest the books [11, 13]. One of the main problems in the study of \(G\circ H\) consists of finding exact values or tight bounds of specific parameters of these graphs and express them in terms of known invariants of G and H. In particular, we cite the following works on domination theory of lexicographic product graphs: (total) domination [20, 23, 30], Roman domination [27], weak Roman domination [29], rainbow domination [28], super domination [8], doubly connected domination [1], secure domination [16], double domination [3] and total Roman domination [4, 6].

The following claim, which states the distance formula in the lexicographic product of two graphs, is one of our main tools.

Remark 1

[11] For any connected graph G of order \({\text {n}}(G)\ge 2\) and any graph H, the following statements hold.

  1. (i)

    \(d_{G\circ H}((g,h),(g',h')) = d_{G}(g,g')\) for \(g\ne g'\).

  2. (ii)

    \(d_{G\circ H}((g,h),(g,h')) = \min \{2,d_H(h,h')\}\) for \(g= g'\).

Given a set \(W\subseteq V(G)\times V(H)\), the projection of W on V(G) will be denoted by \(P_G(W)\). The following corollary is a direct consequence of the previous remark.

Corollary 5

Let G be a connected graph of order \({\text {n}}(G)\ge 2\) and let H be a graph. A set \(W\subseteq V(G)\times V(H)\) is a 2-packing of \(G\circ H\) if and only if \(P_G(W)\) is a 2-packing of G and \(|W|=|P_G(W)|\).

In the following result we show general lower and upper bounds for the 2-packing differential of a lexicographic product graph, in terms of some parameters of both factors.

We define the following parameter.

$$\begin{aligned} \rho '(G)=\max \{|S|: \, S \text { is a } \partial _{2p}(G)\text {-set} \}. \end{aligned}$$

Theorem 17

For any connected graph G of order \({\text {n}}(G)\ge 2\) and any graph H,

$$\begin{aligned}&{\text {n}}(H)\partial _{2p}(G)+\rho '(G)({\text {n}}(H)+{ \Delta }(H)-1)\le \partial _{2p}(G\circ H)\le {\text {n}}(H)\partial _{2p}(G)\\&\quad +\rho (G)({\text {n}}(H)+{ \Delta }(H)-1). \end{aligned}$$

Furthermore,

$$\begin{aligned}&{\text {n}}(H)\mu _{_R}(G)-\rho (G)({\text {n}}(H)+{ \Delta }(H)-1)\le \mu _{_R}(G\circ H)\le {\text {n}}(H)\mu _{_R}(G)\\&\quad -\rho '(G)({\text {n}}(H)+{ \Delta }(H)-1). \end{aligned}$$

Proof

Let \(W\subseteq V(G)\times V(H)\) be a \(\partial _{2p}(G\circ H)\)-set and \(U=P_G(W)\). By Corollary 5, we learned that U is a 2-packing of G. Hence,

$$\begin{aligned} \partial _{2p}(G\circ H)&= |N(W)|-|W|\\&=\sum _{(g,h)\in W}|N(g)|{\text {n}}(H)+\sum _{(g,h)\in W}\deg (h)-|W|\\&\le |N(U)|{\text {n}}(H)+|U|{ \Delta }(H)-|U|\\&= \partial (U){\text {n}}(H)+|U|({\text {n}}(H)+{ \Delta }(H)-1)\\&\le \partial _{2p}(G){\text {n}}(H)+\rho (G)({\text {n}}(H)+{ \Delta }(H)-1)). \end{aligned}$$

Now, for any \(\partial _{2p}(G)\)-set S with \(|S|=\rho '(G)\) and any \(v\in V(H)\) with \(\deg (v)={ \Delta }(H)\), the set \(S\times \{v\}\) is a 2-packing of \(G\circ H\), and so

$$\begin{aligned} \partial _{2p}(G\circ H)&\ge \partial (S\times \{v\})\\&=\sum _{u\in S}(|N(u)|{\text {n}}(H)+{ \Delta }(H))-\rho '(G)\\&= |N(S)|{\text {n}}(H)+{ \Delta }(H)\rho '(G)-\rho '(G)\\&= \partial (S){\text {n}}(H)+\rho '(G)({\text {n}}(H)+{ \Delta }(H)-1)\\&=\partial _{2p}(G){\text {n}}(H)+\rho '(G)({\text {n}}(H)+{ \Delta }(H)-1). \end{aligned}$$

By Theorem 15 we complete the proof. \(\square \)

If G is a regular graph, then \(\rho (G)=\rho '(G)\). Hence, from Theorem 17 we derive the following result.

Corollary 6

The following statements hold for any connected regular graph G of order \({\text {n}}(G)\ge 2\) and any graph H.

  • \(\partial _{2p}(G\circ H)= {\text {n}}(H)\partial _{2p}(G)+\rho (G)({\text {n}}(H)+{ \Delta }(H)-1).\)

  • \(\mu _{_R}(G\circ H)= {\text {n}}(H)\mu _{_R}(G)-\rho (G)({\text {n}}(H)+{ \Delta }(H)-1).\)

If G is an efficient closed domination graph with \(\partial _{2p}(G)= {\text {n}}(G)-2\rho (G)\), then \(\rho (G)=\rho '(G)\). Therefore, Theorem 17 leads to the following result.

Corollary 7

If G is a connected efficient closed domination graph with \({\text {n}}(G)\ge 2\) and \(\partial _{2p}(G)= {\text {n}}(G)-2\rho (G)\), then the following statements hold for any graph H,

  • \( \partial _{2p}(G\circ H)= {\text {n}}(H)\partial _{2p}(G)+\rho (G)({\text {n}}(H)+{ \Delta }(H)-1).\)

  • \(\mu _{_R}(G\circ H)= {\text {n}}(H)\mu _{_R}(G)-\rho (G)({\text {n}}(H)+{ \Delta }(H)-1).\)

We finish with the computation of the exact values of the 2-packing differential and the unique response Roman domination number of the lexicographic product of a path and any other graph.

Theorem 18

Let \(r\ge 2\) be an integer. If H is a nonempty graph, then

$$\begin{aligned} \partial _{2p}(P_r\circ H)=\displaystyle \left\{ \begin{array}{ll} \frac{r}{3}\left( 2{\text {n}}(H)+{ \Delta }(H)-1\right) , &{} r\equiv 0 \pmod 3,\\ \frac{2}{3}(r-1){\text {n}}(H)+\frac{r+2}{3}({ \Delta }(H)-1), &{} r\equiv 1 \pmod 3,\\ \frac{2r-1}{3} {\text {n}}(H)+\frac{r+1}{3}({ \Delta }(H)-1), &{} r\equiv 2 \pmod 3. \end{array}\right. \end{aligned}$$

Furthermore,

$$\begin{aligned} \mu _{_R}(P_r\circ H)=\displaystyle \left\{ \begin{array}{ll} \frac{r}{3}\left( {\text {n}}(H)-{ \Delta }(H)+1\right) , &{} r\equiv 0 \pmod 3,\\ \frac{r+2}{3}({\text {n}}(H)-{ \Delta }(H)+1), &{} r\equiv 1 \pmod 3,\\ \frac{r+1}{3} ({\text {n}}(H)-{ \Delta }(H)+1), &{} r\equiv 2 \pmod 3. \end{array}\right. \end{aligned}$$

Proof

If \(r\equiv 0,2 \pmod 3\), then \(\rho '(P_r)=\rho (P_r)\). Hence, the result follows from Theorem 17. Now, assume \(r\equiv 1 \pmod 3\), and let S be a \(\rho (P_r)\)-set. In this case, \(P_r\) is an efficient closed domination graph, and so \(|N(S)|=r-|S|=\frac{2(r-1)}{3}\). Thus, for every vertex \(v\in V(H)\) with \(\deg (v)={ \Delta }(H)\),

$$\begin{aligned} \partial _{2p}(P_r\circ H)&\ge \partial (S\times \{v\})\\&=\sum _{u\in S}(|N(u)|{\text {n}}(H)+{ \Delta }(H)-1)\\&= |N(S)|{\text {n}}(H)+\rho (P_r)({ \Delta }(H)-1)\\&= \frac{2}{3}(r-1){\text {n}}(H)+\frac{r+2}{3}({ \Delta }(H)-1). \end{aligned}$$

It remains to show that the equality holds. To this end, let W be a \(\partial _{2p}(P_r\circ H)\)-set and U the projection of W on \(V(P_r)\). By Corollary 5, we learned that U is a 2-packing of \(P_r\). Hence, as in the proof of Theorem 17 we deduce that \(\partial _{2p}(P_r\circ H)\le |N(U)|{\text {n}}(H)+|U|({ \Delta }(H)-1).\) Thus, if U is a \(\rho (P_r)\)-set, then \(\partial _{2p}(P_r\circ H)=\frac{2}{3}(r-1){\text {n}}(H)+\frac{r+2}{3}({ \Delta }(H)-1)\), as required. Now, suppose to the contrary, that \(|U|\le \rho (P_r)-1=\frac{r-1}{3}\). In such a case, \(|N(U)|\le 2|U|\le \frac{2(r-1)}{3}\), and so

$$\begin{aligned} \frac{2}{3}(r-1){\text {n}}(H)+\frac{r+2}{3}({ \Delta }(H)-1)&\le \partial _{2p}(P_r\circ H)\\&\le |N(U)|{\text {n}}(H)+|U|({ \Delta }(H)-1) \\&\le \frac{2}{3}(r-1){\text {n}}(H)+\frac{r-1}{3}({ \Delta }(H)-1), \end{aligned}$$

which is a contradiction for \({ \Delta }(H)\ge 2\), and we have equalities for \({ \Delta }(H)=1\). By Theorem 15 we complete the proof. \(\square \)

We can make the appropriate modifications in the proof of the previous theorem to show that the following result follows.

Theorem 19

Let \(r\ge 2\) be an integer. If H is an empty graph, then

$$\begin{aligned} \partial _{2p}(P_r\circ H)=\displaystyle \left\{ \begin{array}{ll} \frac{r}{3}\left( 2{\text {n}}(H)-1\right) , &{} r\equiv 0 \pmod 3,\\ \frac{r-1}{3}(2{\text {n}}(H)-1), &{} r\equiv 1 \pmod 3,\\ \frac{2r-1}{3} {\text {n}}(H)-\frac{r+1}{3}, &{} r\equiv 2 \pmod 3. \end{array}\right. \end{aligned}$$

Furthermore,

$$\begin{aligned} \mu _{_R}(P_r\circ H)=\displaystyle \left\{ \begin{array}{ll} \frac{r}{3}\left( {\text {n}}(H)+1\right) , &{} r\equiv 0 \pmod 3,\\ \frac{r+2}{3}{\text {n}}(H)+\frac{r-1}{3}, &{} r\equiv 1 \pmod 3,\\ \frac{r+1}{3} ( {\text {n}}(H)+1), &{} r\equiv 2 \pmod 3. \end{array}\right. \end{aligned}$$