Solutions1 3
Solutions1 3
Solutions1 3
1.2.43. The edges of a connected simple graph with 2k edges can be partitioned into paths of length 2. The assumption of connectedness is necessary,
since the conclusion does not hold for a graph having components with an
odd number of edges.
We use induction on e(G); there is a single such path when e(G) = 2.
For e(G) > 2, let P = (x, y, z) be an arbitrary path of length two in G ,
and let G ! = G {x y, yz}. If we can partition E(G) into smaller connected
subgraphs of even size, then we can apply the induction hypothesis to each
piece and combine the resulting decompositions. One way to do this is to
partition E(G ! ) into connected subgraphs of even size and use P .
Hence we are finished unless G ! has two components of odd size (G !
cannot have more than three components, since an edge deletion increases
the number of components by at most one). Each odd component contains
at least one of {x, y, z}. Hence it is possible to add one of x y to one odd
component and yz to the other odd component to obtain a partition of G
into smaller connected subgraphs.
36
0110
0011
0111
1010 1110
1111 1011
1000 1100
1101 1001
0100
0000
0101
0001
!"
1.3.5. The k -dimensional cube Q k has 2k 2k copies of P3 .
Proof 1. To specify a particular subgraph isomorphic to P3 , the 3vertex path, we can specify !the
" middle vertex and its two neighbors. For
each vertex of Q k , there are 2k ways to choose two distinct neighbors, since
!"
Q k is a simple k -regular graph. Thus the total number of P3 s is 2k 2k .
Proof 2. We can alternatively choose the starting vertex and the next
two. There are 2k ways to pick the first vertex. For each vertex, there are
k ways to pick a neighbor. For each way to pick these vertices, there are
k 1 ways to pick a third vertex completing P3 , since Q k has no multiple
edges. The product of these factors counts each P3 twice, since we build it
from each end.
the total number of them is 2k k(k 1)/2.
!k " Thus
k2
Q k has 2 2
copies of C 4 .
Proof 1 (direct counting). The vertices two apart on a 4-cycle must
differ in two coordinates. Their two common neighbors each differ from
each in exactly one of these coordinates. Hence the vertices of a 4-cycle
37
From the last list, we test (4, 4, 3, 1, 0, 1, 1), reordered to (4, 4, 3, 1, 1, 1, 0),
then (3, 2, 0, 0, 1, 0). This is not the degree list of a simple graph, since a
vertex of degree 3 requires three other vertices with nonzero degree.
1.3.9. In a league with two divisions of 13 teams each, no schedule has
each team playing exactly nine games against teams in its own division and
four games against teams in the other division. If this were possible, then
we could form a graph with the teams as vertices, making two vertices
adjacent if those teams play a game in the schedule. We are asking for
the subgraph induced by the 13 teams in a single division to be 9-regular.
However, there is no regular graph of odd degree with an odd number of
vertices, since for every graph the sum of the degrees is even.
1.3.10. If l, m, n are nonnegative integers with l + m = n 1, then there
exists a connected simple n -vertex graph with l vertices of even degree and m
38
vertices of odd degree if and only if m is even, except for (l, m, n) = (2, 0, 2).
Since every graph has an even number of vertices of odd degree, and the
only simple connected graph with two vertices has both degrees odd, the
condition is necessary.
To prove sufficiency, we construct such a graph G . If m = 0, let G = C l
(except G = K 1 if l = 1). For m > 0, we can begin with K 1,m1 , which has
m vertices of odd degree, and then add a path of length l beyond one of the
leaves. (Illustration shows l = 3, m = 4.)
Alternatively, start with a cycle of length l , and add m vertices of degree
one with a common neighbor on the cycle. That vertex of the cycle has even
degree because m is even. Many other constructions also work. It is also
possible to prove sufficiency by induction on n for n 3, but this approach
is longer and harder to get right than an explicit general construction.
1.3.11. If C is a closed walk in a simple graph G , then the subgraph consisting of the edges appearing an odd number of times in C is an even graph.
Consider an arbitrary vertex v V (G). Let S be the set of edges incident
to v , and let f (e) be the number of times an edge e is traversed
% by C . Each
time C passes through v it enters and leaves. Therefore, eS f (e) must
be even, since it equals twice the number of times that C visits v . Hence
there must an even number of odd contributions to the sum, which means
there are an even number of edges incident to v that appear an odd number of times in C . Since we can start a closed walk at any of its vertices,
this argument holds for every v V (G).
1.3.12. If every vertex of G has even degree, then G has no cut-edge.
Proof 1 (contradiction). If G has a cut-edge, deleting it leaves two
induced subgraphs whose degree sum is odd. This is impossible, since the
degree sum in every graph is even.
Proof 2 (construction/extremality). For an edge uv , a maximal trail in
G uv starting at u can only end at v , since whenever we reach a vertex
we have use an odd number of edges there. Hence a maximal such trail is
a (u, v)-trail. Every (u, v)-trail is a (u, v)-walk and contains a (u, v)-path.
Hence there is still a (u, v)-path after deletion of uv , so uv is not a cut-edge.
Proof 3 (prior results). Let G be an even graph. By Proposition 1.2.27,
G decomposes into cycles. By the meaning of decomposition, every edge
39
v!
X!
Y!
Construction 2a (inductive). Let G 1 be the graph at the end of Example 1.3.26 (or in Construction 1). This graph is 3-regular with 10 vertices
and cut-edge x y ; note that 10 = 4 1 + 6. From a (2k 1)-regular graph
G k1 with 4k + 2 vertices such that G k1 x y has two components of order
2k + 1, we form G k . Add two vertices for each component of G k1 x y , adjacent to all the vertices of that component. This adds degree two to each old
vertex, gives degree 2k + 1 to each new vertex, and leaves x y as a cut-edge.
The result is a (2k + 1)-regular graph G k of order 4k + 6 with cut-edge x y .
Construction 2b (explicit). Form Hk from K 2k+2 by removing k pairwise disjoint edges and adding one vertex that is adjacent to all vertices
that lost an incident edge. Now Hk has 2k + 2 vertices of degree 2k + 1
and one of degree 2k . Form G k by taking two disjoint copies of Hk and
adding an edge joining the vertices of degree 2k . The graphs produced in
Constructions 2a and 2b are identical.
1.3.13. Meeting on a mountain range. A mountain range is a polygonal
curve from (a, 0) to (b, 0) in the upper half-plane; we start A and B at
opposite endpoints. Let P be a highest peak; A and B will meet there. Let
the segments from P to (a, 0) be x 1 , . . . , xr , and let the segments from P
to (b, 0) be y1 , . . . , ys . We define a graph to describe the positions; when
A is on xi and B is on y j , the corresponding vertex is (i, j). We start at
the vertex (r, s) and must reach (1, 1). We introduce edges for the possible
transitions. We can move from (i, j) to (i, j + 1) if the common endpoint of
yj and y j+1 has height between the heights of the endpoints of x i . Similarly,
(i, j) is adjacent to (i + 1, j) if the common endpoint of x i and xi+1 has
height between the heights of the endpoints of x j . To avoid triviality, we
may assume that r + s > 2.
We prove that (r, s) and (1, 1) are the only vertices of odd degree in
G . This suffices, because every graph has an even number of vertices of
40
odd degree, which implies that (r, s) and (1, 1) are in the same component,
connected by a path.
The possible neighbors of (i, j) are the pairs obtained by changing i
or j by 1. Let X and Y be the intervals of heights attained by x i and y j ,
and let I = X Y . If the high end of I is the high end of exactly one of X
and Y , then exactly one neighboring vertex can be reached by moving past
the end of the corresponding segment. If it is the high end of both, then
usually one or three neighboring vertices can be reached, the latter when
both segments reach peaks at their high ends. However, if (i, j) = (1, 1),
then the high end of both segments is P and there is no neighbor of this
type. Similarly, the low end of I generates one or three neighbors, except
that when (i, j) = (r, s) there is no neighbor of this type.
No neighbor of (i, j) is generated from both the low end and the high
end of I . Since the contributions from the high and low end of I to the
degree of (i, j) are both odd, each degree is even, except for (r, s) and (1, 1),
where exactly one of the contributions is odd.
1.3.14. Every simple graph with at least two vertices has two vertices of
equal degree. The degree of a vertex in an n -vertex simple graph is in
{0, . . . , n 1}. These are n distinct values, so if no two are equal then all
appear. However, a graph cannot have both an isolated vertex and a vertex
adjacent to all others.
This does not hold for graphs allowing loops. In the 2-vertex graph
with one loop edge and one non-loop edge, the vertex degrees are 1 and 3.
This does not hold for loopless graphs. In the 3-vertex loopless graph
with pairs having multiplicity 0, 1, 2, the vertex degrees are 1, 3, 2.
1.3.15. Smallest k -regular graphs. A simple k -regular graph has at least
k + 1 vertices, so K k+1 is the smallest. This is the only isomorphism class of
k -regular graphs with k + 1 vertices. With k + 2 vertices, the complement of
a k -regular graph must be 1-regular. There is one such class when k is even
((k + 2)/2 isolated edges), none when k is odd. (Two graphs are isomorphic
if and only if their complements are isomorphic.)
With k + 3 vertices, the complement is 2-regular. For k 3, there are
distinct choices for such a graph: a (k + 3)-cycle or the disjoint union of a
3-cycle and a k -cycle. Since these two 2-regular graphs are nonisomorphic,
their complements are nonisomorphic k -regular graphs with k + 3 vertices.
1.3.16. For k 2 and g 2, there exists a k -regular graph with girth g .
We use strong induction on g . For g = 2, take the graph consisting of two
vertices and k edges joining them.
For the induction step, consider g > 2. Here we use induction on k .
For k = 2, a cycle of length g suffices. For k > 2, the induction hypothesis
41
provides a (k 1)-regular graph H with girth g . Since "g/2# < g , the global
induction hypothesis also provides a graph G with girth "g/2# that is n(H )regular. Replace each vertex v in G with a copy of H ; each vertex in the
copy of H is made incident to one of the edges incident to v in G .
Each vertex in the resulting graph inherits k 1 incident edges from
H and one from G , so the graph is k -regular. It has cycles of length g in
copies of H . A cycle C in G is confined to a single copy of H or visits more
than one such copy. In the first case, its length is at least g , since H has
girth g . In the second case, the copies of H that C visits correspond to a
cycle in G , so C visits at least "g/2# such copies. For each copy, C must
enter on one edge and then move to another vertex before leaving, since
the copy is entered by only one edge at each vertex. Hence the length of
such a cycle is at least 2 "g/2#.
1.3.17. Deleting a vertex of maximum degree cannot increase the average
degree, but deleting a vertex of minimum degree can reduce the average degree. Deleting any vertex of a nontrivial regular graph reduces the average
degree, which proves the second claim. For the first claim, suppose that G
has n vertices and m edges, and let a and a ! be the average degrees of G
and G x , respectively. Since G x has m d(x) edges and degree sum
2m 2d(x), we have a ! = na2d(x)
(n2)a
< a if d(x) a > 0. Hence deletn1
n1
ing a vertex of maximum degree in nontrivial graph reduces the average
degree and cannot increase it.
42
43
6-cycles. Since each 6-cycle contains 6 edges, we conclude that K n,n has
mn(m 1)(n 1)(m 2)(n 2)/6 6-cycles.
Alternatively, each 6-cycle
! "! " uses three vertices from each partite set,
which we can choose in m3 3n ways. Each such choice of vertices induces
a copy of K 3,3 with 9 edges. There are 3! = 6 ways to pick three disjoint
edges to be omitted by a 6-cycle, so each K 3,3 contains 6 6-cycles.
1.3.22. Odd girth and minimum degree in nonbipartite triangle-free n vertex graphs. Let k = (G), and let l be the minimum length of an odd
cycle in G . Let C be a cycle of length l in G .
a) Every vertex not in V (C) has at most two neighbors in V (C). It
suffices to show that any two neighbors of such a vertex v on C must have
distance 2 on C , since having three neighbors would then require l = 6.
Since G is triangle-free, v does not have consecutive neighbors on C .
If v has neighbors x and y on C separated by distance more than 2 on C ,
then the detour through v can replace the x, y -path of even length on C to
form a shorter odd cycle.
b) n kl/2 (and thus l 2n/k ). Since C is a shortest odd cycle, it has
no chords (it is an induced cycle). Since (G) = k , each vertex of C thus has
at least k 2 edges to vertices outside C . However, each vertex outside C
has at most two neighbors on C . Letting m be the number of edges from
V (C) to V (G) V (C), we thus have l(k 2) m 2(n l). Simplifying
the inequality yields n kl/2.
c) The inequality of part (b) is sharp when k is even. Form G from the
cycle Cl by replacing each vertex of Cl with an independent set of size k/2
such that two vertices are adjacent if and only if the vertices they replaced
were adjacent. Each vertex is now adjacent to the vertices arising from the
two neighboring classes, so G is k -regular and has lk/2 vertices. Deleting
the copies of any one vertex of Cl leaves a bipartite graph, since the partite
sets can be labeled alternately around the classes arising from the rest of
Cl . Hence every odd cycle uses a copy of each vertex of C l and has length
at least l , and taking one vertex from each class forms such a cycle.
1.3.23. Equivalent definitions of the k -dimensional cube. In the direct definition of Q k , the vertices are the binary k -tuples, with edges consisting of
pairs differing in one place. The inductive definition gives the same graph.
For k = 0 both definitions specify K 1 . For the induction step, suppose k 1.
The inductive definition uses two copies of Q k1 , which by the induction
hypothesis is the 1-place difference graph of the binary (k 1)-tuples. If
we append 0 to the (k 1)-tuples in one copy of Q k1 and 1 to the (k 1)tuples in the other copy, then within each set we still have edges between
the labels differing in exactly one place. The inductive construction now
adds edges consisting of corresponding vertices in the two copies. This is
44
also what the direction definition does, since k -tuples chosen from the two
copies differ in the last position and therefore differ in exactly one position
if and only if they are the same in all other positions.
e(Q k ) = k 2k1 . By the inductive definition, e(Q k ) = 2e(Q k1 ) + 2k1 for
k 1, with e(Q 0 ) = 0. Thus the inductive step for a proof of the formula is
e(Q k ) = 2(k 1)2k2 + 2k1 = k2k1 .
1.3.24. K 2,3 is the smallest simple bipartite graph that is not a subgraph
of the k -dimensional cube for any k . Suppose the vectors x, y, a, b, c are the
vertices of a copy of K 2,3 in Q k . Any one of a, b, c differs from x in exactly one
coordinate and from y in another (it cant be the same coordinate, because
then x = y ). This implies that x and y differ in two coordinate i, j . Paths
from x to y in two steps can be formed by changing i and then j or changing
j and then i ; these are the only ways. In a cube two vertices have at
most two common neighbors. Hence K 2,3 is forbidden. Any bipartite graph
with fewer vertices or edges is contained in K 2,3 e or K 1,5 , but K 2,3 e
is a subgraph of Q 3 , and K 1,5 is a subgraph of Q 5 , so K 2,3 is the smallest
forbidden subgraph.
45
The graph is bipartite and has no odd cycle. The 1s in two vertices of
weight k must be covered by the 1s of any common neighbor of weight k + 1.
Since the union of distinct k -sets has size at least k + 1, there can only be
one common neighbor, and hence G has no 4-cycle. On the other hand, G
does have a 6-cycle. Given any arbitary fixed vector of weight k 1 for the
last 2k 2 positions, we can form a cycle of length six by using 110, 100,
101, 001, 011, 010 successively in the first three positions.
1.3.28. Alternative description of even-dimensional hypercubes. The simple graph Q "k has vertex set {0, 1}k , with u v if and only if u and v agree
46
in exactly one coordinate. Let the odd vertices be the vertices whose name
has an odd number of 1s; the rest are even vertices.
When k is even, Q "k
= Q k . To show this, rename all odd vertices by
changing 1s into 0s and 0s into 1s. Since k is even, the resulting labels
are still odd. Since k is even, every edge in Q "k joins an even vertex to
an odd vertex. Under the new naming, it joins the even vertex to an odd
vertex that differs from it in one coordinate. Hence the adjacency relation
becomes precisely the adjacency relation of Q k .
$ Q k , because Q "k contains an odd cycle and hence is
When k is odd, Q "k
=
not bipartite. Starting from one vertex, form a closed walk by successively
following k edges where each coordinate is the coordinate of agreement
along exactly one of these edges. Hence each coordinate changes exactly
k 1 times and therefore ends with the value it had at the start. Thus this
is a closed walk of odd length and contains an odd cycle.
1.3.29. Automorphisms of Q k .
a) A subgraph H of Q k is isomorphic to Q l if and only if it is the subgraph induced by a set of vertices agreeing in some set of k l coordinates.
Let f be an isomorphism from H to Q l , and let v be the vertex mapped to
the vertex 0 of Q l whose coordinates are all 0. Let u 1 , . . . , u l be the neighbors of v in H mapped to neighbors of 0 in Q l by f . Each u i differs from v
in one coordinate; let S be the set of l coordinates where these vertices differ from v . It suffices to show that vertices of H differ from v only on the
coordinates of S . This is immediate for l 1.
For l 2, we prove that each vertex mapped by f to a vertex of Q l
having weight j differs from v in j positions of S , by induction on j . Let
x be a vertex mapped to a vertex of weight j in Q l . For j 1, we have
already argued that x differs from v in j positions of S . For j 2, let y
and z be two neighbors of x whose images under f have weight j 1 in
Q l . By the induction hypothesis, y and z differ from v in j positions of S .
Since f (y) and f (z) differ in two places, they have two common neighbors
in Q l , which are x and another vertex w . Since w has weight j 2, the
induction hypothesis yields that w differs from v in j 1 positions of S .
Since the images of x, y, z, w induce a 4-cycle in Q l , also x, y, z, w induce
a 4-cycle in H . The only 4-cycle in Q k that contains all of y, z, w adds the
vertex that differs from v in the j 2 positions of S where w differs, plus
the two positions where y and z differ from w . This completes the proof
that x has the desired property.
b) The k -dimensional cube Q k has exactly 2k k ! automorphisms. (Part
(a) is unnecessary.) Form automorphisms of Q k by choosing a subset of
the k coordinates in which to complement 0 and 1 and, independently, a
permutation of the k coordinates. There are 2k k ! such automorphisms.
47
We prove that every automorphism has this form. Let 0 be the all-0
vertex. Let f be the inverse of an automorphism, and let v be the vertex
mapped to 0 by f . The neighbors of v must be mapped to the neighbors of
0. If these choices completely determine f , then f complements the coordinates where v is nonzero, and the correspondence between the neighbors
of 0 and the neighbors of v determines the permutation of the coordinates
that expresses f as one of the maps listed above.
Suppose that x differs from v in coordinates r 1 , . . . , r j . Let u 1 , . . . , u j be
the neighbors of v differing from v in these coordinates. We prove that f (x)
is the k -tuple of weight j having 1 in the coordinates where f (u 1 ), . . . , f (u j )
have 1. We use induction on j .
For j 1, the claim follows by the definition of u 1 , . . . , u j . For j 2,
let y and z be two neighbors of x that differ from v in j 1 coordinates.
Let w be the common neighbor of y and z that differs from v in j 2 coordinates. By the induction hypothesis, f (y) and f (z) have weight j 1 (in
the appropriate positions), and f (w) has weight j 1. Since f (x) must be
the other common neighbor of f (y) and f (z), it has weight j , with 1s in the
desired positions.
1.3.30. The Petersen graph has twelve 5-cycles. Let G be the Petersen
graph. We show first that each edge of G appears in exactly four 5-cycles.
For each edge e = x y in G , there are two other edges incident to x and two
others incident to y . Since G has no 3-cycles, we can thus extend x y at both
ends to form a 4-vertex path in four ways. Since G has no 4-cycle, the endpoints of each such path are nonadjacent. By Proposition 1.1.38, there is
exactly one vertex to add to such a path to complete a 5-cycle. Thus e is in
exactly four 5-cycles.
When we sum this count over the 15 edges of G , we have counted 60
5-cycles. However, each 5-cycle has been counted five timesonce for each
of its edges. Thus the total number of 5-cycles in G is 60/5 = 12.
48
k).
#
# !ni " 2 !n "
n i = n , then
2 . Again consider the edges of K n , and
b) If
2
partition the vertices into sets with n i being the size of the i th set. The left
side of the inequality counts the edges in K n having both ends in the same
Si , which is at most all of E(K n ).
n1
1.3.32. For n 1, there are 2( 2 ) simple even graphs with a fixed vertex set of size n . Let A be the set of simple even graphs with vertex set
n1
v1 , . . . , vn . Since 2( 2 ) is the size of the set B of simple graphs with vertex
set v1 , . . . , vn1 , we establish a bijection from A to B .
Given a graph in A, we obtain a graph in B by deleting vn . To show
that each graph in B arises exactly once, consider a graph G B . We form
a new graph G " by adding a vertex vn and making it adjacent to each vertex
with odd degree in G , as illustrated below.
The vertices with odd degree in G have even degree in G " . Also, vn
itself has even degree because the number of vertices of odd degree in G
is even. Thus G " A. Furthermore, G is the graph obtained from G " by
deleting vn , and every simple even graph in which deleting vn yields G must
have vn adjacent to the same vertices as in G " .
Since there is a bijection from A to B , the two sets have the same size.
vn
G"
49
! "
! "
but each pair in [k]
must have exactly k 2 neighbors in [k]
. For k =
2
2
! "
5, this implies that N (x) induces the 3-regular disjointness graph of [5]
,
2
which is the Petersen graph. Since the Petersen graph has girth 5 and
diameter 2, each intersecting pair has exactly one common neighbor in
N (x) in addition to its one common neighbor in N (x), so this graph has the
desired properties.
Numerical conditions eliminate k 3 (mod 4), because G would be
regular of odd degree with an odd number of vertices. There are stronger
necessary conditions. After k = 5, the next possibility is k = 10, then 26,
37, 82, etc. A realization for k = 10 is known to exist, but in general the
set of realizable values is not known.
1.3.34. If G is a kite-free simple n -vertex graph such that every pair of
nonadjacent vertices has exactly two common neighbors, then G is regular.
Since nonadjacent vertices have common neighbors, G is connected. Hence
it suffices to prove that adjacent vertices x and y have the same degree. To
prove this, we establish a bijection from A to B , where A = N (x) N (y)
and B = N (y) N (x).
Consider u A. Since u ! y , there exists v N (u) N (y) with v %= x .
Since G is kite-free, v ! x , so v B . Since x and v have common neighbors
y and u , the vertex v cannot be generated in this way from another vertex
of A. Hence we have defined an injection from A to B . Interchanging the
roles of y and x yields an injection from B to A. Since these sets are finite,
the injections are bijections, and d(x) = d(y).
50
1.3.36. The unique reconstruction of the graph with vertex-deleted subgraphs below is the kite.
Proof 1. A vertex added to the first triangle may be joined to 0,1,2,
or 3 of its vertices. We eliminate 0 and 1 because no vertex-deleted subgraph has an isolated vertex. We eliminate 3 because every vertex-deleted
subgraph of K 4 is a triangle. Joining it to 2 yields the kite.
51
Among all components of all graphs in the deck, let M be one with
maximum order. Since every component H of a potential reconstruction
G appears as a component of some G v , M cannot belong to any larger
component of G . Hence M is a component of G . Let L be a fixed connected
subgraph of M obtained by deleting a leaf u of some spanning tree of M .
Then L is a component of G u . We want to reconstruct G by substituting
M for L in G u ; we must identify G u . There may be several isomorphic
copies of G u .
As in the disconnected graph G shown above, M may appear as a component of every vds G v . However, since M cannot be created by a vertex
deletion, a vds with the fewest copies of M must arise by deleting a vertex
of M . Among these, we seek a subgraph with the most copies of L as components, because in addition to occurrences of L as a component of G , we
obtain an additional copy if and only if the deleted vertex of M can play
the role of u . This identifies G u , and we obtain G by replacing one of its
components isomorphic to L with a component isomorphic to M .
a)a
.
This
bound
2
is achieved by the graph consisting of a copy H of K na , an independent set
S of size a , and edges joining each vertex of H to each vertex of S .
Proof 2. Each vertex of an independent set of size a#
has degree at most
n a . Each other vertex has degree at most n 1. Thus d(v) a(n a) +
(n a)(n 1). By the Degree-Sum Formula, e(G) (n a)(n 1 + a)/2.
This formula equals those above and is achieved by the same graph, since
this graph achieves the bound for each vertex degree.
b)" The maximum size of an n -vertex simple graph with k components is
!nk+1
. The graph consisting of K nk+1 plus k 1 isolated vertices has k
2
!
"
components and nk+1
edges. We prove that other n -vertex graphs with k
2
components dont have maximum size. Let G be such a graph.
If G has a component that is not complete, then adding edges to make
it complete does not change the number of components. Hence we may
assume that every component is complete.
If G has components with r and s vertices, where r s > 1, then we
move one vertex from the s -clique to the r -clique. This deletes s 1 edges
52
and creates r edges, all incident to the moved vertex. The other edges
remain the same, so we gain r s + 1 edges, which is positive.
Thus the number of edges is maximized only when every component is
a complete graph and only one component has more than one vertex.
c) The
number of edges in a disconnected simple n -vertex
! maximum
"
graph is n1
,
with
equality
only for K 1 + K n1 .
2
Proof
1
(using
part
(b)).
The maximum over graphs with k compo!
"
nents is nk+1
,
which
decreases
as k increases. For disconnected graphs,
2
! "
k 2. We maximize the number of edges when k = 2, obtaining n1
.
2
Proof 2 (direct argument). Given a disconnected simple graph G , let
S be the vertex set of! one
" component of G , and let t = |S|. Since no edges
join S and S , e(G) 2n t (n t). This bound is weakest when t (n t) is
smallest,
! "which for 1 t! n" 1 happens when t {1, n 1}. Thus always
e(G) 2n 1(n 1) = n1
, and equality holds when G = K 1 + K n1 .
2
Proof
3
(induction
on
n
). When n = 2, the only simple graph !with
!"
"
e(G) > 12 = 1 is K 2 , which is connected. For n > 2, suppose e(G) > n1
.
2
If !(G) = n 1, then G is connected.
Otherwise,
we
may
select
v
with
! "
! "
d(v) n 2. Then e(G v) > n1
n + 2 = n2
. By the induction
2
!n1" 2
hypothesis, G v is connected. Since e(G) > 2 and G is simple, we have
d(v) > 0, so there is an edge from v to G v , and G is also connected.
then G is connected,
Proof 4 (complementation).
! " If G is disconnected,
! "
so e(G) n 1 and e(G) 2n (n 1) = n1
.
In
fact,
G must contain
2
a spanning complete bipartite subgraph, which is as small as n 1 edges
only when G = K 1,n1 and G = K 1 + K n1 .
1.3.41. Every n -vertex simple graph with maximum degree %n/2& and minimum degree 'n/2( 1 is connected. Let x be a vertex of maximum degree. It
suffices to show that every vertex not adjacent to x has a common neighbor
with x . Choose y
/ N (x). We have |N (x)| = %n/2& and |N (y)| 'n/2( 1.
Since y ! x , we have N (x), N (y) V (G) {x, y}. Thus
53
S , since such vertices differ from each other in at most two places. Thus
only two disjoint closed neighborhoods can be found in Q 4 .
1.3.43. Every simple graph has a vertex whose neighbors have average degree as large as the overall average
! degree. Let t (w)
! be the!average degree of
the neighbors of w . In the sum wV (G) t (w) = wV (G) yN (w) d(y)/d(w),
we have the terms d(u)/d(v) and d(v)/d(u) for each edge uv . Since
x/y + y/x 2 whenever x, y are positive real numbers (this is!equivalent
y)2 0), each such contribution is at least 2. Hence
t (w)
! to (x d(u)
d(v)
+
2
e(G)
.
Hence
the
average
of
the
neighborhood
avuvE(G) d(v)
d(u)
erage degrees is at least the average degree, and the pigeonhole principle
yields the desired vertex.
It is possible that every average neighborhood degree exceeds the average degree. Let G be the graph with 2n vertices formed by adding a
between a complete graph and an independent set. Since G has
"matching
#
n
+
n
edges
and 2n vertices, G has average degree (n + 1)/2. For each
2
vertex of the n -clique, the neighborhood average degree is n 1 + 1/n . For
each leaf, the neighborhood average degree is n .
1.3.44. Subgraphs with large minimum degree. Let G be a loopless graph
with average degree a .
a) If x V (G), then G " = G x has average degree at least a if and only
if d(x) a/2. Let a " be the average degree of G " , and let n be the order of
G . Deleting x reduces the degree sum by 2d(x), so (n 1)a " = na 2d(x).
Hence (n 1)(a " a) = a 2d(x). For n > 1, this implies that a " a if and
only if d(x) a/2.
Alternative presentation. The average degree of G is 2e(G)/n(G). Since
G " has e(G) d(x) edges, the average degree is at least a if and only if
2[e(G)d(x)]
a . Since e(G) = n(G)a/2, we can rewrite this as n(G)a
n(G)1
2d(x) = 2e(G) 2d(x) an(G) a . By canceling n(G)a , we find that the
original inequality is equivalent to d(x) a/2.
b) If a > 0, then G has a subgraph with minimum degree greater than
a/2. Iteratively delete vertices with degree at most half the current average degree, until no such vertex exists. By part (a), the average degree
never decreases. Since G is finite, the procedure must terminate. It ends
only by finding a subgraph where every vertex has degree greater than a/2.
c) The result of part (b) is best possible. To prove that no fraction of
a larger than 12 a can be guaranteed, let G n be an n -vertex tree. We have
a(G n ) = 2(n 1)/n = 2 2/n , but subgraphs of G n have minimum degree
at most 1. Given > 12 , we can choose n large enough so that 1 a(G n ).
1.3.45. Bipartite subgraphs of the Petersen graph.
a) Every edge of the Petersen graph is in four 5-cycles. In every 5-cycle
through an edge e, the edge e is the middle edge of a 4-vertex path. Such
54
a path can be obtained in four ways, since each edge extends two ways
at each endpoint. The neighbors at each endpoint of e are distinct and
nonadjacent, since the girth is 5.
Since the endpoints of each such P4 are nonadjacent, they have exactly one common neighbor. Thus each P4 yields one 5-cycle, and each
5-cycle through e arises from such a P4 , so there are exactly four 5-cycles
containing each edge.
b) The Petersen graph has twelve 5-cycles. Since there are 15 edges,
summing the number of 5-cycles through each edge yields 60. Since each
5-cycle is counted five times in this total, the number of 5-cycles is 12.
c) The largest bipartite subgraph has twelve edges.
Proof 1 (breaking odd cycles). Each edge is in four 5-cycles, so we
must delete at least 12/4 edges to break all 5-cycles. Hence we must delete
at least three edges to have a bipartite subgraph. The illustration shows
that deleting three is enough; the Petersen graph has a bipartite subgraph
with 12 edges (see also the cover of the text).
A
B
B
A
A
B B
A
A
Proof 2 (study of bipartite subgraphs). The Petersen graph G has
an independent set of size 4, consisting of the vertices {ab, ac, ad, ae} in
the structural description. The 12 edges from these four vertices go to the
other six vertices, so this is a bipartite subgraph with 12 edges.
Let X and Y be the partite sets of a bipartite subgraph H . If |X |
4, then e(H ) 12, with equality only when X is an independent 4-set
in G . Hence we need only consider the case |X | = |Y | = 5. To obtain
e(G) > 10, some vertex x X must have three neighbors in Y . The two
nonneighbors of x in Y have common neighbors with x , and these must lie
in N (x), which is contained in Y . Hence e(G [Y ]) 2. Interchanging X and
Y in the argument shows that also e(G [ X ]) 2. Hence e(H ) 11.
1.3.46. When the algorithm of Theorem 1.4.2 is applied to a bipartite graph,
it need not find the bipartite subgraph with the most edges. For the bipartite graph below, the algorithm may reach the partition between the upper
vertices and lower vertices.
55
This bipartite subgraph with eight edges has more than half of the
edges at each vertex, and no further changes are made. However, the
bipartite subgraph with the most edges is the full graph.
1.3.47. Every nontrivial loopless graph G has a bipartite subgraph containing more than half its edges. We use induction on n(G). If n(G) = 2,
then G consists of copies of a single edge and is bipartite. For n(G) > 2,
choose v V (G) that is not incident to all of E(G) (at most two vertices can
be incident to all of E(G)). Thus e(G v) > 0. By the induction hypothesis,
G v has a bipartite subgraph H containing more than e(G)/2 edges.
Let X, Y be a bipartition of H . If X contains at least half of N G (v),
then add v to Y ; otherwise add v to X . The augmented partition captures
a bipartite subgraph of G having more than half of E(G v) and at least
half of the remaining edges, so it has more than half of E(G).
Comment. The statement can also be proved without induction. By
Theorem 1.3.19, G has a bipartite subgraph H with at least e(G)/2 edges.
By the proof of Theorem 1.3.19, equality holds only if d H (v) = dG (v)/2 for
every v V (G). Given an edge uv , each of u and v has exactly half its neighbors in its own partite set. Switching both to the opposite set will capture
those edges while retaining the edge uv , so the new bipartite subgraph has
more edges.
1.3.48. No fraction of the edges larger than 1/2 can be guaranteed for the
bipartite subgraph. If G n is the complete graph K 2n , then e(G n ) =
!largest
"
2n
=
n(
2n 1), and the largest bipartite subgraph is K n,n , which has n 2
2
2
edges. Hence limn f (G n )/e(G n ) = limn 2nn2 n = 12 . For large enough
n , the fraction of the edges in the largest bipartite subgraph is arbitrarily
close to 1/2. (In fact, in every graph the largest bipartite subgraph has
more than half the edges.)
1.3.49. Every loopless graph G has a spanning k -partite subgraph H such
that e(H ) (1 1/k)e(G).
Proof 1 (local change). Begin with an arbitrary partition of V (G) into
k parts V1 , . . . , Vk , and consider the k -partite subgraph H containing all
edges of G consisting of two vertices from distinct parts. Given a partition
of V (G), let V (x) denote the part containing x . If in G some vertex x has
more neighbors in Vj than in some other part, then shifting x to the other
part increases the number of edges captured by the k -partite subgraph.
Since G has finitely many edges, this shifting process must terminate.
It terminates when for each #
x V (G) the number |N (x) Vi | is minimized
by Vi = V (x). Then dG (x) = i |NG (x) Vi | k|N G (x) V (x)|. We conclude
that |N G (x) V (x)| (1/k)dG (x), and hence d H (x) (1 1/k)dG (x) for all
x V (G). By the degree-sum formula, e(H ) (1 1/k)e(G).
56
1.3.51. Let G be
# a simple n -vertex graph.
e(Gv)
(G)
. If we count up all the edges in all the subgraphs
a) e(G) = vV n2
obtained by deleting one vertex, then each edge of G is counted exactly n 2
times, because it shows up in the n 2 subgraphs obtained by deleting a
vertex other than its endpoints.
b) If n 4 and G has more than n 2 /4 edges, then G has a vertex whose
deletion leaves a graph with more than (n 1)2 /4 edges. Since G has more
than n 2 /4 edges and e(G) is an integer, we have e(G) (n 2 + 4)/4 when n
is even and e(G) (n 2 + 3)/4 when n is odd (since (2k + 1)2 = 4k 2 + 4k + 1,
every square of an odd number is one more than a multiple of 4). Thus
2
always we have e(G) (n#
+ 3)/4.
(n 2 + 3)/4. In the sum we have n
By part (a), we have vV (G) e(Gv)
n2
terms. Since the largest number in a set is at least the average, there is a
2
vertex v such that e(Gv)
1n n 4+3 . We rewrite this as
n2
e(G v)
(n 2 + 3)(n 2)
n 3 2n 2 + 3n 6
n 2 2n + 1 2n 6
+
=
=
4n
4n
4
4n
57
When n 4, the last term is positive, and we obtain the strict inequality
e(G v) > (n 1)2 /4.
c) Inductive proof that G contains a triangle if e(G) > n 2 /4. We use
induction on n . When n 3, they only simple graph with more than n 2 /4
edges is when n = 3 and G = K 3 , which indeed contains a triangle. For
the induction step, consider n 4, and let G be an n -vertex simple graph
with more than n 2 /4 vertices. By part (b), G has a subgraph G v with
n 1 vertices and more than (n 1)2 /4 edges. By the induction hypothesis,
G v therefore contains a triangle. This triangle appears also in G .
1.3.53. The bridge club with 14 members (no game can be played if two of
the four people table have previously been partners): If each member has
played with four others and then six additional games have been played,
then the arrival of a new member allows a game to be played. We show that
the new player yields a set of four people among which no two have been
partners. This is true if and only if the previous games must leave three
people (in the original 14) among which no two have been partners.
The graph of pairs who have NOT been partners initially is K 14 . For
each game played, two edges are lost from this graph. At the breakpoint in
the session, each vertex has lost four incident edges, so 28 edges have been
deleted. In the remaining six games, 12 more edges are deleted. Hence
40 edges have been deleted. Since e(K 14 ) = 91, there remain 51 edges for
pairs that have not yet been partners.
By Mantels Theorem (Theorem 1.3.23), the maximum
!
" number of edges
in a simple 14-vertex graph with no triangle is 142 /4 . Since 51 > 49,
the graph of remaining edges has a triangle. Thus, when the 15th person
arrives, there will be four people of whom none have partnered each other.
58
counts 1 for each pair of incident edges. In the table below, we group these
contributions by how many edges the corresponding triple induces in G .
#n $
% #di $
t (G)
in G
(n 2)e
3
2
1
0
0
1
3 edges
2 edges
1 edge
0 edges
1
1
1
1
3
2
1
0
3
1
0
0
b) t (G) n(n 1)(n 5)/24. Begin with the formula for k 3 (G) + k3 (G)
from part (a). Using the convexity of quadratic functions, we get a lower
bound for the sum on the right by# replacing
the vertex
$
# $degrees by the average degree 2e/n . The bound is 3n (n 2)e + n 2e/n
, which reduces to
2
#n $
#n $
#$
2e( 2 e)/n . As a function of e, this is minimized when e = 12 2n . This
3
substitution and algebraic simplification produce t (G) n(n 1)(n 5)/24.
Comment. The proof of part (b) uses two minimizations. These imply
that equality
can hold only for a regular graph (di = 2e/n for all i ) with
#$
e = 12 2n . There is such a regular graph if and only if n is odd and (n 1)/2
is even. Thus we need n = 4k + 1 and G is 2k -regular.
1.3.55. Maximum size with no induced P4 . a) If G is a simple connected
graph and G is disconnected, then e(G) !(G)2 , with equality only for
K !(G),!(G) . Since G is disconnected,
!(G) n(G)/2, with equality only if
%
G = K !(G),!(G) . Thus e(G) =
di /2 n(G)!(G)/2 !(G)2 . As observed,
equality when G is disconnected requires G = K !(G),!(G) .
b) If G is a simple connected graph with maximum degree D and no
induced subgraph isomorphic to P4 , then e(G) D 2 . It suffices by part (a)
to prove that G is disconnected when G is connected and P4 -free. We use
induction on n(G) for n(G) 2; it is immediate when n(G) = 2. For the
induction step, let v be a non-cut-vertex of G . The graph G ' = G v is also
P4 -free, so its complement is disconnected, by the induction hypothesis.
Thus V (G) v has a vertex partition X, Y such that all of X is adjacent to
all of Y in G . Since G is connected, v has a neighbor z X Y ; we may
assume be symmetry that z Y . If G is connected, then G has a v, z -path.
Let y be the vertex before z on this path; note that y Y . Also G connected
requires x X such that vx E(G). Now {v, z, x, y} induces P4 in G .
%
1.3.56. Inductive proof that for
di even there is a multigraph with vertex
degrees d1 , . . . , dn .
%
%
Proof 1 (induction on
di ). If
di = 0, then all di are 0, and the
n -vertex %
graph with no edges has degree list d . For the induction step,
suppose
di > 0. If only one di is nonzero, then it must be even, and the
59
60
1.3.59. The list d = (d1 , . . . , d2k ) with d2i = d2i1 = i for 1 i k is graphic.
This is the degree list for the bipartite graph with vertices x 1 , . . . , x k and
y1 , . . . , yk defined by xr ys if and only if r + s > k . Since the neighborhood
of xr is {yk , yk1 , . . . , ykr+1 }, the degree of xr is r . Thus the graph has two
vertices of each degree from 1 to k .
1.3.60. Necessary and sufficient conditions for a list d to be graphic when d
consists of k copies of a and n k copies of b, with a b 0. Since the degree
sum must be even, the quantity ka + (n k)b must be even. In addition,
the inequality ka k(k 1) + (n k) min{k, b} must hold, since each vertex
with degree b has at most min{k, b} incident edges whose other endpoint
has degree a . We construct graphs with the desired degree sequence when
these conditions hold. Note that the inequality implies a n 1.
Case 1: b k and a n k . Begin with K k,nk , having partite sets
X of size k and Y of size n k . If k(a n + k) and (n k)(b k) are even,
then add an (a n + k)-regular graph on X and a (b k)-regular graph on
Y . To show that this is possible, note first that 0 a n + k k 1 and
0 b k a k n k 1. Also, when pq is even, a q -regular graph on
p vertices in a circle can be constructed by making each vertex adjacent to
the 'q/2( nearest vertices in each direction and also to the opposite vertex
if q is odd (since then p is even).
Note that k(a n +k) and (n k)(b k) have the same parity, since their
difference ak (n k)b differs from the given even number ka + (n k)b by
an even amount. If they are both odd, then we delete one edge from K k,nk ,
and now one vertex in the subgraph on X should have degree a n + k + 1
and one in the subgraph on Y should have degree b k + 1. When pq is odd,
such a graph on vertices v0 , . . . , v p1 in a circle (q -regular except for one
vertex of degree q + 1) can be constructed by making each vertex adjacent
to the (q 1)/2 nearest vertices in each direction and then adding the edges
{vi vi+( p1)/2 : 0 i ( p 1)/2. Note that all vertices are incident to one of
the added edges, except that v( p1)/2 is incident to two of them.
Case 2: k 1 a < n k . Begin by placing a complete graph on a set
S of k vertices. These vertices now have degree k 1 and will become the
vertices of degree a , which is okay since a b. Put a set T of n k additional
vertices in a circle. For each vertex in S , add a k + 1 consecutive neighbors
in T , starting the next set immediately after the previous set ends. Since
a n 1, each vertex in S is assigned a k + 1 distinct neighbors in T .
Since k(a k + 1) (n k)b and the edges are distributed nearly equally
to vertices of T , there is room to add these edges.
For the subgraph induced by T , we need a graph with n k vertices
and [(n k)b k(a k + 1)]/2 edges and degrees differing by at most 1.
The desired number of edges is integral, since ka + (n k)b is even, and it
61
62
has its other end counted among the degrees of the other vertices, so the
inequality holds.
Sufficiency. Specify vertices v1 , . . . , vn and construct a graph so that
d(vi ) = di . Induction on n has problems: It is not enough to make
dn edges join v1 and vn degrees and apply the induction hypothesis to
(d1 dn ), d2 , . . . , dn1 . Although d1 dn d2 + + dn1 holds, d1 dn
may not be the largest of these numbers.
#
#
Proof 1 (induction on
di ). #
The basis step is
di = 0, realized by
an
independent
set.
Suppose
that
d
>
0;
we
consider
two cases. If d1 =
i
#n
d
,
then
the
desired
graph
consists
of
d
edges
from
v1 to v2 , . . . , vn . If
i
1
i=2 #
n
d1 < i=2
di , then the difference is at least 2, because the total degree sum
is even. Also, at least two of the values after d1 are nonzero, since d1 is the
largest. Thus we can subtract one from each of the last two nonzero values
to obtain a list d ! to which we can apply the induction hypothesis (it has
even sum, and the largest value is at most the sum of the others. To the
resulting G ! , we add one edge joining the two vertices whose
are
#degrees
n
the reduced values. (This can also be viewed as induction on ( i=2
di )d1 .)
#
#
Proof 2 (induction on
di ). Basis as above. Consider
di > 0. If
d1 > d2 , then we can subtract 1 from d1 and from d2 to obtain d ! with smaller
sum. Still d1 1 is a largest value in d ! and is bounded by the sum of the
other values. If d1 = d2 , then we subtract 1 from each of the two smallest
values to form #
d ! . If these are d1 and d2 , then d ! has the desired properties,
n
and otherwise i=2
di exceeds d1 by at least 2, and again d ! has the desired
properties. In each case, we can apply the induction hypothesis to d ! and
complete the proof as in Proof 1.
Proof 3 (local change). Every nonnegative integer sequence with even
sum is realizable when loops and multiple edges are allowed. Given such a
realization with a loop, we change it to reduce the number of loops without
changing vertex degrees. Eliminating them all produces the desired realization. If we have loops at distinct vertices u and v , then we replace two
loops with two copies of the edge uv . If we have loops only at v and have an
edge x y between two vertices other than v , then we replace one loop and
one copy of x y by edges vx and vy . Such an edge x y must exist because the
sum of the degrees of the other vertices is as large as the degree of v .
1.3.64. A simple graph with degree sequence d1 d2 dn is connected
if d j j for all j such that j n 1 dn . Let V (G) = {v1 , . . . , vn }, with
d(vi ) = di , and let H be the component of G containing vn ; note that H
has at least 1 + dn vertices. If G is not connected, then G has another
component H ! . Let j be the number of vertices in H ! . Since H has at least
1 + dn vertices, we have j n 1 dn . By the hypothesis, d j j . Since H !
has j vertices, its maximum degree is at least d j . Since d j j , there are at
63
and
64
y
s
v u
w
y
z
t
v
w
y
z
t
v
w
z
w