Professional Documents
Culture Documents
10.7151 dmgt.2347
10.7151 dmgt.2347
10.7151 dmgt.2347
Abstract
The neighborhood polynomial of graph G is the generating function for
the number of vertex subsets of G of which the vertices have a common
neighbor in G. In this paper, we investigate the behavior of this polynomial
under several graph operations. Specifically, we provide an explicit formula
for the neighborhood polynomial of the graph obtained from a given graph
G by vertex attachment. We use this result to propose a recursive algorithm
for the calculation of the neighborhood polynomial. Finally, we prove that
the neighborhood polynomial can be found in polynomial-time in the class
of k-degenerate graphs.
Keywords: neighborhood complex, neighborhood polynomial, domination
polynomial, graph operations, graph degeneracy.
2010 Mathematics Subject Classification: 05C31, 05C76.
1. Introduction
All graphs considered in this paper are simple, finite, and undirected. Let G =
(V, E) be a graph where V is its vertex set and E its edge set, suppose v ∈ V
is a vertex of G. The open neighborhood of v, denoted by N (v), is the set of all
vertices that are adjacent to v,
Suppose |V | = n, and let nk (G) = |{A | A ∈ N (G), |A| = k}|. Then we can
rephrase the Equation (1) as follows
n−1
X
N (G, x) = nk (G)xk .
k=0
N [W ] = N (W ) ∪ W.
We denote by D(G) the family of all dominating sets of a graph G. The domi-
nation polynomial of a graph, introduced in [3], is
X
D(G, x) = x|W | .
W ∈D(G)
For further properties of the domination polynomial, see [1, 6, 7, 12, 13]. It
has been observed in [4] that a vertex set W of G belongs to the neighborhood
complex of G if and only if W is non-dominating in the complement (Ḡ) of G,
which implies
2. Graph Operations
Having defined a graph polynomial, one of the first natural problems is its cal-
culation. Often, local graph operations, such as edge or vertex deletions, prove
useful. In addition, global operations, like complementation or forming the line
graph, might be beneficial. Finally, graph products, for instance the disjoint
union, the join, or the Cartesian product, can be employed to simplify graph
polynomial calculations.
The disjoint union of two graphs G1 = (V1 , E1 ) and G2 = (V2 , E2 ) with
disjoint vertex sets V1 and V2 , denoted by G1 ∪ G2 is a graph with the vertex set
V1 ∪ V2 , and the edge set E1 ∪ E2 .
Theorem 1 [5]. Let G1 and G2 be simple undirected graphs. The disjoint union
G1 ∪ G2 satisfies
The join of two graphs G1 = (V1 , E1 ) and G2 = (V2 , E2 ) with disjoint vertex
sets V1 and V2 , denoted by G1 + G2 , is the disjoint union of G1 and G2 , together
with all those edges that join vertices in V1 to vertices in V2 .
V1 ∪ V2 = V, V1 ∩ V2 = {v}, E1 ∪ E2 = E, E1 ∩ E2 = ∅.
(b) Now assume that X contains at least one vertex from each of V1 \ {v} and
V2 \ {v}. In this case, v is the common neighbor, so we need to count all subsets
of the open neighborhood of v in G which include at least one vertex from each of
the open neighborhoods of v in G1 and G2 , which is performed by the generating
function ((1 + x)|NG1 (v1 )| − 1)((1 + x)|NG2 (v2 )| − 1).
where
x|U | if [U = ∅] or
( T T
u∈U NG1 (u) 6= ∅ and u∈U NG2 (u) 6= ∅ ,
AU =
0 otherwise.
Proof. Let X be a vertex subset of G with X ∈ N (G), which implies that
the vertices of X have a common neighbor in G. Then we can distinguish the
following cases.
(a) If X ⊆ V1 or X ⊆ V2 , all possibilities to select X are generated by the
polynomial X
N (G1 , x) + N (G2 , x) − AU ,
U ⊆W
702 M. Alipour nad P. Tittmann
in which we avoid any subset of the set W having common neighbors in Pboth split
components G1 and G2 , to be counted more than once by subtracting U ⊆W AU .
(b) Now assume that X contains at least one vertex from each of V1 \ W and
V2 \ W . In this case the common neighbor is in W . We generate all subsets of
the open neighborhoods of vertices of W by the generating function
X T T
(−1)|U |+1 (1 + x)| u∈U NG1 (u)| − 1 (1 + x)| u∈U NG2 (u)| − 1 ,
U ⊆W
U 6=∅
N (G, x) = N (H ′ , x) + N (K ′ , x) − 2|F |x − 1.
B
A F
Proof. The open neighborhoods of all vertices of V (H) are the same in G and
in H ′ . We also have NG (v) = NK ′ (v) for any v ∈ V (K). This implies
N (G) = N (H ′ ) ∪ N (K ′ ).
Proof. Observe that any vertex subset with a common neighbor in G forms a
vertex subset with a common neighbor in G′ . Such vertex subsets are generated
by N (G, x). The addition of the edge {u, v} to G results in the fact that any
non-empty subset of the open neighborhood of u together with v forms a vertex
subset with u as the common neighbor in G′ and the same arguments applies to
the open neighborhood of v. Such subsets are generated by x((1 + x)|NG (u)| −
1) + x((1 + x)|NG (v)| − 1).
Now, assume there is a vertex subset W with a common neighbor in G′ and
suppose it is counted once in x((1 + x)|NG (u)| − 1) + x((1 + x)|NG (v)| − 1) and
once in N (G, x), and let y ∈ W . This implies that W , which is a subset of the
open neighborhood of one of the vertices u (or v) together with v (or u) have
a common neighbor in G. Let x be that common neighbor. The existence of
such set results in the existence of a path of length 3 between u1 and u2 through
vertices x and y which contradicts the assumption that there is no path of length
3 between those two vertices in G. So there is no vertex subset with a common
neighbor in G′ that is counted more than once and this completes the proof.
Proof. If X ∈ N (G), then X ∈ N (G′ ) and all such vertex subsets are generated
by N (G, x). After insertion of the edge {u1 , u2 }, the vertices in any subset of the
704 M. Alipour nad P. Tittmann
Then
X T X
N (GU ⊲v , x) = N (G, x) + (−1)|W |+1 x(1 + x)| w∈W NG (w)|
+ AW .
W ⊆U W ⊆U
W 6=∅ W 6=∅
where (
x|W |
T
if w∈W NG (w) = ∅,
AW =
0 otherwise.
(c) Finally assume v ∈ X. In this case, we need to count all vertex subsets
of the open neighborhoods of vertices u ∈ U where each one of those subsets
together with v forms a vertex subset, with u as their common neighbor in GU ⊲v .
To exclude double counting subsets of intersections of the neighborhoods of u’s,
we use the principle of inclusion-exclusion. Such subsets are generated by
X T
(−1)|W |+1 x(1 + x)| w∈W NG (w)|
,
W ⊆U
W 6=∅
3. Graph Degeneracy
Then we have
N (Gn , x) = N (Gn−1 , x) + X1
= (N (Gn−2 , x) + X2 ) + X1
..
.
= (· · · ((N (G1 , x) + Xn−1 ) + Xn−2 ) + · · · ) + X1 )
n−1
X
=1+ Xi ,
i=1
Graph Operations and Neighborhood Polynomials 707
where the last equation is a result of the fact that G1 is equal to a single vertex
which has neighborhood polynomial 1.
Clearly, in each step (in other words for each i, 0 < i < n), we remove a
vertex vi of degree at most k and calculate the term Xi that is a sum over all
non-empty subsets of NGn−(i−1) (vi ), but since this set has at most k elements
due to the degree of vi in Gn−(i−1) , the calculation of N (G, x) can be done in
polynomial time for any fixed k which yields the following theorem.
Theorem 11. Let k be a fixed positive integer. The calculation of the neighbor-
hood polynomial can be performed in polynomial-time in the class of k-degenerate
graphs.
The recursive procedure for the calculation of the neighborhood polynomial
becomes for graphs with regular structure especially simple. We give here an
example of a 2 × n-grid graph that can easily be generalized to similar graphs
with regular structure.
Example 12. A ladder graph of order 2n, denoted by Ln , is the Cartesian prod-
uct of two path graphs P2 and Pn , see Figure 2. The neighborhood polynomial
of Ln is
v
1 2 3 n
and
1 2 3 n-1
Corollary 13. Let k be a fixed positive integer. The calculation of the neigh-
borhood polynomial can be performed in polynomial-time in the class of k-regular
graphs.
4. Complexity
In [11], it is shown that counting dominating sets in several graph classes is #P-
complete, which implies that calculating the domination polynomial and hence,
by Equation 2, the neighborhood polynomial of a graph is #P-hard [14]. For the
problem of counting dominating sets, even parameterized counting is hard. It
Graph Operations and Neighborhood Polynomials 709
has been shown in [8] that counting dominating sets of size k, for a given positive
integer k, is #W[2]-hard.
Consequently, any result that shows that the neighborhood polynomial can be
calculated in polynomial time in some graph class is highly welcome. Brown and
Nowakowski showed in their seminal paper [5] that the neighborhood polynomial
can be calculated in polynomial time in any C4 -free graph. The results given in
[10] show that we can generalize this result to graphs that exclude small complete
bipartite subgraphs. (A cycle C4 can also be considered as a complete bipartite
subgraph K2,2 .) Equation 2 shows that whenever the neighborhood polynomial
can be found in polynomial time for some graph class H, then the domination
polynomial can be calculated efficiently in the class of all complements of graphs
in H.
All positive complexity results found so far concern sparse graphs, as we either
restrict degrees of the graph or exclude some small subgraphs, which corresponds
to the known fact that the domination polynomial can be calculated more effi-
ciently in graphs of high edge density. Hence an interesting open problem is to
find some edge-dense graph classes that allow a polynomial-time computation of
the neighborhood polynomial.
The presented decomposition and reduction methods for the calculation of the
neighborhood polynomial work well for graphs of bounded degree or, more gen-
erally, for k-degenerate graphs. They can easily be extended to derive the
neighborhood polynomials of further graphs with regular structure such as grid
graphs with additional diagonal edges. The splitting formula for vertex separa-
tors also suggests that the neighborhood polynomial should be polynomial-time
computable in the class of graphs of bounded treewidth.
A main open problem remains the calculation of the neighborhood polyno-
mial of graphs for which the number of edges is not linearly bounded by its order.
Can we find an efficient way to calculate the neighborhood polynomial of graphs
of bounded clique-width?
For some graph polynomials, like the matching polynomial, we can find nice
relations between the corresponding polynomial of a graph G and the polynomial
of its complement Ḡ. Does there exist a similar relation for the neighborhood
polynomial?
For a given graph G = (V, E), a nice approach to calculate a graph polynomial
is splitting along a separating vertex set, say U ⊆ V . This method has been
successfully applied to the Tutte polynomial, see [2], from which we easily obtain
similar splitting formulae for chromatic, flow, and reliability polynomials as well.
In this paper, we proved a splitting formula for the special case that one of the
710 M. Alipour nad P. Tittmann
split components with respect to the separator U is a star (the vertex addition
formula). However, the main obstacle to generalize this idea is that we cannot
restrict the consideration to subsets of the separator, but also all neighborhoods
of those sets. Is there a general splitting formula for the neighborhood polynomial
that avoids this difficulty?
Acknowledgements
We thank two anonymous reviewers who provided helpful comments on earlier
drafts of the manuscript.
This work was partially supported by the European Social Fund (ESF).
References
[1] S. Akbari, S. Alikhani and Y.-h. Peng, Characterization of graphs using domination
polynomials, European J. Combin. 31 (2010) 1714–1724.
doi:10.1016/j.ejc.2010.03.007
[2] A. Andrzejak, Splitting formulas for Tutte polynomials, J. Combin. Theory Ser. B
70 (1997) 346–366.
doi:10.1006/jctb.1997.1767
[3] J.L. Arocha and B. Llano, Mean value for the matching and dominating polynomials,
Discuss. Math. Graph Theory 20 (2000) 57–69.
doi:10.7151/dmgt.1106
[4] A.E. Brouwer, P. Csorba and A. Schrijver, The number of dominating sets of a finite
graph is odd (2009).
https://www.win.tue.nl/∼aeb/preprints/domin4a.pdf
[5] J.I. Brown and R.J. Nowakowski, The neighbourhood polynomial of a graph, Aus-
tralas. J. Combin. 42 (2008) 55–68.
[6] M. Dod, The independent domination polynomial.
arXiv preprint arXiv:1602.08250 (2016).
[7] K. Dohmen and P. Tittmann, Domination reliability, Electron. J. Combin. 19 (2012)
#P15.
doi:10.37236/1166
[8] J. Flum and M. Grohe, The parameterized complexity of counting problems, SIAM
J. Comput. 33 (2004) 892–922.
doi:10.1137/S0097539703427203
[9] B.S. Gubser, A characterization of almost-planar graphs, Combin. Probab. Comput.
5 (1996) 227–245.
doi:10.1017/S0963548300002005
[10] I. Heinrich and P. Tittmann, Neighborhood and domination polynomials of graphs,
Graphs Combin. 34 (2018) 1203–1216.
doi:10.1007/s00373-018-1968-7
Graph Operations and Neighborhood Polynomials 711
[11] S. Kijima, Y. Okamoto and T. Uno, Dominating set counting in graph classes,
in: Proc. 17th Annual International Conference, COCOON 2011, Lecture Notes in
Comput. Sci. 6842 (2011) 13–24.
doi:10.1007/978-3-642-22685-4 2
[12] T. Kotek, J. Preen, f. Simon, P. Tittmann and M. Trinks, Recurrence relations and
splitting formulas for the domination polynomial, Electron. J. Combin. 19 (2012)
#P47.
doi:10.37236/2475
[13] T. Kotek, J. Preen and P. Tittmann, Subset-sum representations of domination
polynomials, Graphs Combin. 30 (2014) 647–660.
doi:10.1007/s00373-013-1286-z
[14] T. Kotek, J. Preen and P. Tittmann, Domination polynomials of graph products.
arXiv preprint arXiv:1305.1475 (2013)
[15] L. Lovász, Kneser’s conjecture, chromatic number, and homotopy, J. Combin. The-
ory Ser. A 25 (1978) 319–324.
doi:10.1016/0097-3165(78)90022-5