Chapter 1

Graphs and Digraphs

[94/98%]
Show
LaTeX
Problem 1.1

Draw the diagram of each of the following graphs G=(V,E)G=(V, E) :

?
(a)

V={1,2,3,4,5}V=\left\{ 1,2,3,4,5\right\} and E={{1,2},{1,4},{1,5},{2,3},{3,4},{4,4}}E=\left\{ \left\{ 1,2\right\} ,\left\{ 1,4\right\} ,\left\{ 1,5\right\} ,\left\{ 2,3\right\} ,\left\{ 3,4\right\} ,\left\{ 4,4\right\} \right\}

(b)

V={1,2,3,4,5,6}V=\left\{ 1,2,3,4,5,6\right\} and E={{1,2},{1,4},{1,4},{2,3},{2,5},{3,5}}E=\left\{ \left\{ 1,2\right\} ,\left\{ 1,4\right\} ,\left\{ 1,4\right\} ,\left\{ 2,3\right\} ,\left\{ 2,5\right\} ,\left\{ 3,5\right\} \right\}

Problem 1.2

Draw the diagram of each of the following graphs G=(V,E)G=(V, E) :

?
(a)

V={1,2,3,4,5,6}V=\left\{ 1,2,3,4,5,6\right\} and E={{1,2},{1,3},{1,4},{2,5},{2,6},{3,5},{3,6},{4,5},{4,6}}E=\left\{ \left\{ 1,2\right\} ,\left\{ 1,3\right\} ,\left\{ 1,4\right\} ,\left\{ 2,5\right\} ,\left\{ 2,6\right\} ,\left\{ 3,5\right\} ,\left\{ 3,6\right\} ,\left\{ 4,5\right\} , \left\{ 4,6\right\} \right\}.

(b)

V={1,2,3,4,5}V=\left\{ 1,2,3,4,5\right\} and E={{1,2},{1,4},{2,3},{2,4},{2,5},{3,4},{3,5}}E=\left\{ \left\{ 1,2\right\} ,\left\{ 1,4\right\} ,\left\{ 2,3\right\} ,\left\{ 2,4\right\} ,\left\{ 2,5\right\} ,\left\{ 3,4\right\} ,\left\{ 3,5\right\} \right\}

Problem 1.3

Identify the simple graphs in the previous two problems. If a simple graph is identified, determine whether it is (i) a bipartite graph, (ii) a complete graph, (iii) a complete bipartite graph, or (iv) a complete nonbipartite graph.

?
Problem 1.4

The complement of a simple graph G=(V,E)G=(V, E) is the simple graph Gˉ=(V,F)\bar{G}=(V, F) in which there is an edge between two vertices ν\nu and ww if and only if there is no edge between ν\nu and ww in GG. Obviously, the complement of the complement of Gˉ\bar{G} is GG. Draw the diagrams of the complements of the simple graphs identified in Problems 1.1 and 1.2.

?
Problem 1.5

Show that the complement of a bipartite graph need not be a bipartite graph.

?
Problem 1.6

Draw the diagram of an orientation of the simple nonbipartite graph that is not complete identified from Problems 1.1 and 1.2.

?
Problem 1.7

Any orientation of the complete graph with vertex set {1,2,…,n}\left\{ 1,2, \ldots , n\right\} is a tournament, and it is a transitive tournament if there is an arc from ii to kk whenever there is an arc from ii to jj and an arc from jj to kk for all choices of i,ji, j, and kk. Construct both a transitive tournament with four vertices and one that is not transitive.

?
Problem 1.8

Show that every simple graph of order nn is isomorphic to a subgraph of the complete graph with nn vertices.

?
Problem 1.9

If two graphs GG and G′G^{\prime } are isomorphic, the order of GG is equal to the order of G′G^{\prime } and the size of GG is equal to the size of G′G^{\prime }.

?
Problem 1.10

Show that two graphs need not be isomorphic even when they both have the same order and same size.

?
Problem 1.11

Show that two simple graphs are isomorphic if and only if their complements are isomorphic.

?
Problem 1.12

Determine whether the three graphs given in Fig. 1-10 are isomorphic.

Fig. 1-10Fig. 1-10

?
Problem 1.13

Suppose N(n,k)N(n, k) is the number of nonisomorphic simple graphs with nn vertices and kk edges. Find N(4,3)N(4,3).

?
Problem 1.14

Find all nonisomorphic simple graphs of order 4.

?
Problem 1.15

A simple graph that is isomorphic to its complement is called a self-complementary graph. Find a selfcomplementary graph of order 4.

?
Problem 1.16

Find two self-complementary graphs of order 5.

?
Problem 1.17

Find a vertex-induced bipartite subgraph of the graph in Fig. 1-6(a).

?
Problem 1.18

A set II of vertices in a simple graph G=(V,E)G=(V, E) is an independent set (also known as an internally stable set) in GG if no two vertices in II are adjacent. A set KK of vertices in GG is called a vertex cover if every edge in the graph is incident to at least one vertex in KK. Show that a set KK of vertices is a vertex cover if and only if its complement (V−K)(V-K) is an independent set.

?
Problem 1.19

An independent set II in a simple graph GG is a maximum independent set if there is no independent set I′I^{\prime } in GG such that ∣I′∣>∣I∣\left|I^{\prime }\right|>\left|I\right|. The number of vertices in a maximum independent set in GG is the independence number α(G)\alpha (G) (also known as the internal stability number) of the graph GG. A vertex cover KK in a graph GG is a minimum vertex cover if there is no vertex cover K′K^{\prime } such that ∣K′∣<∣K∣\left|K^{\prime }\right|<\left|K\right|. The number of vertices in a minimum vertex cover is called the vertex-covering number β(G)\beta (G) of the graph GG. Find the vertex-covering number and the independence number of the graph in Fig. 1-14.

Fig. 1-14Fig. 1-14

?
Problem 1.20

Show that in a simple graph GG of order n,α(G)+β(G)=nn, \alpha (G)+\beta (G)=n.

?
Problem 1.21

A subset DD of vertices in a simple graph GG is a dominating vertex set (also known as an external dominating set) if every vertex not in DD is adjacent to at least one vertex in DD. Find:

?
(a)

a dominating vertex set that is not independent,

(b)

an independent set that is not a dominating vertex set,

(c)

a set that is an independent set as well as a dominating vertex set in the graph of Fig. 1-14.

Problem 1.22

A dominating vertex set DD is a minimum dominating vertex set if there is no dominating set D′D^{\prime } such that ∣D′∣<∣D∣\left|D^{\prime }\right|<\left|D\right|. The number of vectors in a minimum dominating vertex set is the vertex domination number σ(G)\sigma (G) (also known as the external stability number) of the graph. Show that the vertex domination number of a simple graph cannot exceed its independence number.

?
Problem 1.23

An independent set is a maximal independent set if it is not a proper subset of another independent set. Show that an independent set is a dominating vertex set if and only if it is a maximal independent set. (A maximal independent set is not the same as a maximum independent set defined in Problem 1.19.)

?
Problem 1.24

Show that if there are at least two people who do not know each other among a set of individuals, it is possible to choose people from that set to form a committee such that no two individuals in the committee know each other and that every individual in the set not included in the committee is known to at least one person in the committee.

?
Problem 1.25

A committee SS as described in Problem 1.24 is a minimum committee if there is no committee S′S^{\prime } such that ∣S′∣<∣S∣\left|S^{\prime }\right|<\left|S\right|. The committee number of a set is the cardinality of a minimum committee in the set. Find the committee number of the acquaintance graph in Fig. 1-14.

?
Problem 1.26

A set MM of edges in a graph is called a matching (also known as an independent edge set) if no two edges in MM have a vertex in common. A set of edges LL is an edge cover if every vertex of positive degree is a vertex of at least one edge in LL. Show that the complement of a matching need not be an edge cover. (Compare this result with that of Problem 1.18.)

?
Problem 1.27

A matching MM in a simple graph is a maximum matching (also known as maximum cardinality matching) if there is no matching M′M^{\prime } such that ∣M′∣>∣M∣\left|M^{\prime }\right|>\left|M\right|. The edge independence number α1(G)\alpha_{1}(G) of a graph GG is the number of edges in a maximum matching. An edge cover LL of a simple graph GG is a minimum edge cover if there is no edge cover L′L^{\prime } of GG such that ∣L′∣<∣L∣\left|L^{\prime }\right|<\left|L\right|. The edge-covering number β1(G)\beta_{1}(G) of the graph is the sum of the number of edges in a minimum edge cover and the number of isolated vertices. Find the edge independence number and the edge-covering number of the graph of Fig. 1-14.

?
Problem 1.28

Show that in a simple graph, α1+β1=n\alpha_{1}+\beta_{1}=n.

?
Problem 1.29

A set FF of edges in a graph G=(V,E)G=(V, E) is a dominating edge set if every edge not in FF has a vertex in common with an edge in FF. The edge domination number σ1(G)\sigma_{1}(G) is the number of edges in a minimum edge domination set. Find the edge domination number of the graph of Fig. 1-14.

?
Problem 1.30

Show that the edge domination number cannot exceed the edge independence number.

?
Problem 1.31

Find a necessary and sufficient condition to be satisfied by a matching so that it is a dominating edge set.

?
Problem 1.32

Find the number of edges in the complete graph with nn vertices.

?
Problem 1.33

Using techniques from graph theory, show that 1+2+⋯+n=n(n+1)/21+2+\cdots +n=n(n+1) / 2.

?
Problem 1.34

Show that the number of vertices in a self-complementary graph is either 4k4 k or 4k+14 k+1, where kk is a positive integer.

?
Problem 1.35

Find the number of edges in the complete bipartite graph Km,nK_{m, n}.

?
Problem 1.36

Prove Theorem 1.1: The sum of the degrees of a graph is twice the number of edges in it.

?
Problem 1.37

Use Theorem 1.1 (the sum of the degrees of a graph is twice the number of edges in it) to find the size of:

?
(a)

KnK_{n};

(b)

Km,nK_{m, n}.

Problem 1.38

Prove Theorem 1.2: Every graph has an even number of odd vertices.

?
Problem 1.39

Construct two nonisomorphic simple graphs with six vertices with degrees 1,1,2,2,31,1,2,2,3, and 3. Find the size of the graph thus constructed.

?
Problem 1.40

Show that if GG and G′G^{\prime } are isomorphic graphs, the degree of each vertex is preserved under the isomorphism.

?
Problem 1.41

Show that two graphs GG and G′G^{\prime } with the same set V={1,2,…,n}V=\left\{ 1,2, \ldots , n\right\} of vertices such that the degree of vertex ii is the same for both the graphs for every ii need not be isomorphic.

?
Problem 1.42

Prove Theorem 1.3: In a digraph, the sum of the outdegrees of all the vertices is equal to the number of arcs, which is also equal to the sum of the indegrees of all the vertices.

?
Problem 1.43

Show that there is no simple graph with 12 vertices and 28 edges in which

?
(a)

the degree of each vertex is either 3 or 4, and

(b)

the degree of each vertex is either 3 or 6.

Problem 1.44

Show that there is no simple graph with four vertices such that three vertices have degree 3 and one vertex has degree 1.

?
Problem 1.45

A labeled graph with n\boldsymbol {n} vertices is obtained by assigning the labels 1,2,…,n1,2, \ldots , n to the vertices of agiven graph GG with nn vertices and mm edges. Two labeled graphs thus obtained from a given graph GG are necessarily isomorphic, but they need not be equivalent. Label the vertices of a simple graph with four vertices of degrees 1,1,11,1,1, and 3, creating three isomorphic graphs G1,G2G_{1}, G_{2}, and G3G_{3} such that (i) G1G_{1} and G2G_{2} are equivalent, and (ii) G1G_{1} and G3G_{3} are not equivalent.

?
Problem 1.46

Find the number of nonequivalent labeled graphs with nn vertices.

?
Problem 1.47

Show that the number of vertices in a kk-regular graph is even if kk is odd.

?
Problem 1.48

Show that it is not possible to have a group of seven people such that each person in the group knows exactly three other people in the group.

?
Problem 1.49

Prove that in any group of six people, there will be either three people who know one another or three people who do not know one another.

?
Problem 1.50

The positive integer nn has the (p,q)(\boldsymbol {p}, \boldsymbol {q})-Ramsey property if for every graph GG with nn vertices, either KpK_{p} is a subgraph of GG or KqK_{q} is a subgraph of the complement of GG. Show that the positive integer 6 has the (3,3)(3,3)-Ramsey property whereas the positive integer 5 does not.

?
Problem 1.51

Show that the following properties are equivalent: (i) the positive integer nn has the (p,q)(p, q)-Ramsey property, (ii) every simple graph with nn vertices has a clique of pp vertices or an independent set of qq vertices, and (iii) the edges of KnK_{n} can be colored using two colors such that there will be either a clique KpK_{p} in which all edges are of one color or a clique KqK_{q} in which all edges are of the other color.

?
Problem 1.52

The smallest integer nn that has the (p,q)(p, q)-Ramsey property is called a Ramsey number, denoted R(p,q)\boldsymbol {R}(\boldsymbol {p}, \boldsymbol {q}). Show that:

?
(a)

R(p,q)=R(q,p)R(p, q)=R(q, p),

(b)

R(p,2)=pR(p, 2)=p,

(c)

R(3,3)=6R(3,3)=6.

Problem 1.53

Show that if a bipartite graph G=(X,Y,E)G=(X, Y, E) is regular, both XX and YY have the same number of elements.

?
Problem 1.54

A cubic graph is simple graph in which the degree of each vertex is 3. Construct two nonisomorphic cubic graphs each with six vertices.

?
Problem 1.55

Find the maximum number of edges in a bipartite graph.

?
Problem 1.56

The k\boldsymbol {k}-cube (also known as the hypercube) is the graph QkQ_{k} whose vertices are the ordered kk-tuples of binary numbers, two vertices being joined by an edge if and only if they differ exactly in one component. Show that a kk-cube is a kk-regular bipartite graph, and find the number of vertices and edges in a kk-cube.

?
Problem 1.57

Find the fewest vertices needed to construct a complete graph with at least 1000 edges.

?
Problem 1.58

Show that the vertices of the bipartite graph G=(X,Y,E)G=(X, Y, E) with mm vertices in XX and nn vertices in YY can be enumerated so that the adjacency matrix has the form

[0AAT0] \left[\begin{array}{cc} 0 & A \\ A^{T} & 0 \end{array}\right]

where AA is an m×nm \times n matrix in which each entry is 0 or 1,AT1, A^{T} is the transpose of AA, and 0 is a matrix in which each entry is zero.

?
Problem 1.59

Prove Theorem 1.4:

?
(a)

In the adjacency matrix of a graph, the sum of the entries in a row (or a column) corresponding to a vertex is its degree, and the sum of all the entries of the matrix is twice the number of edges in the graph.

(b)

In the adjacency matrix of a digraph, the sum of the entries in a row corresponding to a vertex is its outdegree, the sum of the entries in a column corresponding to a vertex is its indegree, and the sum of all the entries of the matrix is equal to the number of arcs in the digraph.

Problem 1.60

Prove Theorem 1.5:

?
(a)

The sum of the entries in a row of the incidence matrix of a simple graph corresponding to a vertex is its degree, and the sum of all the entries in the matrix is twice the number of edges.

(b)

The sum of the entries in a row of the incidence matrix of a digraph is its outdegree minus its indegree, and the sum of all the entries in the matrix is zero.

Problem 1.61

A permutation matrix is a square binary matrix that has exactly one 1 in each row and column. Two matrices AA and A′A^{\prime } are isomorphic if there is a permutation matrix PP such that A′P=PAA^{\prime } P=P A. Show that two graphs are isomorphic if and only if their adjacency matrices are isomorphic.

?
Problem 1.62

Find the adjacency matrices AA and A′A^{\prime } of the two isomorphic graphs given in Fig. 1-18, and obtain a permutation matrix PP such that A′P=PAA^{\prime } P=P A.

Fig. 1-18Fig. 1-18

?
Problem 1.63

The characteristic polynomial of a simple graph with nn vertices is the determinant of the matrix (A−λI)(A-\lambda I), where AA is the adjacency matrix and II is the n×nn \times n identity matrix. Show that if two graphs are isomorphic, their characteristic polynomials are the same. (Note: The determinant of AA is written det⁡(A)\operatorname {det}\left(A\right).)

?
Problem 1.64

By computing the characteristic polynomials of the two graphs shown in Fig. 1-19, show that two nonisomorphic graphs can have the same characteristic polynomial.

Fig. 1-19Fig. 1-19

?
Problem 1.65

If A=[aij]A=\left[a_{i j}\right] is the adjacency matrix of a simple graph GG with nn vertices, the binary code of GG with respect to A\boldsymbol {A} is the nonnegative integer a1220+a1321+⋯+a1n2n−1+a232n+⋯+a2n22n−3+⋯+an−1,n2k−1a_{12} 2^{0}+a_{13} 2^{1}+\cdots +a_{1 n} 2^{n-1}+a_{23} 2^{n}+\cdots +a_{2 n} 2^{2 n-3}+ \cdots +a_{n-1, n} 2^{k-1}, where k=n(n−1)/2k=n(n-1) / 2. Find the binary code of the adjacency matrix of the graph G=(V,E)G=(V, E), where V={1,2,3,4}V=\left\{ 1,2,3,4\right\} and E={{1,2},{1,4},{2,4},{3,4}}E=\left\{ \left\{ 1,2\right\} ,\left\{ 1,4\right\} ,\left\{ 2,4\right\} ,\left\{ 3,4\right\} \right\}.

?
Problem 1.66

Show that it is possible to construct a simple graph GG if the binary code of one of its adjacency matrices and the order of GG are known.

?
Problem 1.67

The minicode of a graph is its smallest binary code, and the largest binary code is the maxicode of the graph. Find the minicode and maxicode of a simple graph with three vertices and two edges.

?
Problem 1.68

Prove Theorem 1.6: Let v=[d1d2d3⋯dk]v=\left[\begin{array}{lllll}d_{1} & d_{2} & d_{3} & \cdots & d_{k}\end{array}\right] be a nonincreasing vector of kk (where kk is at least 2) nonnegative integers such that no component did_{i} exceeds (k−1)(k-1). Let v′v^{\prime } be the vector obtained from vv by deleting d1d_{1} and subtracting 1 from each of the next d1d_{1} components of vv. Let v1v_{1} be the nonincreasing vector obtained from v′v^{\prime } by rearranging its components if necessary. Then vv is a graphical vector if and only if v1v_{1} is a graphical vector.

?
Problem 1.69

Prove that the algorithm in Section 1.6 determines whether a given vector of nonnegative integers is a graphical vector.

?
Problem 1.70

Test whether [54333332]\left[\begin{array}{llllllll}5 & 4 & 3 & 3 & 3 & 3 & 3 & 2\end{array}\right] is a graphical vector. If it is graphical, draw a simple graph with this vector as the degree vector.

?
Problem 1.71

Test whether [6654331]\left[\begin{array}{lllllll}6 & 6 & 5 & 4 & 3 & 3 & 1\end{array}\right] graphical.

?
Problem 1.72

Let v=[d1d2⋯dn]v=\left[\begin{array}{llll}d_{1} & d_{2} & \cdots & d_{n}\end{array}\right] and w=[wnwn−1⋯w2w1]w=\left[\begin{array}{lllll}w_{n} & w_{n-1} & \cdots & w_{2} & w_{1}\end{array}\right], where wi=n−1−diw_{i}=n-1-d_{i}. Show that vv is graphical if and only if ww is graphical.

?
Problem 1.73

Show that there is no simple graph with six vertices of which the degrees of five vertices are 5,5,3,25,5,3,2, and 1.

?
Problem 1.74

Find xx if [8x7665433111]\left[\begin{array}{llllllllllll}8 & x & 7 & 6 & 6 & 5 & 4 & 3 & 3 & 1 & 1 & 1\end{array}\right] is a graphical vector.

?
Problem 1.75

Show that a finite nonincreasing vector in which no two components are equal cannot be a graphical vector.

?
Problem 1.76

Show that in a simple graph, there are at least two vertices with equal degrees.

?
Problem 1.77

Show that there exists a simple graph with 12 vertices and 28 edges such that the degree of each vertex is either 3 or 5. Draw this graph.

?
Problem 1.78

Show that there exists a simple graph with seven vertices and 12 edges such that the degree of each vertex is 2 or 3 or 4.

?
Problem 1.79

Find the complements of:

?
(a)

KnK_{n}

(b)

Km,nK_{m, n}.

Problem 1.80

Find the number of nonisomorphic graphs with four vertices and at most 3 edges.

?
Problem 1.81

Find the vertex covering number and the independence number of KnK_{n} and Km,nK_{m, n}.

?
Problem 1.82

Find the vertex dominating number of KnK_{n} and Km,nK_{m, n}.

?
Problem 1.83

Find the committee number of:

?
(a)

KnK_{n}

(b)

Km,nK_{m, n}.

Problem 1.84

If II is an independent set in a graph, find the subgraph induced by II.

?
Problem 1.85

Find the maximum number of edges in

?
(a)

a simple graph with nn vertices; and

(b)

a bipartite graph (X,Y,E)(X, Y, E), where the cardinalities of XX and YY are mm and nn, respectively.

Problem 1.86

It is known that there exists a simple graph with 12 vertices and 28 edges in which the degree of each vertex is either 3 or 5. Find the number of vertices of degree 3.

?
Problem 1.87

Find the number of nonequivalent graphs with four vertices and three edges.

?
Problem 1.88

Find the number of nonequivalent graphs with five vertices and three edges.

?
Problem 1.89

If GG is a kk-regular graph with nn vertices, find the number of triangles in GG and its complement.

?
Problem 1.90

Show that if every edge in a graph joins an odd vertex and an even vertex, the graph is bipartite. Is the converse true?

?
Problem 1.91

Any root of the characteristic polynomial of a graph is an eigenvalue of the graph. The spectrum of a graph is the collection of all its eigenvalues. Find the spectrum of:

?
(a)

K3K_{3},

(b)

K4K_{4},

(c)

K2,2K_{2,2}.

Problem 1.92

Find the spectrum of KnK_{n}.

?
Problem 1.93

Find the minicode and the maxicode of the simple graph with four vertices such that the degrees of the vertices are 1,2,21,2,2, and 3.

?
Problem 1.94

Find the minicode and maxicode of KnK_{n}.

?