An undirected graph is defined as follows:
$V = \{ \; i \; \vert \; 0 \leq i < 10 \}$
$E = \{ (0,1), \; (0,3), \; (1,9), \; (3,5), \; (3,7), \; (4,6), \; (5,9), \; (6,8) \}$
Question 1: How many connected components are in the graph?
0 ------- 1 ---------9 | | | | 3 ------------------ 5 | | 2 | 7 4---6---8The answer is three.
Question 2: Which nodes are in the one cycle in this graph (just list the node numbers with spaces between them).
Question 3: Is this graph bipartite?
Question 4: Which of the following is an adjacency matrix for the graph?
A
| 0 1 2 3 4 5 6 7 8 9 - - - - - - - - - - - 0 | 0 1 0 1 0 0 0 0 0 0 1 | 0 0 0 0 0 0 0 0 0 1 2 | 0 0 0 0 0 0 0 0 0 0 3 | 0 0 0 0 0 1 0 1 0 0 4 | 0 0 0 0 0 0 1 0 0 0 5 | 0 0 0 0 0 0 0 0 0 1 6 | 0 0 0 0 0 0 0 0 1 0 7 | 0 0 0 0 0 0 0 0 0 0 8 | 0 0 0 0 0 0 0 0 0 0 9 | 0 0 0 0 0 0 0 0 0 0 |
B
| 0 1 2 3 4 5 6 7 8 9 - - - - - - - - - - - 0 | 1 1 0 1 0 0 0 0 0 0 1 | 1 1 0 0 0 0 0 0 0 1 2 | 0 0 1 0 0 0 0 0 0 0 3 | 1 0 0 1 0 1 0 1 0 0 4 | 0 0 0 0 1 0 1 0 0 0 5 | 0 0 0 1 0 1 0 0 0 1 6 | 0 0 0 0 1 0 1 0 1 0 7 | 0 0 0 1 0 0 0 1 0 0 8 | 0 0 0 0 0 0 1 0 1 0 9 | 0 0 0 0 0 1 0 0 0 1 |
C
| 0 1 2 3 4 5 6 7 8 9 - - - - - - - - - - - 0 | 0 1 0 1 0 0 0 0 0 0 1 | 1 0 0 0 0 0 0 0 0 1 2 | 0 0 0 0 0 0 0 0 0 0 3 | 1 0 0 0 0 1 0 1 0 0 4 | 0 0 0 0 0 0 1 0 0 0 5 | 0 0 0 1 0 0 0 0 0 1 6 | 0 0 0 0 1 0 0 0 1 0 7 | 0 0 0 1 0 0 0 0 0 0 8 | 0 0 0 0 0 0 1 0 0 0 9 | 0 1 0 0 0 1 0 0 0 0 |