Graph Questions
Graph Questions
In the questions below find an ordered pair, an adjacency matrix, and a graph representation for
the graph.
1. K6.
Ans: Vertices 123456, Edges ab 1 a 61 b 6a b;
0 1 1 1 1 1
1 0 1 1 1 1
1 1 0 1 1 1
.
1 1 1 0 1 1
1 1 1 1 0 1
1 1 1 1 1 0
2. C4.
0 1 0 0
0 0 1 0
Ans: Vertices 1234, Edges 12233441; .
0 0 0 1
1 0 0 0
Page 117
3. W5.
Ans: Vertices 123456, Edges
1 21 31 41 51 62 33 44 55 66 2 ;
0 1 1 1
1 1
1 0 1 1
0 0
1 1 0 0
1 0
.
1 0 1 0
0 1
1 0 0 1 0 1
1 1 0 0 1 0
4. Q3.
Ans: Vertices (000)(001)(010)(011)(100)(101)(110)(111),
Edges = (a1 a2 a3 ) (b1 b2 b3 ) a1 b1 a2 b2 a3 b3 1 ;
0 1 1 0 1 0 0 0
1 0 0 1 0 1 0 0
1 0 0 1 0 0 1 0
0 1 1 0 0 0 0 1
.
1 0 0 0 0 1 1 0
0 1 0 0 1 0 0 1
0 0 1 0 1 0 0 1
0 0 0 1 0 1 1 0
Page 118
In the questions below fill in the blanks.
10. A simple graph is regular if every vertex has the same degree.
(a) For which positive integers n are the following graphs regular: Cn, Wn, Kn, Qn?
Page 119
12. Draw the undirected graph with adjacency matrix
0 1 3 0 4
1 2 1 3 0
3 1 1 0 1 .
0 3 0 0 2
4 0 1 2 3
Ans: The numbers on the edges of the graph indicate the multiplicities of the edges.
Page 120
92. Consider the graph shown.
(a) Does it have an Euler circuit?
(b) Does it have an Euler path?
Page 121
94. Consider the graph shown below.
(a) Does it have an Euler circuit?
(b) Does it have an Euler path?
Page 122