Graph Theory: Get Stronger

Graph Basics

For the following exercises, use the given figure below (Figure 1).

Five graphs are titled graph S, graph T, graph U, graph V, and graph W. Graph S has five vertices: a, b, c, d, and e. Edges connect a b, a c, bc, c d, c e, and d e. Graph T has four vertices: a, b, d, and e. Edges connect a b, a e, b d, and d e. Graph U has 6 vertices: a, b, f, c, d, and e. Edges connect ab, a f, f d, b c, c d, d e, c e, and a c. Graph V has four vertices: a, b, d, and e. Edges connect a b, a d, a e, b d, and d e. Graph W has four vertices: a, b, d, and e. Edges connect a b, a d, and d e.
Figure 1
  1. Determine the number of vertices in Graph S.
  2. Identify the graph with the fewest edges.
  3. Name the vertices in Graph U.
  4. Identify any pairs of vertices in Graph S that are not adjacent.
  5. Which graphs only has vertices of degree 2?
  6. Identify the graph in which the sum of the degrees of the vertices is 16.

Graph Structures

For the following exercises, use the given figure below (Figure 2).

Four graphs are titled graph A, graph B, graph C, and graph D. Graph A shows edges connecting the vertices: v q, v p, v u, v t, v s and v r. Graph B shows edges connecting the vertices: p q, q s, s t, t p, v u, and v r. Graph C shows edges connecting the vertices: p q, p u, u t, u v, t s, q s, and p t. Graph D shows edges connecting the vertices: v p, v q, v u, v t, v r, v s, p q, u t, and r s.
Figure 2
  1. Explain why Graph B is not a subgraph of Graph C.
  2. How many edges are in a complete graph with 12 vertices?

Navigating Graphs

For the following exercises, use Graph A in the given figure below (Figure 3). Consider each sequence of vertices. Determine if it is only a walk, both a walk and a path, both a walk and a trail, all three, or none of these.

Two graphs are labeled graph A and graph K. Graph A has five vertices: b, c, d, e, and f. Edges connect b c, c f, b d, b e, d e, and e f. Graph K has five vertices: m, n, o, p, and q. Edges connect m n, n o, n q, q o, o p, n p, and m p.
Figure 3
  1. e → d → b → e → f
  2. e → b → d → e → f → c → b → d
  3. e → f → b → d

For the following exercises, use Graph K (Figure 3) . Identify each sequence of vertices as a closed walk, circuit (closed trail), and/or directed cycle (closed path). Indicate all that apply.

  1. n → o → q → n → p → m → n
  2. m → n → o → q → n → p → o → n → m
  3. p → o → q → n → m → p

Euler Circuits

For the following exercises, use the graphs and multigraphs shown below (Figure 4). Identify any graphs and/or multigraphs with the given characteristics. If there are none, state so.

Five graphs. Graph 11 has 8 vertices. Edges connect r s, s v, v u u r, t x, t w, and x w. Graph 12 has 7 vertices. Edges connect e f, f g, g e, g d, e d, e a, d a, d c, g c, c a, c b, and a b. Graph 13 has 5 vertices. Edges connect n o, n q, o m, o p, m p, m q, and q p. Multigraph 14 has 5 vertices. The edges are labeled from A to H. Multigraph 15 has 5 vertices. The edges are labeled from K to U.
Figure 4
  1. connected
  2. disconnected
  3. Eulerian

Euler Trails

For the following exercises, use the graphs and multigraphs in Figure 4.

  1. Determine whether the sequence of edges represents an Euler circuit in Multigraph 15: K → L → N → M → O → S → T → Q → U → P → R
  2. Find an Euler circuit beginning and ending at vertex g in Graph 12 if one exists. Otherwise, explain how you know such an Euler circuit does not exist.
  3. Give an example of a pair of edges that could be duplicated to eulerize Multigraph 14.

For the following exercises, use the graphs and multigraphs in Figure 4. Identify any graphs and/or multigraphs with the given characteristics. If there are none, state so.

  1. Exactly two vertices of odd degree
  2. Has an Euler trail

Hamilton Circuits

For the following exercises, refer to the graph in the given in figure 5.

A graph has 7 vertices. The vertices are labeled a, b, c, d, e, f, and g. Edges connect a b, a d, d f, d e, f c, f g, c g, and e b.
Figure 5
  1. A student has been asked to use Fleury’s algorithm to construct an Euler trail in the given graph. The student decides to begin the trail at vertex d. Is this a good choice, why or why not?
  2. A student who is using Fleury’s algorithm to construct an Euler trail has decided to begin with f → d → a → b → …. If the student is off to a good start, help the student by completing the Euler trail. If the student has made an error, explain the error.
  3. Use Fleury’s algorithm to construct an Euler trail for the given graph beginning at the vertex of your choice.

For the following exercises, use the graphs from figures 6 and 7 to determine whether the sequence of vertices in the given graph is a Hamilton cycle, an Euler circuit, both, or neither.

Two graphs are labeled graph A and graph K. Graph A has five vertices: b, c, d, e, and f. Edges connect b c, c f, b d, b e, d e, and e f. Graph K has five vertices: m, n, o, p, and q. Edges connect m n, n o, n q, q o, o p, n p, and m p.
Figure 6
Graph F has five vertices. The vertices are a, b, c, d, and e. Edges connect a c, a b, e c, e b, c b, c d, and b d.
Figure 7
  1. Graph F. a → b → e → c → b → d → c → a
  2. Graph K. m → n → q → o → p → m
  3. Graph A. b → d → e → f → c → b → e

For the following exercises, evaluate the factorial expression for the given value of [latex]n[/latex].

  1. [latex](n−1)!,n=12[/latex]
  2. [latex](n−1)!,n=14[/latex]
  3. Calculate the number of distinct Hamilton cycles in a complete graph with [latex]13[/latex] vertices.

For the following exercises, use figure 8 to find the weight of each Hamilton cycle.

Graph Z has nine vertices arranged in 3 rows and 3 columns. The vertices are as follows. Row 1: q, r, s. Row 2: t, u, v. Row 3; w, x, y. The edges are as follows. 1, q to t. 2, s to v. 3, r to s. 4, q to u. 5, u to y. 6, r to v. 7, r to u. 8, v to y. 9, w to x. 10, x to y. 1, u to x. 12, t to w. 13, q to r. 14, t to u. 15, u to v.
Figure 8
  1. q → t → w → x → u → y → v → s → r → q
  2. w → x → y → u → v → s → r → q → t → w

Hamilton Paths

For the following exercises, use figure 9 to determine whether the sequence of vertices in the given graph is a Hamilton path, an Euler trail, both, or neither.

Two graphs are labeled graph A and graph K. Graph A has five vertices: b, c, d, e, and f. Edges connect b c, c f, b d, b e, d e, and e f. Graph K has five vertices: m, n, o, p, and q. Edges connect m n, n o, n q, q o, o p, n p, and m p.
Figure 9
  1. Graph A. e → b → c → f → e → b → e
  2. Graph A. b → c → f → e → d → b → e
  3. Graph K. n → q → o → p → m
  4. Graph K. o → q → m → n → p

Traveling Sales Person Problem

For the following exercises, determine whether the algorithm described is a greedy algorithm or a brute force algorithm.

  1. A lumber distributor is loading pallets onto trucks with the intention of using the fewest trucks possible to send a shipment. The distributor loads the pallets with the greatest length that will fit on the truck first and continues loading until no more pallets will fit. Then the next truck is loaded using the same approach.
  2. A traveler wants to visit five cities by airplane. The traveler lists all the possible orders in which the cities can be visited then calculates the best airfare for each itinerary and selects the least expensive option.

For the following exercises, list all the distinct Hamilton cycles beginning at the given vertex in the given graph (figure 10). Indicate which pairs of Hamilton cycles are reverses of each other.

Two graphs are labeled graph 17 and graph 18. Graph 17 has four vertices, a, b, c, and d. The edges are labeled as follows: a to b, 13.3; b to c, 2.0; c to d, 8.7; d to a, 9.3; a to c, 1.5; b to d, 5.2. Graph 18 has five vertices, m, q, n, p, and o. The edges are labeled as follows: m to n, 250; m to q, 100; m to p, 110; m to 0, 300; q o n, 90; q to o, 210; n to p, 75; q to p, 50; p to o, 425; n to o, 225.
Figure 10
  1. Graph 17, vertex a
  2. Graph 18, vertex m

For the following exercises, find a Hamilton cycle of least weight for the given graph in Figure 10, beginning at the given vertex, and using the brute force method. What is the weight of the cycle?

  1. Graph 18; vertex m
  2. Graph 17; vertex a

Spanning Trees

For the following exercises, draw a graph with the given characteristics.

  1. A tree with eight vertices, exactly two of degree three.
  2. A connected graph with eight vertices, exactly two of degree 3, which is not a tree.

For the following exercises, use figure 11 to draw three possible spanning trees that fit the given description.

Two graphs are labeled graph A and graph K. Graph A has five vertices: b, c, d, e, and f. Edges connect b c, c f, b d, b e, d e, and e f. Graph K has five vertices: m, n, o, p, and q. Edges connect m n, n o, n q, q o, o p, n p, and m p.
Figure 11
  1. Three spanning trees of Graph A, which include both edges be and de.
  2. Three spanning trees of Graph K, which include edges mn and oq, but do not include no.

For the following exercises, use Kruskal’s Algorithm to find a minimum spanning tree of the given graph (figure 12). Graph it and calculate its weight.

Two graphs are labeled graph 17 and graph 18. Graph 17 has four vertices, a, b, c, and d. The edges are labeled as follows: a to b, 13.3; b to c, 2.0; c to d, 8.7; d to a, 9.3; a to c, 1.5; b to d, 5.2. Graph 18 has five vertices, m, q, n, p, and o. The edges are labeled as follows: m to n, 250; m to q, 100; m to p, 110; m to 0, 300; q o n, 90; q to o, 210; n to p, 75; q to p, 50; p to o, 425; n to o, 225.
Figure 12
  1. Graph 17
  2. Graph 18