courses › Counting & Discrete Math

Graphs & networks

level 47 course

Points joined by lines: edges, degrees, trees, and routes.

Pen and paper is fine · no calculator needed why?

Learn first (about 3 minutes)

Opens at level 47.

Sign in to start

Builds on: Combinations (not open yet)

the lesson

The idea, the techniques and a tip for each skill, right here. The Learn page adds worked examples for every skill and untimed practice.

Read the lesson · about 3 minutes

The idea

A graph is a set of points (vertices) joined by lines (edges). A vertex's degree is the number of edges touching it.

Every edge has two ends, so adding up all the degrees counts each edge twice. That one fact gives the edges from a degree list, and the edges of a complete graph, where every pair of n points is joined.

A tree is connected with no cycles (closed loops), and has one edge fewer than vertices. An Euler path traces every edge exactly once; an Euler circuit also ends where it started. The odd-degree vertices decide which you get.

Techniques

Add the degrees, then halve

Edges from a list of degrees, a complete graph, or handshakes.

  1. Add up all the degrees.
  2. Halve the total: each edge was counted at both ends.
  3. Every pair of n points joined: each has degree n − 1, so n × (n − 1) ÷ 2 edges.
worked example

Example: At a meeting, 8 people each shake hands once with every other person. How many handshakes are there?

  1. Each person shakes 7 hands: 8 × 7 = 56.
  2. Each handshake was counted twice: 56 ÷ 2 = 28.

Answer: 28

Trees: one edge fewer

A tree or a forest (several separate trees).

  1. A tree with n vertices has n − 1 edges.
  2. A forest of c trees with n vertices in all has n − c edges.
worked example

Example: A forest (a graph with no cycles) is made of 4 separate trees with 30 vertices in all. How many edges does it have?

  1. Each tree has one edge fewer than it has vertices.
  2. 30 − 4 = 26.

Answer: 26

Count the odd degrees

Whether a connected graph can be traced edge by edge.

  1. Count the vertices with odd degree.
  2. None: an Euler circuit.
  3. Exactly two: an Euler path from one odd vertex to the other, but no circuit.
  4. Four or more: neither.
worked example

Example: A connected graph has vertex degrees 2, 3, 4, 3 and 2. How many of its vertices have odd degree?

  1. The two vertices of degree 3 are odd.
  2. Exactly two, so an Euler path but no circuit.

Answer: 2

Tips by skill

  • TipEvery pair joined: Every pair gives one edge: n × (n − 1) ÷ 2.
  • TipDegrees to edges: Add all the degrees, then halve: each edge is counted once at each end.
  • TipTrees: One tree: vertices minus 1. A forest: vertices minus the number of trees.
  • TipTrace every edge once: In a connected graph, count the odd degrees. None: a circuit. Exactly two: a path but no circuit. Four or more: neither.

Watch out for

  • Forgetting to halve. Adding the degrees, or multiplying n by n − 1, counts every edge from both ends.
  • Giving a tree one edge per vertex. That many edges would close a cycle.
  • Calling two odd vertices a circuit. A circuit needs every degree to be even.

skills · practice stats

From rounds of this course only: box, review and test-out answers are left out. Once a skill has 40 tries, it compares your first 20 tries with your last 20.

rest ladder

Win 3 of your last 4 rounds and the course rests. A win is 90% right, within 2× the round's par. Pass the review when it comes back and the next rest is longer.

  1. 1 day
  2. 3 days
  3. 7 days
  4. 14 days
  5. 30 days
  6. 60 days
  7. mastered · every 90 days

your rounds

No rounds yet.