Skip to content
The Lumenary

Each worksheet prints cleanly on A4 or Letter. Answer keys are on a separate page.

The Lumenary · Grades 9–12

Graphs

Name: ______________________

Date: ______________________

You will learn to

  • Model networks with graphs and use the vocabulary of vertices, edges, degrees, walks, paths, cycles and connectedness
  • Prove the handshake lemma and deduce that every graph has an even number of vertices of odd degree
  • Prove Euler's theorem that a connected graph has an Euler circuit exactly when every vertex has even degree, and its version for Euler trails
  • Prove that a tree with nn vertices has n−1n - 1 edges and that any two of its vertices are joined by exactly one path
  • Decide whether two small graphs are isomorphic, using invariants to prove that they are not
  1. 1.

    A graph has seven vertices, with degrees 3,3,2,2,2,1,13, 3, 2, 2, 2, 1, 1. How many edges does it have?

  2. 2.

    Can there be a group of 77 people in which every person knows exactly 33 of the others (knowing being mutual)?

    • A.No: the numbers of acquaintances would add up to 7×3=217 \times 3 = 21, which is odd, but they must add up to twice the number of pairs who know each other.
    • B.Yes: arrange the 77 people in a circle and let each know their neighbours and the person opposite.
    • C.No, because 33 is more than half of 77.
    • D.Yes, but only if one person knows nobody.
  3. 3.

    An engineering cooperative lays water pipes to connect 5050 villages in a region of Bolivia so that water can flow between any two villages, using as few pipes as possible: the network has no loops. Each pipe joins two villages. How many pipes are there?

  4. 4.

    A connected graph has six vertices with degrees 2,4,3,3,4,22, 4, 3, 3, 4, 2. Which statement is true?

    • A.It has an Euler trail that starts at one vertex of degree 33 and ends at the other, but no Euler circuit.
    • B.It has an Euler circuit.
    • C.It has no Euler trail at all.
    • D.Such a graph cannot exist, because the degrees add up to an odd number.
  5. 5.

    The cube graph has the 88 corners of a cube as vertices and its 1212 edges as edges. Which statements are true? (Choose all that apply.)

    • A.It has a Hamiltonian cycle (a cycle visiting every vertex exactly once).
    • B.It has an Euler circuit.
    • C.It has no Euler trail.
    • D.It has 8×32=12\frac{8 \times 3}{2} = 12 edges, consistent with the handshake lemma.
  6. 6.

    To prove that a tree with at least two vertices has a leaf, we take a longest path v0,v1,…,vkv_0, v_1, \dots, v_k and show that vkv_k is a leaf. Why can vkv_k have no neighbour other than vk−1v_{k-1}?

    • A.A neighbour outside the path would give a longer path, and a neighbour viv_i with i<k−1i < k - 1 would close a cycle.
    • B.Because a tree with nn vertices has n−1n - 1 edges.
    • C.Because the degrees add up to twice the number of edges.
    • D.Because vkv_k was chosen to have the smallest degree.
  7. 7.

    How many trees with 55 vertices are there up to isomorphism — that is, how many different shapes?

  8. 8.

    In the lesson's Lean model, IsEulerCircuit G w says that the walk w crosses every edge of the multigraph G exactly once and ends where it started. Which statement is a correct formalisation of the necessity half of Euler's theorem for circuits?

    • A.IsEulerCircuit G w → ∀ v, Even (degree G v)
    • B.(∀ v, Even (degree G v)) → ∃ w, IsEulerCircuit G w
    • C.IsEulerCircuit G w → ∃ v, Even (degree G v)
    • D.IsEulerCircuit G w → ∀ v, Odd (degree G v)
  9. 9.

    A connected multigraph on the vertices 0,1,…,n−10, 1, \dots, n - 1 is given as a list of edges (a, b) (pairs may repeat). Write euler_status(n, edges) that returns "circuit" if it has an Euler circuit, "trail" if it has an Euler trail but no circuit, and "none" otherwise, using Euler's theorem. (Assume at least one edge.)

    Computational — Practice

Code: Apache-2.0 · Content: CC BY-SA 4.0