Graph Theory: Get Stronger Answer Key

Graph Basics

  1.  Graph S has [latex]5[/latex] vertices labeled a, b, c, d, and e.
  2.  
  3.  The vertices are labeled a, b, c, d, e, and the additional vertex f.
  4.  
  5. Graph T
  6.  

Graph Structures

 

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. Graph B has an edge between vertices v and r that does not exist in Graph C. For B to be a subgraph of C, all of B’s edges would have to be present in C with exactly the same connections between vertices. Since the edge is missing in Graph C, we can conclusively say that Graph B is not a subgraph of Graph C.
  2.  

Navigating Graphs

  1. The sequence e – d – b – e – f is both a walk and a trail. It is not a path due to the repeated vertex e.
  2.  
  3. This is not a valid walk, trail, or path. There’s no direct edge from f to b, the sequence e – f – b – d cannot occur without passing through another vertex or edge. 
  4.  
  5.  The sequence m – n – o – q – n – p – o – n – m is a closed walk because it starts and ends at the same vertex (m) and traverses through edges more than once. It is not a circuit (closed trail) because it uses some edges more than once. It is also not a cycle (closed path) because it revisits vertices.
  6.  

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.  Graphs 11, 12, and 13 are all connected.
  2.  
  3. Graph 12

Euler Trails

  1.  
  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.  
  4. Multigraph 14
  5.  

Hamilton Circuits

  1. Yes, beginning the Euler trail at vertex d is a good choice, as Fleury’s algorithm requires that for a graph with an Eulerian trail (a trail that visits every edge exactly once), the trail must start (and end) at one of the vertices with an odd degree. The path d→a→b→e→d→f→c→g→f, starts and ends with the vertices that have an odd degree, and does not repeat an edge.
  2.  
  3. One option is: d→a→b→e→d→f→c→g→f
  4.  
  5. The sequence m → n → q → o → p → m is a Hamiltonian cycle but not an Eulerian circuit in Graph K.
  6.  
  7. [latex]39,916,800[/latex]
  8.  
  9. [latex]239,500,800[/latex]
  10.  
  11. [latex]70[/latex]

Hamilton Paths

  1.  
  2. Euler trail
  3.  
  4. Neither

Traveling Sales Person Problem

  1.  
  2. The approach described is a brute force algorithm. In a brute force algorithm, all possible solutions are generated and evaluated to find the best solution. In this case, the traveler lists all possible orders in which the cities can be visited, calculates the cost for each possible itinerary, and then selects the one with the least expensive airfare.
  3.  
  4. The distinct Hamiltonian cycles beginning at vertex ‘m’ in Graph 18, not counting reversals as distinct, are:
    • m → n → o → p → q → m
    • m → n → o → q → p → m
    • m → n → p → o → q → m
    • m → n → p → q → o → m
    • m → n → q → o → p → m
    • m → n → q → p → o → m
    • m → o → n → p → q → m
    • m → o → n → q → p → m
    • m → o → p → n → q → m
    • m → o → p → q → n → m
    • m → o → q → n → p → m
    • m → o → q → p → n → m
    • Note: each cycle can be reversed
  5.  
  6. Cycles a→c→b→d→a and a→d→b→c→a have the lowest weight of [latex]18[/latex].

Spanning Trees

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

  1.  
  2. Answers may very
  3.  
  4. Answers may very

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.  
  2.