Skip to main content

Section 3.2 Standard Graphs and Representing Graphs

As we have seen, graphs can model many different situations. The drawing of a graph may lead to insights about the problem the graph is modeling. But the true power of graph models comes from a well-developed theory of graphs– facts that are true about all graphs, and the ability to implement algorithms on graphs using computer tools. We begin this section with some theory, the first theorem of graph theory. Next, graphs often have standard pieces, such as a row of connected vertices (a path), a circle of connected vertices (a cycle), or even a group of vertices that are all adjacent to each other (a complete graph). We introduce these and other standard graphs. To implement algorithms on a graph, we first need to enter the graph into a computer program. We introduce one such tool, the adjacency matrix of a graph.

Subsection 3.2.A Degree Sequences

One characteristic of a graph is the list of degrees of all the vertices. Some algorithms that run on graphs require a certain smallest or largest degree, or even that all the vertices have the same degrees. We define a few relevant terms.

Definition 3.2.1 Degree sequence and regular graphs.

Β 
  1. The degree sequence of a graph is a list of the degrees of the vertices, including multiplicities. The degree sequence is usually written in nonincreasing order, which means largest to smallest. For example, the degree sequence of the classmates graph drawn in FigureΒ 3.1.8 is
    \begin{equation*} 3, 3, 3, 2, 1, 0\text{.} \end{equation*}
  2. It is possible that all the vertices of a graph have the same degree. A graph is regular if all its vertices have the same degree. A regular graph is \(r\)-regular if every vertex has degree \(r\text{.}\) For example, the graph in FigureΒ 3.2.2 is regular because every vertex has degree four.
Figure 3.2.2. A 4-regular graph (\(H_{4,6}\)).
Try working with these definitions.

Activity 3.2.A Degrees.

Consider the graph \(S\) drawn in FigureΒ 3.2.4.
Figure 3.2.4. A graph \(S\) of order six.
  1. Find the degree sequence of \(S\text{.}\)
  2. Is \(S\) regular?
  3. Calculate the sum of the degrees of the vertices in \(S\text{.}\)
  4. How is the sum of the degrees of the vertices related to the number of edges in \(S\text{?}\) Can you explain why?
  5. Draw a new 3-regular graph with six vertices.
  6. Can you draw a 3-regular graph with five vertices? Explain.
In ActivityΒ 3.2.A (d), we observed a relationship between the degree sequence of \(S\) and the number of edges in \(S\text{:}\) if we add up the degrees of all the vertices in a graph, then we count each edge of the graph twice, because each endpoint of an edge counts that edge as part of their degree.
Perhaps this discussion reminds you of the Handshakes Puzzle ActivityΒ 1.1.A. If each person reports the number of handshakes they did and we calculate the sum, then we count each handshake twice. Therefore, that sum would be twice the number of handshakes.
We state the general observation as a theorem.
One benefit of this theorem is that visually counting edges in a complicated graph can be a challenge, but counting degrees is often easier.
Let’s practice using this theorem.

Example 3.2.6 Checking first theorem of graph theory.

Β 
  1. Check TheoremΒ 3.2.5 for the classmates graph drawn in FigureΒ 3.1.8.
    Solution.
    The sum of the degrees is
    \begin{equation*} 3+3+3+2+1+0 = 12\text{.} \end{equation*}
    The number of edges is \(\frac{12}{2}=6\text{,}\) as expected.
  2. In ActivityΒ 3.2.A (f), we considered whether there exists a 3-regular graph of order five. Use TheoremΒ 3.2.5 to explain why there cannot exist such a graph.
    Solution.
    If there were such a graph, then the sum of the degrees would be
    \begin{equation*} 3+3+3+3+3 = 15 \end{equation*}
    which is an odd integer but, by TheoremΒ 3.2.5, the sum of the degrees is twice the number of edges, which is an even integer. Since an integer cannot be even and odd (which we will formally prove in TheoremΒ 4.2.2), such a graph is impossible.
It is interesting to ask if a given list of nonnegative integers is the degree sequence of a graph.

Example 3.2.7 Is this list a degree sequence of a graph?

For each list of nonnegative integers, draw a graph with that degree sequence or explain why there cannot be a graph with that degree sequence.
  1. \(5, 5, 3, 3, 3, 3\)
    Solution.
    Let’s see what happens if we can draw a graph with this degree sequence. Note that there are six numbers listed, so our graph has six vertices. Therefore, each of the degree five vertices must be adjacent to all of the other five vertices. Therefore, our graph must start as shown on the left in FigureΒ 3.2.8. The vertices \(v_2\) and \(w_2\) have degree five, but the other vertices only have degree two. We can increase their degree to three, as desired, by adding the edges \(\{v_1,w_1\}\) and \(\{v_3,w_3\}\text{,}\) for example, obtaining the graph drawn on the right in FigureΒ 3.2.8. Thus, this list is the degree sequence of a graph.
    Figure 3.2.8. Drawing a graph with degree sequence \(5, 5, 3, 3, 3, 3\text{.}\)
    Note that this graph is not the only graph with this degree sequence. We could have drawn edges between \(v_1\) and \(v_3\) and between \(w_1\) and \(w_3\text{,}\) for example.
  2. \(5, 5, 3, 2, 2, 1\)
    Solution.
    Let’s see if we can draw a graph with this degree sequence. It would have six vertices. As before, the two vertices of degree five would each be adjacent to the other four vertices, as in the graph drawn on the left in FigureΒ 3.2.8. But then all of the other vertices in our graph would already have degree at least two. That is a problem because our degree sequence lists a vertex of degree one. Thus, this list is not the degree sequence of any graph.

Subsection 3.2.B Standard Graphs

We begin our tour of some standard graphs with two different families of graphs related to handshakes.

Example 3.2.9 Handshakes graphs.

Β 
  1. In ExampleΒ 1.1.2 we drew a graph representing a group of six students shaking hands with each other, as drawn again in FigureΒ 3.2.10. How many vertices does this graph have and what does that number mean in the story? How many edges does that graph have and what does that number mean in the story?
    Solution.
    The graph has six vertices that represent the six students. The graph has 15 edges that represent the 15 handshakes the group did.
    Figure 3.2.10. A drawing of the complete graph \(K_6\) showing six students shaking hands with each other.
  2. Six discrete mathematics students had just finished shaking hands and started studying when three first-year students wandered into the room. The discrete students thought it would be polite to greet each visitor by shaking hands. (Each discrete mathematics student shakes hands with each first-year student.) Draw a graph representing this new situation, only including the new handshakes.
    Solution.
    We draw the graph in FigureΒ 3.2.11 and, as is common, we distinguish between the two types of students representing the discrete students with black vertices and the first-year students with white vertices. Which group is which color is not important and we do not have to color the vertices at all. Notice that there are \(6+3=9\) vertices representing the nine students and there are \(6\cdot3=18\) edges representing the 18 new handshakes.
    Figure 3.2.11. A drawing of the complete bipartite graph \(K_{6,3}\) showing six discrete math students shaking hands with three first-year students.
ExampleΒ 3.2.9 introduced two important families of graphs.

Definition 3.2.12 Complete graphs and complete bipartite graphs.

Β 
  1. A family of graphs is a set of graphs that share many properties. We might define a family in terms of a parameter such as \(s\text{.}\) In the name of the family, we often write that parameter as a subscript, a character written slightly smaller and lower. For example, the family of complete graphs \(K_s\) (pronounced β€œ\(K\) sub \(s\)” ) for \(n\ge1\) are the graphs \(K_1\text{,}\) \(K_2\text{,}\) \(K_3\text{,}\) ….
  2. For \(s \ge 1\) the complete graph (or handshake graph) with \(s\) vertices, denoted \(K_s\text{,}\) has an edge between every pair of vertices. The subscript \(s\) tells us the number of vertices. Note that β€œcomplete” starts with the sound of the letter β€œK”. For example, in ExampleΒ 3.2.9 (a), we drew the complete graph \(K_6\text{.}\)
  3. For integers \(s,t \ge 1\text{,}\) the complete bipartite graph with \(s\) vertices of the first type (perhaps colored black in the drawing) and \(t\) vertices of the second type (perhaps colored white in the drawing), denoted \(K_{s,t}\) has an edge between each vertex of the first type and each vertex of the second type (and no other edges). For example, in ExampleΒ 3.2.9 (b), we drew the complete bipartite graph \(K_{6,3}\text{.}\)
  4. A special case of complete bipartite graphs is the star graphs \(K_{1,t}\) for \(t\ge1\text{.}\) For example, a star graph might model a corporate reporting structure such as a vice-president and their directors. FigureΒ 3.2.13 shows drawings of \(K_{1,4}\) and \(K_{1,5}\) where we have drawn the white vertices in a circle around the central black hub vertex, as is customary.
    Figure 3.2.13. The stars \(K_{1,4}\) and \(K_{1,5}\text{.}\)
Let’s look more closely at a few examples.

Example 3.2.14 Complete, complete bipartite, and star graphs.

Β 
  1. Draw the complete graphs \(K_1\text{,}\) \(K_2\text{,}\) \(K_3\text{,}\) \(K_4\text{,}\) and \(K_5\text{.}\)
    Solution.
    Figure 3.2.15. The complete graphs \(K_1\text{,}\) \(K_2\text{,}\) \(K_3\text{,}\) \(K_4\text{,}\) and \(K_5\text{.}\)
  2. For each graph, count the number of vertices and edges and determine the degree sequence: the complete graph \(K_6\text{,}\) the complete bipartite graph \(K_{6,3}\text{,}\) and the star \(K_{1,5}\)
    Solution.
    The complete graph \(K_6\) has six vertices and 15 edges. Every vertex has degree five, and so the degree sequence is \(5,5,5,5,5,5\text{.}\)
    The complete bipartite graph \(K_{6,3}\) has nine vertices and 18 edges. The black vertices have degree three and the white vertices have degree six, so the degree sequence is \(6,6,6,3,3,3,3,3,3\text{.}\)
    The star graph \(K_{1,5}\) has six vertices and five edges. Its hub vertex has degree five and the end vertices have degree one, so its degree sequence is \(5,1,1,1,1,1\text{.}\)
  3. Draw the complete bipartite graph \(K_{4,4}\text{.}\)
    Solution.
    Figure 3.2.16. The complete bipartite graph \(K_{4,4}\)
There are two more important families of graphs.

Definition 3.2.17 Paths and cycles.

Β 
  1. For \(s \ge 1\text{,}\) the path with \(s\) vertices, denoted \(P_s\text{,}\) has \(s\) vertices each adjacent to the next in a row. Officially, if the vertex set is \(\{v_1, v_2, \ldots, v_s\}\text{,}\) then the edge set is
    \begin{equation*} \{\{v_1,v_2\}, \{v_2,v_3,\}, \ldots, \{v_{s-1},v_s\}\}\text{.} \end{equation*}
    For example, FigureΒ 3.2.18 shows drawings of the paths \(P_4\) and \(P_5\text{.}\)
    Figure 3.2.18. The paths \(P_4\) and \(P_5\text{.}\)
  2. For \(s \ge 3\text{,}\) the cycle with \(s\) vertices, denoted \(C_s\text{,}\) has \(s\) vertices each adjacent to the next in a circle. Officially, if the vertex set is \(\{v_1, v_2, \ldots, v_s\}\text{,}\) then the edge set is
    \begin{equation*} \{\{v_1,v_2\}, \{v_2,v_3,\}, \ldots, \{v_{s-1},v_s\},\{v_s,v_1\}\}\text{.} \end{equation*}
    For example, FigureΒ 3.2.19 shows drawings of the cycles \(C_4\) and \(C_5\text{.}\)
    Figure 3.2.19. The cycles \(C_4\) and \(C_5\text{.}\)
Let’s look at an example.

Example 3.2.20 Paths and cycles.

For each graph, count the number of vertices and edges and write the degree sequence.
  1. The paths \(P_4\) and \(P_5\text{.}\)
    Solution.
    The path \(P_4\) has four vertices and three edges. The end vertices have degree one and the middle vertices have degree two. The degree sequence is \(2,2,1,1\text{.}\)
    The path \(P_5\) has five vertices and four edges. The degree sequence is \(2,2,2,1,1\text{.}\)
  2. The cycles \(C_4\) and \(C_5\text{.}\)
    Solution.
    The cycle \(C_4\) has four vertices and four edges. Every vertex has degree two, and so the degree sequence is \(2,2,2,2\text{.}\)
    The cycle \(C_5\) has five vertices, five edges, and degree sequence \(2,2,2,2,2\text{.}\)
Practice working with standard graphs and reading new definitions for families of graphs.

Activity 3.2.B Standard families of graphs.

Draw each graph, count the number of vertices and edges, and list the degree sequence. Β 
  1. The complete graph \(K_4\text{.}\)
  2. The complete bipartite graph \(K_{2,5}\text{.}\)
  3. The star \(K_{1,6}\text{.}\)
  4. The path \(P_3\text{.}\)
  5. The cycle \(C_6\text{.}\)
  6. The wheel \(W_5\) consists of the cycle \(C_5\) with an additional hub vertex that is adjacent to each vertex in the cycle.
  7. The ladder \(L_{2\times5}\) consists of two copies of the path \(P_5\) with \(5\) additional edges between each pair of corresponding vertices. Officially, if the vertex set is \(\{v_1,v_2,v_3,v_4,v_5,,w_1,w_2,w_3,w_4,w_5\}\text{,}\) then the edges are
    top rail: \(\{v_1,v_2\}, \{v_2,v_3\}, \{v_3,v_4\}, \{v_4,v_5\}\)
    bottom rail: \(\{w_1,w_2\}, \{w_2,w_3\}, \{w_3,w_4\},\{w_4,w_5\}\)
    rungs: \(\{v_1,w_1\}, \{v_2,w_2\}, \{v_3,w_3\},\{v_4,w_4\}, \{v_5,w_5\}\text{.}\)
Let’s check answers to ActivityΒ 3.2.B (f) and (g). We begin with a definition.

Definition 3.2.22 Wheels and ladders.

Β 
  1. For \(s \ge 3\text{,}\) the wheel, denoted \(W_s\text{,}\) consists of the cycle \(C_s\) with an additional hub vertex that is adjacent to each vertex in the cycle. For example, FigureΒ 3.2.23 shows a drawing of \(W_3\text{.}\)
    Figure 3.2.23. The wheel \(W_3\text{.}\)
  2. For \(t \ge 1\text{,}\) ladder, denoted \(L_{2\times t}\text{,}\) consists of two copies of the path \(P_t\) with \(t\) additional edges between each pair of corresponding vertices. Officially, if the vertex set is \(\{v_1,v_2,\ldots,v_t,w_1,w_2,\ldots,w_t\}\text{,}\) then the edges are
    top rail: \(\{v_1,v_2\}, \{v_2,v_3\}, \ldots, \{v_{t-1},v_t\}\)
    bottom rail: \(\{w_1,w_2\}, \{w_2,w_3\}, \ldots, \{w_{t-1},w_t\}\)
    rungs: \(\{v_1,w_1\}, \{v_2,w_2\}, \ldots, \{v_t,w_t\}\text{.}\)
    For example, FigureΒ 3.2.24 shows a drawing of \(L_{2 \times 4}\text{.}\)
    Figure 3.2.24. The ladder \(L_{2 \times 4}\text{.}\)
Let’s work with wheels and ladders.

Example 3.2.25 Wheels and ladders.

Β 
  1. Draw the wheels \(W_4\) and \(W_5\text{.}\) For each graph count the number of vertices and edges, and list the degree sequence.
    Solution.
    FigureΒ 3.2.26 shows a drawing of the graphs. The wheel \(W_4\) has five vertices and eight edges. The hub vertex has degree four and each of the outer vertices has degree three. Its degree sequence is \(4,3,3,3,3\text{.}\)
    The wheel \(W_5\) has six vertices and ten edges. The hub vertex has degree five and each of the outer vertices has degree three. Its degree sequence is \(5,3,3,3,3,3\text{.}\)
    Figure 3.2.26. The wheels \(W_4\) and \(W_5\text{.}\)
  2. Draw the ladder \(L_{2\times5}\text{,}\) count the number of vertices and edges, and list the degree sequence.
    Solution.
    FigureΒ 3.2.27 shows a drawing of \(L_{2\times 5}\) which has ten vertices and thirteen edges. The four corner vertices have degree two and the rest of the vertices have degree three. Its degree sequence is \(3,3,3,3,3,3,2,2,2,2\text{.}\)
    Figure 3.2.27. The ladder \(L_{2\times 5}\text{.}\)

Subsection 3.2.C The Adjacency Matrix of a Graph

Graph models are especially useful because computers can work with graphs.
 1 
For example, \(\str{NetworkX}\) is a package of graph computation tools written in Python programming language.
One way for a computer to work with a graph is to list the vertices and edges. Another way is to list each vertex and its neighbors. An especially useful option represents a graph with a matrix (rectangular array) of \(\bs{0}\) s and \(\bs{1}\) s.

Definition 3.2.28 Adjacency matrix.

Β 
  1. For any matrix \(A\text{,}\) the \(ij\)-entry of \(A\text{,}\) denoted \(A_{i,j}\text{,}\) is the entry in row \(i\) and column \(j\) of \(A\text{.}\) For example, if \(A= \left[ \begin{array}{cc} 1 \amp 2 \\ 3 \amp 4 \end{array} \right]\text{,}\) then \(A_{1,1}= 1\text{,}\) \(A_{1,2}= 2\text{,}\) \(A_{2,1}= 3\text{,}\) and \(A_{2,2}= 4\text{.}\)
  2. To create an adjacency matrix \(A\) of a graph \(G\) with \(s\) vertices, we first list the vertices of \(G\) in order as \(v_1, v_2, \ldots, v_s\text{.}\) Then, the \(ij\)-entry of \(A\) equals \(\bs{1}\) if \(\{v_i,v_j\}\) is an edge and \(\bs{0}\) if \(\{v_i,v_j\}\) is not an edge. See ExampleΒ 3.2.29 for an example.
  3. Observe that \(A_{i,j}=A_{j,i}\text{,}\) so the adjacency matrix of a graph is symmetric. We can use this symmetry to build an adjacency matrix. For example, ExampleΒ 3.2.29 once we knew that the first row of the adjacency matrix was \(\bs{010010}\text{,}\) it follows that the first column of the adjacency matrix was also \(\bs{010010}\text{.}\)
  4. If the graph \(G\) has \(s\) vertices, then the adjacency matrix of \(G\) is an \(s \times s\) matrix, which means that it has \(s\) rows and \(s\) columns.
Let’s look at an example.

Example 3.2.29 Adjacency matrix.

Find an adjacency matrix of the graph \(S\) from ActivityΒ 3.2.A.
Solution.
\(S\) has an adjacency matrix shown in TableΒ 3.2.30.
Table 3.2.30. An adjacency matrix of the graph \(S\) in FigureΒ 3.2.4
\(\begin{array}{cccccc} v_1\amp v_2\amp v_3\amp v_4\amp v_5\amp v_6 \end{array}\)
\(\begin{array}{r} v_1 \\ v_2 \\ v_3 \\ v_4 \\ v_5 \\ v_6 \end{array}\) \(\left[ \begin{array}{cccccc} ~\bs{0}~ \amp ~\bs{1}~ \amp ~\bs{0}~ \amp ~\bs{0}~ \amp ~\bs{1}~ \amp ~\bs{0}~\\ \bs{1} \amp \bs{0} \amp \bs{1} \amp \bs{1} \amp \bs{1} \amp \bs{0}\\ \bs{0} \amp \bs{1} \amp \bs{0} \amp \bs{1} \amp \bs{0} \amp \bs{1}\\ \bs{0} \amp \bs{1} \amp \bs{1} \amp \bs{0} \amp \bs{1} \amp \bs{0}\\ \bs{1} \amp \bs{1} \amp \bs{0} \amp \bs{1} \amp \bs{0} \amp \bs{0}\\ \bs{0} \amp \bs{0} \amp \bs{1} \amp \bs{0} \amp \bs{0} \amp \bs{0} \end{array} \right]\)
Notice that the matrix depends on the order of the vertices, here shown in alphabetical order. To obtain the first row of this matrix, we note that the vertex \(v_1\) is adjacent to the vertices \(v_2\) and \(v_4\text{.}\) Thus, \(A_{1,2}=\bs{1}\) and \(A_{1,4}=\bs{1}\) and the other entries in the first row are \(\bs{0}\text{.}\) Similarly, to get the second row, we note that \(v_2\) is adjacent to \(v_1\text{,}\) \(v_3\text{,}\) \(v_4\text{,}\) and \(v_5\text{.}\) Thus, \(A_{2,1}=\bs{1}\text{,}\) \(A_{2,3}=\bs{1}\text{,}\) \(A_{2,4}=\bs{1}\text{,}\) and \(A_{2,5}=\bs{1}\) and the other entries are \(\bs{0}\text{.}\) The other rows follow in a similar way.
It is your turn to work with adjacency matrices.

Activity 3.2.C Adjacency matrix.

Β 
  1. Determine the adjacency matrix for the graph \(G\) and its complement \(\overline{G}\) drawn in FigureΒ 3.2.32 using the vertices in alphabetical order.
    Figure 3.2.32. The graph \(G\) and its complement \(\overline{G}\text{.}\)
  2. How are the adjacency matrices for \(G\) and \(\overline{G}\) from (a) related?
  3. Calculate the sum of the entries in each row of the adjacency matrix for \(G\) from (a). How are these sums related to the vertices of \(G\text{?}\) Explain.
  4. Determine the adjacency matrix for the complete graph \(K_4\text{.}\)
  5. Describe the general pattern for the adjacency matrix for the complete graph \(K_s\) for \(s>1\text{.}\)
  6. Determine the adjacency matrix for the star \(K_{1,3}\text{.}\) Hint: List the center black vertex first, and then list all the white vertices.
  7. Describe the general pattern for the adjacency matrix for the star \(K_{1,t}\) for \(t > 1\text{.}\)
We make a few observations about adjacency matrices.

Subsection 3.2.D Exercises

Subsubsection Exercises for 3.2.A Degree Sequences

2. Practice.

Consider the complicated graph \(W\) drawn in FigureΒ 3.2.36.
Figure 3.2.36. The complicated graph \(W\text{.}\)
  1. List each vertex of \(W\) and its degree.
  2. Calculate the sum of the degrees of the vertices in \(W\text{.}\)
  3. How many edges does \(W\) have? Hint: Use the first theorem of graph theory TheoremΒ 3.2.5.
Check.
  1. \(a:4\text{,}\) \(b:4\text{,}\) \(c:2\text{,}\) …, \(p:4\)
  2. Hint: Use the hint.

3. Understand.

if \(G\) is a 4-regular graph with 100 vertices, then how many edges does \(G\) have? Explain.
Check.
Hint: The sum of the degrees is 400.

4. Understand.

Draw a graph with the given degree sequence.
  1. \(\displaystyle 2,2,2,2,2,2\)
  2. \(\displaystyle 3,3,2,2,2,2\)
  3. \(\displaystyle 3,2,1,1,1\)
Check.
  1. Hint: There are two possible graphs. One is six vertices in a circle. The other has two separate pieces. Check that each vertex of the graph you drew has degree two.
  2. FigureΒ 3.2.39 shows one possible answer.
    Figure 3.2.39. An example of a graph with degree sequence \(3,3,2,2,2,2\text{.}\)
  3. Hint: The degree three vertex and the degree two vertices must be adjacent.

6. Understand.

Β 
  1. Draw a 2-regular graph with eight vertices.
  2. Draw a 3-regular graph with eight vertices.
  3. Draw a 4-regular graph with eight vertices.
  4. Draw a 5-regular graph with eight vertices.
Check.
  1. Hint: One possible answer is eight vertices drawn in a circle with each vertex adjacent to the next.
  2. FigureΒ 3.2.42 shows one possible answer (on the left), but there are other possible answers.
    Figure 3.2.42. A 3-regular graph with eight vertices and a 5-regular graph with eight vertices.
  3. Hint: Try something like FigureΒ 3.2.2, but with eight vertices.
  4. FigureΒ 3.2.42 shows one possible answer (on the right), but there are other possible answers.

Subsubsection Exercises for 3.2.B Standard Graphs

9. Practice.

Draw each graph, list its degree sequence, and state whether it is regular.
  1. The complete graph \(K_5\text{.}\)
  2. The complete bipartite graph \(K_{3,4}\text{.}\)
  3. The star \(K_{1,6}\text{.}\)
  4. The path \(P_6\text{.}\)
  5. The cycle \(C_5\text{.}\)
  6. The wheel \(W_6\text{.}\)
  7. The ladder \(L_{2 \times 3}\text{.}\)
Check.
  1. The graph is drawn in FigureΒ 3.2.15. The degree sequence is \(4,4,4,4,4\text{.}\) It is regular.
  2. Hint: Your drawing should have three black vertices, four white vertices, and every possible black-white edge. The degree sequence is \(4,4,4,3,3,3,3\text{.}\)
  3. Hint: The graph has a total of seven vertices and the degree sequence is \(6,1,1,1,1,1,1\text{.}\)
  4. Hint: The graph has a total of six vertices and five edges.
  5. Hint: The graph is 2-regular and has five vertices.
  6. Hint: The graph has a total of seven vertices and the degree sequence is \(6,3,3,3,3,3,3\text{.}\)
  7. Hint: The graph should look like FigureΒ 3.2.24 but without \(v_4\) and \(w_4\) (and edges to them.)

13. Understand.

When drawing a complete graph (or star) and its complement, show the usual black and white coloring of the vertices.
  1. Draw the complete bipartite graph \(K_{3,3}\) and its complement.
  2. Draw the star \(K_{1,3}\) and its complement.
  3. Draw the complete bipartite graph \(K_{2,5}\) and its complement.
  4. Describe the complement of \(K_{s,t}\text{.}\)
Check.
  1. See FigureΒ 3.2.50.
    Figure 3.2.50. The complete bipartite graph \(K_{3,3}\) (left) and its complement (right).
  2. Hint: The complement consists of a 3-cycle and an isolated vertex.
  3. Hint: The complement has a piece with two vertices and a separate piece with five vertices. It has a total of 11 edges.
  4. Hint: The answer involves complete graphs.

14. Understand.

The Harary graphs \(H_{4,t}\) are a family of 4-regular graphs for \(t \ge 5\text{.}\) The graph \(H_{4,t}\) is constructed from the cycle \(C_t\) by adding an edge between each pair of vertices that are two edges apart in the cycle. For example, FigureΒ 3.2.2 shows \(H_{4,6}\text{.}\)
  1. Draw \(H_{4,7}\) and count the number of edges.
  2. Draw \(H_{4,8}\) and count the number of edges.
  3. What is the standard name for \(H_{4,5}\text{?}\)
  4. Conjecture the number of edges in \(H_{4,t}\) based on the pattern so far. Your answer should involve \(t\text{.}\)
  5. Confirm the number of edges of \(H_{4,t}\) using TheoremΒ 3.2.5.
Check.
  1. Hint: It has 14 edges.
  2. See FigureΒ 3.2.52. It has 16 edges.
    Figure 3.2.52. The Harary graph \(H_{4,8}\text{.}\)
  3. Hint: Draw the graph.
  4. Hint: \(H_{4,5}\) has 10 edges, \(H_{4,6}\) has 12 edges, \(H_{4,7}\) has 14 edges, and \(H_{4,8}\) has 16 edges.
  5. Hint: \(\underbrace{4+4+ \cdots + 4}_{t \text{ times } }=4t\text{.}\)

15. Recap.

Do you know …
  1. What graphs are denoted \(K_s\text{,}\) \(K_{s,t}\text{,}\) \(P_s\text{,}\) \(C_s\text{,}\) \(W_s\text{,}\) and \(L_{2 \times t}\text{?}\)
  2. How the complete graphs are defined?
  3. How the complete bipartite graphs are defined?
  4. Why we often color the vertices of \(K_{s,t}\) using two different colors?
  5. How paths are defined?
  6. How cycles are defined?
  7. How wheels defined?
  8. How ladders are defined?
  9. How to draw standard graphs or graphs from newly defined graph families?

16. Explore.

In SectionΒ 3.1 Exercise 6, we defined a word graph whose vertices are the given words where two words are connected by an edge if one word can be changed to the other by making exactly one of the following changes.
  • Reorder.
    Keep the same letters, but change the order.
  • Replace.
    Keep the letters in the same order, but replace one letter with a different letter.
For each graph listed, find a set of four words whose word graph is that graph. Be careful to check that if two vertices are not connected by an edge in the graph, then there is no way to change between those two words following the rules.
  1. The complete graph \(K_4\text{.}\)
  2. The path \(P_4\text{.}\)
  3. The cycle \(C_4\text{.}\)

Subsubsection Exercises for 3.2.C The Adjacency Matrix of a Graph

17. Practice.

Β 
  1. Determine the adjacency matrix of the graph \(G\) shown in FigureΒ 3.2.56. List the vertices alphabetically.
    Figure 3.2.56. Determine the adjacency matrix of this graph \(G\text{.}\)
  2. Draw the graph with adjacency matrix
    \begin{equation*} \left[ \begin{array}{cccccc} \bs{0}\amp \bs{1}\amp \bs{1}\amp \bs{0}\amp \bs{0} \\ \bs{1}\amp \bs{0}\amp \bs{0}\amp \bs{0}\amp \bs{1} \\ \bs{1}\amp \bs{0}\amp \bs{0}\amp \bs{1}\amp \bs{1} \\ \bs{0}\amp \bs{0}\amp \bs{1}\amp \bs{0}\amp \bs{1} \\ \bs{0}\amp \bs{1}\amp \bs{1}\amp \bs{1}\amp \bs{0} \end{array} \right] \end{equation*}
    and vertices \(v\text{,}\) \(w\text{,}\) \(x\text{,}\) \(y\text{,}\) and \(z\) in that order.
Check.
  1. Hint: The matrix has five rows and five columns. The first row (and column) are \(\bs{01101}\text{.}\)
  2. See FigureΒ 3.2.57.
    Figure 3.2.57. The graph with adjacency matrix from Exercise 17.

18. Practice.

Β 
  1. Draw the path \(P_5\) and determine its adjacency matrix.
  2. Draw the cycle graph \(C_5\) and determine its adjacency matrix.
  3. How are the matrices in 18.(a) and 18.(b) related? Hint: What is the same and what is different?
Check.
  1. Hint: See FigureΒ 3.2.18. The adjacency matrix with vertices ordered from left to right is
    \begin{equation*} \left[ \begin{array}{ccccc} \bs{0} \amp \bs{1} \amp \bs{0} \amp \bs{0} \amp \bs{0} \\ \bs{1} \amp \bs{0} \amp \bs{1} \amp \bs{0} \amp \bs{0} \\ \bs{0} \amp \bs{1} \amp \bs{0} \amp \bs{1} \amp \bs{0} \\ \bs{0} \amp \bs{0} \amp \bs{1} \amp \bs{0} \amp \bs{1} \\ \bs{0} \amp \bs{0} \amp \bs{0} \amp \bs{1} \amp \bs{0} \end{array} \right] \end{equation*}
  2. Hint: The adjacency matrix for \(C_5\) is the adjacency matrix for \(P_5\) with two more \(\bs{1}\) s. Say where those two additional \(\bs{1}\) s are.

19. Understand.

Β 
  1. Find the adjacency matrix for the wheel graph \(W_5\) where the hub vertex is listed first.
  2. Describe how to construct the adjacency matrix for \(W_5\) using the adjacency matrix for \(C_5\text{.}\)
Check.
  1. The adjacency matrix with hub vertex listed first, and then the other vertices listed going around the cycle, is
    \begin{equation*} \left[ \begin{array}{c|ccccc} \bs{0} \amp \bs{1} \amp \bs{1} \amp \bs{1} \amp \bs{1} \amp \bs{1} \\ \hline \bs{1} \amp \bs{0} \amp \bs{1} \amp \bs{0} \amp \bs{0} \amp \bs{1} \\ \bs{1} \amp \bs{1} \amp \bs{0} \amp \bs{1} \amp \bs{0} \amp \bs{0} \\ \bs{1} \amp \bs{0} \amp \bs{1} \amp \bs{0} \amp \bs{1} \amp \bs{0} \\ \bs{1} \amp \bs{0} \amp \bs{0} \amp \bs{1} \amp \bs{0} \amp \bs{1} \\ \bs{1} \amp \bs{1} \amp \bs{0} \amp \bs{0} \amp \bs{1} \amp \bs{0} \end{array} \right] \end{equation*}
    The dividing lines are not officially part of the matrix.
  2. Hint: The dividing lines create four blocks. Explain how each of the four blocks is constructed. For example, the upper left-hand block is a \(\bs{0}\text{.}\) The block to the right and block below it are each …. The lower right-hand block is …. Make sure to mention the adjacency matrix for \(C_5\text{.}\)

20. Understand.

Β 
  1. Given an adjacency matrix, how can you determine the number of vertices in the corresponding graph?
  2. Given the adjacency matrix, how can you determine the number of edges of the corresponding graph (without drawing the graph)?

21. Recap.

Do you know …
  1. How might we store a graph on a computer?
  2. How to construct the adjacency matrix of a graph or draw a graph given its adjacency matrix?
  3. Where can we find the degrees of vertices in the adjacency matrix?
  4. What the relationship is between the adjacency matrix of a graph and the adjacency matrix of its complement?
  5. How to describe the adjacency matrix of a family of graphs?

22. Explore.

Β 
  1. Determine the adjacency matrix for the complete bipartite graph \(K_{3,5}\text{.}\) List all the black vertices and then all the white vertices.
  2. Describe the general pattern for the adjacency matrix for the complete graph \(K_{s,t}\) for \(s,t \ge 1\text{.}\)
Check.
  1. The adjacency matrix is
    \begin{equation*} \left[ \begin{array}{ccc|ccccc} \bs{0} \amp \bs{0} \amp \bs{0} \amp \bs{1}\amp \bs{1} \amp \bs{1} \amp \bs{1} \amp \bs{1} \\ \bs{0} \amp \bs{0} \amp \bs{0} \amp \bs{1}\amp \bs{1} \amp \bs{1} \amp \bs{1} \amp \bs{1} \\ \bs{0} \amp \bs{0} \amp \bs{0} \amp \bs{1}\amp \bs{1} \amp \bs{1} \amp \bs{1} \amp \bs{1} \\ \hline \bs{1} \amp \bs{1} \amp \bs{1} \amp \bs{0}\amp \bs{0} \amp \bs{0} \amp \bs{0} \amp \bs{0} \\ \bs{1} \amp \bs{1} \amp \bs{1} \amp \bs{0}\amp \bs{0} \amp \bs{0} \amp \bs{0} \amp \bs{0} \\ \bs{1} \amp \bs{1} \amp \bs{1} \amp \bs{0}\amp \bs{0} \amp \bs{0} \amp \bs{0} \amp \bs{0} \\ \bs{1} \amp \bs{1} \amp \bs{1} \amp \bs{0}\amp \bs{0} \amp \bs{0} \amp \bs{0} \amp \bs{0} \\ \bs{1} \amp \bs{1} \amp \bs{1} \amp \bs{0}\amp \bs{0} \amp \bs{0} \amp \bs{0} \amp \bs{0} \end{array} \right] \end{equation*}
    The dividing lines are not officially part of the matrix.
  2. Hint: The dividing lines create four blocks. Explain what size each block is and how each block is constructed.

23. Explore.

Β 
  1. Describe the general pattern for the adjacency matrix for the paths \(P_s\) for \(s \ge 1\text{.}\) Hint: look at your matrix from Exercise 18 18.(a).
  2. Describe how to construct the adjacency matrix for \(C_s\) using the adjacency matrix for \(P_s\text{.}\) Hint: look at your matrix from Exercise 18 18.(a) and your answer to Exercise 1818.(c).

24. Explore.

The Harary graphs are defined in Exercise 14.
  1. Determine the adjacency matrix for \(H_{4,6}\text{,}\) using the vertices in the order they appear around the main cycle.
  2. Repeat for \(H_{4,7}\text{.}\)
  3. Describe the adjacency matrix of \(H_{4,t}\) for \(t \ge5\) in general.