 Research
 Open Access
 Published:
The extremal graphs with respect to their nullity
Journal of Inequalities and Applications volume 2016, Article number: 71 (2016)
Abstract
The nullity of a graph G, denoted by \(\eta(G)\), is the multiplicity of the eigenvalue zero of its adjacency matrix. In this paper, we determine all graphs with \(\eta(G)=n(G)  2m(G) c(G)\), where \(c(G) = e(G)  n(G) + \omega(G)\), and \(n(G)\), \(e(G)\), \(m( G )\), and \(\omega (G)\) are the vertex number, edge number, matching number, and the number of connected components of G, respectively.
1 Introduction
All graphs considered in this paper are finite, undirected, and simple. Let G be a graph of order \(n(G)\) and size \(e(G)\). The adjacency matrix of G, denoted by \(A ( G ) = ( a_{ ij }) _{n \times n }\), is the \(n\times n\) matrix such that \(a _{ij} = 1 \) if vertices \(v _{i}\) and \(v_{j}\) are adjacent and \(a _{ij} = 0 \) otherwise, \(i,j=1,\ldots,n\). The rank of a graph G, denoted by \(r(G)\), is the rank of its adjacency matrix \(A ( G )\). The multiplicity of the eigenvalue zero of \(A(G)\) is called the nullity of G and is denoted by \(\eta( G ) \). It is obvious that \(\eta( G )=n(G)r(G)\). The graph G is called singular if \(\eta( G )>0 \) and called nonsingular if \(\eta( G )=0 \). Collatz and Sinogowitz [1] first raised the problem of characterizing all singular or nonsingular graphs. This problem is hard to be solved. The nullity is relevant to the rank of symmetric matrices described by graphs. On the other hand, the nullity has strong chemical background. A singular bipartite graph expresses the chemical instability of the molecule corresponding to the bipartite graph. Due to all these reasons, the nullity aroused the interest of many mathematicians and chemists. The topics on the nullity of graphs includes the computing nullity, the nullity distribution, bounds on nullity, characterization of graphs with certain nullity, and so on. For some particular classes of graphs, some preliminary results about nullity have been released [2–14].
It is known that \(0 \leq\eta(G) \leq n(G) 2 \) if G is a graph of order \(n(G)\) containing at least one edge [15]. Cheng and Liu [2] characterized all graphs with nullity \(n(G) 2\) and \(n(G) 3\). Chang et al. [3, 4] characterized all graphs of ranks 4 and 5 (i.e., with nullity \(n(G) 4\) and \(n(G) 5\)). Along this way, Zhu et al. [14] gave the characterization of the unicyclic graphs with nullity \(n(G) 6\) and \(n(G) 7\). Li et al. [10] characterized two kinds of bicyclic graphs with \(n(G) 6\), whereas the entire characterization of graphs with nullity \(n(G) 6\), \(n(G) 7\), etc. is still unfinished.
A matching in a graph G is a set of pairwise nonadjacent edges. A maximum matching is one that contains as many edges of G as possible. The matching number of G, denoted by \(m(G)\), is the size of a maximum matching in G. Let \(c(G) = e(G)  n(G) + \omega(G)\), where \(\omega(G)\) is the number of connected components of G. Wang and Wong [16] obtained the following bounds of the matching number.
Theorem 1.1
([16])
Let G be a graph of rank \(r(G)\). Then
Since \(\eta(G)= n (G) r(G)\), this theorem can be equivalently rewritten in the following form in terms of the nullity of G.
Theorem 1.2
Let G be a graph with nullity \(\eta(G)\). Then
Recently, Song et al. [12] characterized all graphs attaining the upper bound, that is, the graphs with nullity \(\eta(G) = n (G) 2m(G) +2c(G)\).
Theorem 1.3
([12])
For any graph G, \(\eta(G) = n (G) 2m(G) +2c(G)\) if and only if the following three conditions are all satisfied:

(1)
All cycles of G are pairwise vertexdisjoint.

(2)
The length of each cycle of G is a multiple of 4.

(3)
\(m(T _{G} ) = m(T _{G} W _{G} )\), where \(T _{G}\) is obtained from G by contracting each cycle into a vertex, and \(W_{G}\) consists of new vertices obtained by contracting each cycle of G.
Motivated by the works mentioned, in this paper, we characterize all graphs G with nullity \(\eta(G) = n(G) 2m(G) c(G)\). The main result is as follows.
Theorem 1.4
For any graph G, \(\eta(G) =n(G) 2m(G) c(G)\) if and only if the following three conditions are all satisfied:

(a)
Cycles of G (if any) are pairwise vertexdisjoint.

(b)
Each cycle of G (if any) is odd cycle.

(c)
\(m(T _{G} ) = m(T _{G} W _{G} )\).
2 Preliminaries
Let G be a graph with vertex set \(V (G)\). We denote by \(G U\) the graph obtained from G by removing the vertices in U together with all incident edges, where \(U\subseteq V (G)\). Especially, when \(U = \{x\}\), we write \(G U\) simply as \(G x\). Sometimes we use the notation \(G  G _{1}\) instead of \(G  V (G _{1} )\) when \(G _{1}\) is an induced subgraph of G. If \(G_{1}\) is an induced subgraph of G and x is a vertex not in \(G_{1}\), we write the subgraph of G induced by \(V (G _{1} ) \cup\{ x\}\) simply as \(G _{1} + x\).
Let \(C_{n}\) and \(P_{n}\) be the cycle and path on n vertices, respectively. Let \(B(l,x,k)\) be the graph shown in Figure 1, which is obtained from two vertexdisjoint cycles \(C _{l}\) and \(C_{k}\) by connecting \(v_{1}\in V(C _{l})\) and \(v_{x}\in V(C_{k})\) with a path \(P_{x}\) of length x, where \(l , k \geq3\) and \(x\geq1\) (when \(x=1\), it means that we identify \(v_{1}\) and \(v_{x}\)). Let \(\theta (l,x,k)\) be the graph shown in Figure 1, which is the union of three internally disjoint paths \(P _{l+1} \), \(P_{ x+1}\), and \(P_{ k+1}\) of lengths l, x, k, respectively, with common end vertices, where \(l ,x ,k \geq1\), and at most one of them is 1.
The degree of a vertex v in G, denoted by \(d_{G}(v)\), is the number of edges incident to the vertex. A vertex is called a pendant vertex if its degree is 1. A lollipop is a graph obtained by identifying a vertex on a cycle and an end vertex on a path. The following is a list of known results about nullity that we will need in the proofs.
Lemma 2.1
([17])
Let \(G=G_{1}\cup G_{2}\cup \cdots\cup G_{\omega}\), where \(G_{1}, G_{2}, \ldots, G_{\omega}\) are connected components of G. Then
Lemma 2.2
([17])
Let G be a graph containing a pendant vertex, and let H be the induced subgraph of G obtained by deleting the pendant vertex together with the vertex adjacent to it. Then \(\eta( G ) = \eta( H )\).
Lemma 2.3
([15])
Lemma 2.4
([15])
For any vertex x of graph G, \(\eta(G) 1 \leq\eta(G x) \leq \eta(G) +1\).
Lemma 2.5
([7])
Let x be a cutvertex of a graph G, and \(G_{1} \) be a component of \(G  x\). If \(\eta(G _{1} ) = \eta(G_{1} + x) 1\), then \(\eta(G) = \eta (G_{1})+\eta(GG_{1})\).
Lemma 2.6
([12])
Let G be a graph with at least one cycle. Then the cycles of G are pairwise vertexdisjoint if and only if for any vertex u of G that lies on a cycle, \(c(G u) = c(G)1\).
Lemma 2.7
([12])
Let u be a pendant vertex of a graph G, and v be the vertex adjacent to u. Denote \(G_{0}=G \{u, v\}\). Then, \(m(T_{G} ) = m(T _{G}  W_{G} )\) if and only if v does not lie on a cycle and \(m(T _{G_{0} }) = m(T_{ G _{0} } W _{G_{0} })\).
Lemma 2.8
([15])
For every acyclic graph F with at least one vertex,
For convenience, hereafter in this paper, we say a graph G satisfies the minimal nullity condition if \(\eta(G) = n(G) 2m(G) c(G)\). For acyclic graph F, since \(c(F)=0\), it follows from Lemma 2.8 that every acyclic graph satisfies the minimal nullity condition. For a connected graph G, when \(c(G)=1\), G must be a unicyclic graph (a connected graph with equal number of vertices and edges). Guo et al. [8] characterized all unicyclic graphs that satisfy the minimal nullity condition.
Lemma 2.9
([8])
Let G be a unicyclic graph, and let \(C_{l}\) be the unique cycle of G of length l. Then \(\eta(G)= n (G) 2m(G) 1\) if and only if l is odd and \(m(G)=\frac{l1}{2}+m(GC_{l})\).
The next lemma follows immediately from Lemma 2.9.
Lemma 2.10
Among all cycles, only odd cycles satisfy the minimal nullity condition.
Lemma 2.11
Let u be a pendant vertex of a graph G and v be the vertex adjacent to u. Denote \(G \{u, v\}\) by \(G_{0} \). Then, G satisfies the minimal nullity condition if and only if v does not lie on a cycle of G and \(G _{0}\) satisfies the minimal nullity condition.
Proof
By Lemma 2.2, we know that \(\eta(G _{0} ) = \eta(G)\). Clearly, \(m(G_{0} ) = m(G) 1\).
‘⇐’ Since v does not lie on a cycle of G, we have \(c(G _{0} ) = c(G)\). Moreover, \(G _{0}\) satisfies the minimal nullity condition, then we have
which means that G satisfies the minimal nullity condition.
‘⇒’ If v lies on a cycle, then we have \(c(G _{0} ) \leq c(G) 1\). Since G satisfies the minimal nullity condition, we have
which is contradict with \(\eta(G _{0} )\geq n(G_{0} )2m(G_{0} ) c(G_{0} )\). Therefore, v does not lie on any cycle of G, then \(c(G _{0} ) = c(G)\). We have
which means that \(G _{0}\) satisfies the minimal nullity condition. □
Lemma 2.12
Let G be a graph with at least one cycle. Suppose that all cycles of G are pairwise vertexdisjoint and each cycle of G is odd. Then \(m(T _{G} ) = m(T_{G}  W_{G} )\) if and only if \(m(G)=\sum_{C\in G} m(C)+ m(G  \bigcup_{C\in G} C)\).
Proof
Let \(C_{1}, \ldots, C_{c(G)}\) be all cycles of G. Suppose that \(G \bigcup_{i=1}^{c(G)}C_{i}\) has q connected components, say \(H _{1} , \ldots, H _{q} \). Then \(H _{1} , \ldots, H _{q} \) are also all components of \(T _{G}  W _{G} \) since \(T _{G}  W _{G} = G \bigcup_{i=1}^{c(G)}C_{i}\).
For \(k = 1, \ldots, q\), we can obtain the subgraph \(\tilde {H}_{k}\) in \(T_{G} \) induced by \(V (H_{k} )\) and its all neighbor vertices. In G, we also can obtain the subgraph \(\hat{H}_{k}\) induced by \(V (H_{k} )\) and its all neighbor vertices. There is at most one edge between \(V (H_{k} )\) and \(V (C_{i} )\) since \(H_{k}\) is connected and the cycles of G are pairwise vertexdisjoint. Therefore, for each k, the graphs \(\tilde{H}_{k}\) and \(\hat{H}_{k}\) are isomorphic.
‘⇒’ Since \(m(T_{G} ) = m(T_{G}  W _{G} )\) and \(m(T_{G}  W _{G} )=\sum_{k=1}^{q} m(H _{k} )\), we have \(m(T_{G} )= \sum_{k=1}^{q} m(H _{k} )\). Let \(M_{T}\) be a maximum matching of \(T_{G}\). Then \(M_{T}=\sum_{k=1}^{q} m(H _{k} )\), which implies that \(m(H_{k} ) = m(\tilde{H}_{k} )\) for \(k = 1, \ldots, q\). Otherwise, there is \(k_{0}\in\{ 1, \ldots, q\}\) such that \(m(H_{ k_{0} }) < m(\tilde{H }_{k _{0}})\). Then we can easily get the matching \(M_{T}'\) of \(T_{G}\) obtained from \(M_{T}\) by replacing the maximum matching of \(H _{k_{0}}\) by the maximum matching of \(\tilde{H } _{k_{0}}\). Then we have
which leads to a contradiction. Thus, \(m(H _{k} ) = m(\hat{ H} _{k} )\), \(k = 1, \ldots, q\), since \(\tilde{H} _{k}\) and \(\hat{H} _{k}\) are isomorphic.
Let M be a maximum matching of G. Then we have
On the other hand, \(M=m(G)\geq\sum_{i=1}^{c(G)}m(C_{i}) + \sum_{k=1}^{q} m(H_{k})\). Since \(\sum_{k=1}^{q} m(H_{k}) = \sum_{k=1}^{q} m( \hat{H }_{k})\), we then have
‘⇐’ From \(m(G)=\sum_{C\in G} m(C)+ m(G  \bigcup_{C\in G} C)\) we have \(m(G)=\sum_{i=1}^{c(G)}m(C_{i})+ \sum_{k=1}^{q} m(H_{k})\). Let M be a maximum matching of G. Then \(M=\sum_{i=1}^{c(G)}m(C_{i})+ \sum_{k=1}^{q} m(H_{k})\).
Assume to the contrary that \(m(T_{G} ) \neq m(T _{G} W _{G} )\). Then \(m(T_{G} ) > m(T _{G} W _{G} )\). Since \(m(T _{G} W _{G} )=\sum_{k=1}^{q} m(H _{k} )\), we have \(m(T_{G} ) > \sum_{k=1}^{q} m(H _{k} )\). It means that there is \(k_{0}\in\{1, \ldots, q\}\) such that \(m(\tilde{H} _{k_{0}})>m(H_{k_{0}} ) \). Since \(\tilde{H }_{k_{0}}\) and \(\hat{H }_{k_{0}}\) are isomorphic, we have \(m(\hat{H} _{k_{0}})=m(\tilde{H} _{k_{0} })>m(H_{k_{0}} ) \).
Since there is at most one edge between \(V (H_{k_{0}} )\) and \(V (C_{i} )\) (\(i=1,\ldots, c(G)\)), without loss of generality, we can assume that for \(i=1,\ldots, x\), there is exactly one edge between \(V (H_{k_{0}} )\) and \(V (C_{i} )\). Let \(v_{i}\in V(C_{i})\) (\(i=1,\ldots, x\)) be the unique vertex adjacent to \(H_{k_{0}} \). Then we have the matching \(M'\) of G which obtained from M by replacing the maximum matching of \(H _{k_{0}}\) by the maximum matching of \(\hat{H} _{k_{0}}\) and by adjusting the maximum matching of each \(C_{i}\) to the one without covering the vertex \(v_{i}\), \(i=1,\ldots, x\). Then,
which leads to a contradiction. □
3 Main results
Proposition 3.1
Let G be a connected graph without pendant vertices, and \(c(G)\geq 2\). Then G does not satisfy the minimal nullity condition.
Proof
Since \(c(G)\geq2\), there are at least two different cycles in G. We distinguish the following two cases.
Case 1. There exists a vertex u on a cycle such that \(c(Gu)\leq c(G)3\).
If G satisfies the minimal nullity condition, then we have
By Lemma 2.4 we know that \(\eta(G) \geq\eta(Gu)1\), a contradiction.
Case 2. For any vertex u on a cycle, \(c(Gu)\geq c(G)2\).
We first prove the following claim.
Claim
Let G be a connected graph without pendant vertices. Suppose that for any vertex u on a cycle of G, \(c(Gu)\geq c(G)2\) (\(c(G)\geq2\)). Then there are at most \(c(G)1\) vertices of G not covered by its maximum matching.
In fact, if a vertex u lies on a cycle of G, then \(c(Gu)\leq c(G)1\). We distinguish the following two cases.
Case a. For any vertex u that lies on a cycle of G, \(c(Gu)= c(G)1\).
By Lemma 2.6 all cycles of G are pairwise vertexdisjoint in this case. By induction on \(c(G)\), when \(c(G)=2\), G becomes \(B(l,x,k)\) (\(x\geq2\)). Since \(B(l,x,k)\) (\(x\geq2\)) has a path as its spanning subgraph, there is at most \(1=c(G)1\) vertex not covered by its maximum matching.
We assume that the claim holds for a connected graph G without pendant vertices and \(c(G)< l\) and all cycles of G are pairwise vertexdisjoint. Then we consider the case \(c(G)=l\) (\(l>2\)).
Since all cycles of G are pairwise vertexdisjoint, there must exist a subgraph \(G_{1}\) that is a lollipop graph such that \(GG_{1}\) is a graph without pendant vertices. The cycles of \(GG_{1}\) are also pairwise vertexdisjoint since it is a subgraph of G. Clearly, \(c(GG_{1})=c(G)1=l1< l\). By the induction assumption there are at most \(c(GG_{1})1\) vertices of \(GG_{1}\) not covered by the maximum matching of \(GG_{1}\). It is easy to see that in the lollipop graph \(G_{1}\), there is at most one vertex not covered by the maximum matching of \(G_{1}\). Then, there are at most \(c(GG_{1})1+1=c(G)1\) vertices of G not covered by its maximum matching.
Case b. There is a vertex u that lies on a cycle of G such that \(c(Gu)= c(G)2\). Similarly to Case a, by induction on \(c(G)\), when \(c(G)=2\), G becomes \(B(l,1,k)\) or \(\theta(l,x,k)\). Since \(B(l,1,k)\) and \(\theta(l,x,k)\) have a path as their spanning subgraph, there is at most \(1=c(G)1\) vertex not covered by their maximum matchings.
We assume that the claim holds for a connected graph G without pendant vertices and \(c(G)< l\) and there is a vertex u that lies on a cycle of G such that \(c(Gu)= c(G)2\). It is suffices to prove the claim in the case \(c(G)=l\) (\(l>2\)).
Suppose that \(Gu\) has p connected components, say \(H_{1}, H_{2},\ldots,H_{p}\). Let \(n(H_{i})\) and \(e(H_{i})\) be the number of vertices and size of \(H_{i}\), \(i=1,2,\ldots,p\), respectively. Obviously,
For each \(H_{i}\), we have \(c(H_{i})< c(G)\), \(i=1,\ldots,p\). Moreover, we have \(d_{G}(u)=p+2\). In fact,
Thus, by the incident relation between u and \(H_{i}\), G must be isomorphic to one of the two graphs shown in Figure 2.
Now, if G is the graph \(G'\) shown in Figure 2, then we distinguish the following two cases.
Case b.1. Each component \(H_{i}\) has no pendant vertices, \(i=1,2,\ldots,p\).
Now assume that for \(i=1,\ldots,s\), \(c(H_{i})=1\) and for \(i=s+1,\ldots,p\), \(c(H_{i})\geq2\). Then \(c(Gu)=\sum_{i=1}^{p}c(H_{i})=s+c(H_{s+1})+\cdots+c(H_{p})\). When \(i\in\{ 1,\ldots,s\}\), since \(c(H_{i})=1\), \(H_{i}\) is a cycle and there is at most one vertex not covered by a maximum matching of \(H_{i}\); when \(i\in\{s+1,\ldots,p\}\), since \(c(H_{i})\geq2\), by the induction assumption there are at most \(c(H_{i})1\) vertices not covered by a maximum matching of \(H_{i}\). Let \(V_{1}\) be a set of the vertices that are not be covered by a maximum matching of G. Then
Thus, there are at most \(c(G)1\) vertices not overed by a maximum matching of G.
Case b.2. There exists a component, say \(H_{i_{0}}\) (\(i_{0}\in\{ 1,2,\ldots, p\}\)) that has a pendant vertex.
Let \(v_{1}\) be the pendant vertex of \(H_{i_{0}}\), and \(P_{v_{1}v_{2}\cdots v_{x}v_{x+1}}\) be a path in \(H_{i_{0}}\) such that \(v_{1}\) is its end vertex and \(d_{G}(v_{2})=\cdots=d_{G}(v_{x})=2\), \(d_{G}(v_{x+1})>2\). Clearly, \(v_{1}\) is an adjacent vertex of u.
When \(i_{0}=1\), by removing the path \(P_{v_{1}v_{2}\cdots v_{x}}\) from G the resulting graph \(GP_{v_{1}v_{2}\cdots v_{x}}\) is a graph without pendant vertex with \(c(GP_{v_{1}v_{2}\cdots v_{x}})< c(G)\). By the induction assumption there are at most \(c(GP_{v_{1}v_{2}\cdots v_{x}})1\) vertices not covered by a maximum matching of \(GP_{v_{1}v_{2}\cdots v_{x}}\). Recall that there is at most one vertex not covered by a maximum matching of the path \(P_{v_{1}v_{2}\cdots v_{x}}\). Therefore, there are at most \(c(GP_{v_{1}v_{2}\cdots v_{x}})1+1\leq c(G)1\) vertices not covered by a maximum matching of G.
When \(i_{0}\in\{2, \ldots, p\}\), by removing the path \(P_{v_{1}v_{2}\cdots v_{x}}\) from G the resulting graph \(GP_{v_{1}v_{2}\cdots v_{x}}\) is a graph without pendant vertex, whereas \(c(GP_{v_{1}v_{2}\cdots v_{x}})=c(G)\). It is obvious that \(GP_{v_{1}v_{2}\cdots v_{x}}\) has exactly two components, say \(G_{1}\) and \(G_{2}\), both without pendant vertices and with \(c(G_{i})< c(G)\), \(i=1,2\).
If \(c(G_{i})\geq2\), \(i=1,2\), by the induction assumption there are at most \(c(G_{i})1\) vertices not covered by a maximum matching of \(G_{i}\), respectively. Since there is at most one vertex not covered by a maximum matching of \(P_{v_{1}v_{2}\cdots v_{x}}\), there are at most \(c(G_{1})1+c(G_{2})1+1=c(G)1\) vertices not covered by a maximum matching of G.
If there is one of \(G_{i}\), say \(G_{1}\), with \(c(G_{1})=1\), then \(P_{v_{1}v_{2}\cdots v_{x}}+G_{1}\) (the subgraph induced by \(v_{1},v_{2},\ldots,v_{x}\) and \(V(G_{1})\)) is a lollipop graph. Therefore, there is at most one vertex not covered by a maximum matching of \(P_{v_{1}v_{2}\cdots v_{x}}+G_{1}\). Since \(c(G)\geq3\), we have \(c(G_{2})\geq2\). By the induction assumption there are at most \(c(G_{2})1\) vertices not covered by a maximum matching of \(G_{2}\). Thus, there are at most \(c(G_{2})1+1=c(G)1\) vertices not covered by a maximum matching of G.
In a similar way, we can prove the claim when G is the graph \(G''\) shown in Figure 2.
By the previous claim, if G satisfies the minimal nullity condition, then we have
a contradiction. This completes the proof of the lemma. □
By Proposition 3.1 we have that if a connected graph G with \(c(G)\geq2\) satisfies the minimal nullity condition, then G must have a pendant vertex.
We are now ready to prove Theorem 1.4.
Proof
It suffices to prove the theorem for the case where G is connected.
‘⇒’ Let G be a connected graph that satisfies the minimal nullity condition.
When \(c(G)=0\), G is a tree. Then (a), (b), and (c) hold trivially.
When \(c(G) = 1\), G is a unicyclic graph. Let \(C_{l}\) be the unique cycle of G of length l. By Lemma 2.9, \(C_{l}\) is an odd cycle, and \(m(G)=\frac{l1}{2}+m(GC_{l})\). Thus, (a) and (b) hold obviously. Moreover, since \(m(C_{l})=\frac{l1}{2}\) and \(m(GC_{l})=m(T _{G}  v_{C_{l}} )\), we have \(m(G)=m(C_{l})+m(T _{G}  v_{C_{l}} )\). By Lemma 2.12, \(m(T _{G})=m(T _{G}  v_{C_{l}} )\). Thus, (c) holds.
It remains to prove (a), (b), and (c) for G when \(c(G) \geq2\).
Assume that G is a connected graph with \(c(G) \geq2\) that satisfies the minimal nullity condition. By Proposition 3.1, G must have a pendant vertex. Let u be a pendant vertex of G. It follows from Lemma 2.11 that the adjacent vertex v of u does not lie on a cycle of G, and by removing these two vertices u and v the resulting graph \(G_{0}\) also satisfies the minimal nullity condition. Clearly, \(c(G)=c(G_{0})\geq2\).
Let \(H_{1}, H_{2},\ldots,H_{p}\) be the connected components of \(G_{0}\). Then each \(H_{i}\), \(i=1,\ldots,p\), satisfies the minimal nullity condition. Without loss of generality, we assume that for \(i\in\{1,\ldots,s\}\), \(c(H_{i})\leq1\) and for \(i\in\{ s+1,\ldots,p\}\), \(c(H_{i})\geq2\). By Proposition 3.1, for \(i\in\{s+1,\ldots,p\}\), each \(H_{i}\) must have a pendant vertex, and by Lemma 2.11 the adjacent vertex of each pendant vertex does not lie on a cycle of \(H_{i}\). By removing a pendant vertex of \(H_{i}\) and its adjacent vertex the resulting graph also satisfies the minimal nullity condition. For a connected component with \(c\geq2\) that satisfies the minimal nullity condition, there must be a pendant vertex, and its adjacent vertex does not lie on a cycle. Then we can repeatedly remove a pendant vertex of \(H_{i}\), \(i\in\{s+1,\ldots,p\}\), and its adjacent vertex until all connected components of the resulting graph has \(c\leq1\). Continuing in a similar way, we can remove a pendant vertex and its adjacent vertex repeatedly until all connected components of the resulting graph do not contain pendant vertices. It is obvious that the final resulting graph, say \(G^{*}\), consists only of cycles and isolated vertices. Furthermore, \(G^{*}\) satisfies the minimal nullity condition and keeps \(c(G^{*})=c(G)\). It follows from Lemma 2.10 that \(G^{*}\) is the disjoint union of \(c(G)\) odd cycles, say \(C_{1}, C_{2}, \ldots, C_{c(G)}\), and some isolated vertices. Therefore, the cycles of G are pairwise vertexdisjoint, and each cycle is odd. Thus, (a) and (b) hold.
On the other hand, since in each step we just remove a pendant vertex and its adjacent vertex, we have \(m(G) =\sum_{i=1}^{c(G)}m(C_{i})+m(G  \bigcup_{i=1}^{c(G)}V(C_{i} ))\). Thus, by Lemma 2.12 we have \(m(T _{G} ) = m(T _{G}  W_{G} )\), and thus (c) holds.
‘⇐’ Let G be a connected graph satisfying (a), (b), and (c). We deal with the sufficient part of the proof by induction on \(c(G)\). When \(c(G)=0\), G is a tree. Then, by Lemma 2.8, the result is trivial. When \(c(G) = 1\), G is a unicyclic graph. Let \(C_{l}\) be the unique cycle of G of length l. Then \(C_{l}\) is an odd cycle, and \(m(T _{G})=m(T _{G}  v_{C_{l}} )\). By Lemma 2.12 we have \(m(G)=m(C_{l})+m(T _{G}  v_{C_{l}} )=\frac{l1}{2}+m(GC_{l})\). Furthermore, by Lemma 2.9, \(\eta(G) = n (G)2m(G) c(G)\) in this case.
We assume that the result holds when \(c(G)< l\). Now we consider the case \(c(G)=l\) (\(l\geq2\)).
Since cycles of G are pairwise vertexdisjoint, there exists a cycle C in G such that all cycles of \(GC\) lie in the same component, say \(H _{1} \), of \(G  C\), and the other components of \(G  C\), say \(H_{i}\) (\(i=2,\ldots,p\)), are trees. Moreover, \(n(H_{i})\geq2\) (\(i=2,\ldots,p\)). If not, there is \(i_{0}\in\{2,\ldots,p\}\) such that \(n(H_{i_{0}})=1\), which means that there is a pendant vertex of G such that its adjacent vertex lies on C. But this contradicts Lemma 2.7 because (c) holds for G if and only if the adjacent vertex of any pendant vertex does not lie on a cycle.
If \(p\geq2\), then let u be a pendant vertex of G that belongs to \(\bigcup_{i=2}^{p}V (H_{i} ) \), and let v be its adjacent vertex. Denote by \(G_{0} \) the graph obtained from G by removing u and v. By Lemma 2.7, v does not lie on a cycle of G, and (c) also holds for \(G_{0} \). Repeating this operation, after a finite number of steps, we can obtain a graph \(G^{*}\) that is a disjoint union of a connected component \(G_{1} \) induced by \(V (C) \cup V (H _{1} )\) and some acyclic graphs. Obviously, (c) also holds for \(G^{*}\).
Since G is a connected graph and all cycles are pairwise vertexdisjoint, there is exactly one edge between C and \(H _{1}\) in \(G^{*}\). Let xy is the unique edge between C and \(H _{1} \), where \(x \in V (C)\) and \(y \in V (H _{1})\). Note that (c) holds for the graph \(G^{*}\) if and only if (c) also holds for its each connected component. Therefore, (c) holds for \(G_{1}\), that is, \(m(T_{G_{1}})=m(T_{G_{1}}W_{G_{1}})\). Certainly, (a) and (b) hold for \(G_{1}\) since it is a subgraph of G. Moreover, both \(H _{1}+x\) and \(H _{1}\) also satisfy (a) and (b) since they are subgraphs of \(G_{1}\). Now let us show that (c) also holds for \(H _{1}+x\) and \(H _{1}\), that is,

(1)
\(m(T_{H _{1}+x})=m(T_{H _{1}+x}W_{H _{1}+x})\).
In fact, We have \(m(T_{G_{1}})=m(T_{H _{1}+x})\) since \(T_{G_{1}}\cong T_{H _{1}+x}\), and \(W_{G_{1}}=W_{H _{1}+x}\cup\{v_{C}\}\), where \(v_{C}\) is the vertex in \(W_{G_{1}}\) contracted from the cycle C. Since \(m(T_{G_{1}})=m(T_{G_{1}}W_{G_{1}})\), we have
On the other hand, it is clear that \(m(T_{H _{1}+x})\geq m(T_{H _{1}+x}W_{H _{1}+x})\). Therefore, \(m(T_{H _{1}+x})=m(T_{H _{1}+x}W_{H _{1}+x})\).

(2)
\(m(T_{H _{1}})=m(T_{H _{1}}W_{H _{1}})\).
In fact, \(T_{G_{1}}\) can be regarded as the graph induced by \(V(T_{H _{1}})\) and the vertex \(v_{C}\). Therefore, \(T_{G_{1}}=T_{H _{1}}+v_{C}\) and \(W_{G_{1}}=W_{H _{1}}\cup\{v_{C}\}\). Since (c) holds for \(G_{1}\), we have \(m(T_{G_{1}})=m(T_{G_{1}}W_{G_{1}})\). Thus,
Clearly, \(m(T_{H _{1}}+v_{C})\geq m(T_{H _{1}})\). Then we have \(m(T_{H _{1}}+v_{C})=m(T_{H _{1}})\). The previous derivation forces the last inequality involved to become an equality. Thus, \(m(T_{H _{1}})=m(T_{H _{1}}W_{H _{1}})\).
Since \(c(H _{1}+x)< c(G_{1})=c(G)\) (respectively, \(c(H _{1})< c(G_{1})=c(G)\)), by the induction assumption, \(H _{1}+x\) (respectively, \(H _{1}\)) satisfies the minimal nullity condition, that is, \(\eta(H _{1}+x) =n(H _{1}+x)2m(H _{1}+x)c(H _{1}+x)\) and \(\eta(H _{1})=n(H _{1})2m(H _{1})c(H _{1})\).
It follows from (1) and (2) that \(m(T_{H _{1}+x})=m(T_{G})=m(T_{H _{1}}+v_{C})=m(T_{H _{1}})\), that is, \(m(T_{H _{1}+x})=m(T_{H _{1}})\). Since \(m(T_{H _{1}+x})=m(T_{H _{1}+x}W_{H _{1}+x})\) and \(m(T_{H _{1}})=m(T_{H _{1}}W_{H _{1}})\), by Lemma 2.12 we have \(m(H _{1}+x)=\sum_{C\in{H _{1}+x}} m(C)+m(T_{H _{1}+x}W_{H _{1}+x})\) and \(m(H _{1})=\sum_{C\in H _{1}} m(C)+m(T_{H _{1}}W_{H _{1}})\). Then,
that is, \(m(H _{1}+x)=m(H _{1})\). Furthermore, since both \(H _{1}+x\) and \(H _{1}\) satisfy the minimal nullity condition, we have
Then by Lemma 2.5 we have
that is, \(G_{1}\) satisfies the minimal nullity condition. On the other hand, each acyclic graph satisfies the minimal nullity condition. Then \(G^{*}\) also satisfies the minimal nullity condition. It follows from Lemma 2.11 that G satisfies the minimal nullity condition since \(G^{*}\) does. The proof is completed. □
Proposition 3.2
Let G be a graph with at least one cycle. If G satisfies the minimal nullity condition, then for any vertex u that lies on a cycle of G, we have that \(G  u\) also satisfies the minimal nullity condition and \(\eta(G  u) = \eta(G) \).
Proof
It suffices to prove the result for the case where G is connected. Let G be a connected graph satisfying the minimal nullity condition. By Theorem 1.4 all cycles of G, say \(C_{1},C_{2},\ldots ,C_{c(G)}\), are pairwise vertexdisjoint, and each \(C_{i}\) (\(i=1,\ldots,c(G)\)) is an odd cycle. Let u be any vertex that lies on a cycle of G, say \(C_{i_{0}}\) (\(i_{0}\in\{1,\ldots,c(G)\}\)). Since G satisfies the minimal nullity condition, by Theorem 1.4 we have \(m(T_{G})=m(T_{G}W_{G})\). Then by Lemma 2.12 we have
However, \(m(G)\geq m(Gu)\). Thus, we have \(m(G)=m(Gu)\). Furthermore,
By Lemma 2.12 we have \(m(T_{Gu})=m(T_{Gu}W_{Gu})\), that is, \(Gu\) satisfies (c) of Theorem 1.4. Moreover, \(Gu\) also satisfies both (a) and (b) of Theorem 1.4 since \(Gu\) is a subgraph of G. So \(G  u\) satisfies the minimal nullity condition. Then we have
and the proof is completed. □
4 Conclusions
All graphs G with \(\eta(G)=n(G)  2m(G) c(G)\) are completely characterized. This means that we can easily obtain the nullity \(\eta (G)\) of each of those graphs from its order \(n(G)\), matching number \(m(G)\), and elementary cyclic number \(c(G)\), and, thus, we can know whether the graph is singular or not.
References
Collatz, L, Sinogowitz, U: Spektren endlicher Grafen. Abh. Math. Semin. Univ. Hamb. 21, 6377 (1957)
Cheng, B, Liu, B: On the nullity of graphs. Electron. J. Linear Algebra 16, 6067 (2007)
Chang, GJ, Huang, LH, Yeh, HG: A characterization of graphs with rank 4. Linear Algebra Appl. 434(8), 17931798 (2011)
Chang, GJ, Huang, LH, Yeh, HG: A characterization of graphs with rank 5. Linear Algebra Appl. 436(11), 42414250 (2012)
Fan, YZ, Qian, KS: On the nullity of bipartite graphs. Linear Algebra Appl. 430, 29432949 (2009)
Fiorini, S, Gutman, I, Sciriha, I: Trees with maximum nullity. Linear Algebra Appl. 397, 245251 (2005)
Gong, SC, Xu, GH: On the nullity of a graph with cutpoints. Linear Algebra Appl. 436, 135142 (2012)
Guo, JM, Yan, WG, Yeh, YN: On the nullity and the matching number of unicyclic graphs. Linear Algebra Appl. 431, 12931301 (2009)
Hu, SB, Tan, XZ, Liu, BL: On the nullity of bicyclic graphs. Linear Algebra Appl. 429, 13871391 (2008)
Li, J, Chang, A, Shiu, WC: On the nullity of bicyclic graphs. MATCH Commun. Math. Comput. Chem. 60, 2136 (2008)
Li, SC: On the nullity of graphs with pendant vertices. Linear Algebra Appl. 429, 16191628 (2008)
Song, YZ, Song, XQ, Tam, BS: A characterization of graphs G with nullity \(V(G)  2m(G) c(G)\). Linear Algebra Appl. 465, 363375 (2015)
Tan, X, Liu, B: On the nullity of unicyclic graphs. Linear Algebra Appl. 408, 212220 (2005)
Zhu, W, Wu, TZ, Hu, SB: A note on the nullity of unicyclic graphs. J. Math. Res. Expo. 30(5), 817824 (2010)
Brouwer, AE, Haemers, WH: Spectra of Graphs. Springer, New York (2011)
Wang, L, Wong, D: Bounds for the matching number, the edge chromatic number and the independence number of a graph in terms of rank. Discrete Appl. Math. 166, 276281 (2014)
Cvetković, DM, Doob, M, Sachs, H: Spectra of Graphs: Theory and Application. Academic Press, New York (1980)
Acknowledgements
The authors would like to thank the anonymous referees for their constructive corrections and valuable comments on this paper, which have considerably improved the presentation of this paper. This project is supported by NSF of China (Nos. 11331003, 11471077), China.
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors’ contributions
SR carried out the proofs of the main results in the manuscript. AC and YZ participated in the design of the study and drafted the manuscripts. All the authors read and approved the final manuscripts.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Rula, S., Chang, A. & Zheng, Y. The extremal graphs with respect to their nullity. J Inequal Appl 2016, 71 (2016). https://doi.org/10.1186/s136600161018z
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s136600161018z
MSC
 05C50
Keywords
 nullity of graph
 matching number