KS Maths
Topic 3.14 · Applications and Interpretation HL

Graph theory

Count the handshakes, not the edges

Three pairs of edges cross in the drawing, which is enough to make a direct count unreliable. Add up the degrees instead: 3 + 3 + 2 + 2 + 2 + 2 = 14, so there are 7 edges, with no counting at all.

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

graph
A picture that shows how numbers relate.The graph shows distance and time.
vertex
A corner of a shape. Also, the turning point of a parabola.A triangle has three vertices.
edge
A line where two faces meet. In graph theory, a line joining two points.A cube has twelve edges.
degree
The highest power of x in a polynomial. Also, the unit for measuring angles.The degree of x cubed plus x is 3.
odd
A whole number that leaves remainder 1 when divided by 2.7 is an odd number.
adjacent
Next to. In a right-angled triangle, the side beside the angle.Adjacent is the side touching the angle.
network
Points joined by lines, like a map of roads.A road map is a network.
handshake
In a network, the sum of all degrees is twice the number of edges.Each edge joins two points, so it is counted twice.
at least
This number or more.At least 5 means 5 or more.
exact
Not rounded. Completely correct.The exact answer is one third, not 0.33.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Four quick ones from earlier work. Try each on paper before you open the answer.

  1. Seven people at a meeting each shake hands once with every other person. How many handshakes are there?
    Answer

    21. Each of 7 people shakes 6 hands, which is 42, but that counts every handshake twice, so halve it. This is n(n − 1)/2, the edge count of a complete graph.

  2. Is the sum of three odd numbers odd or even? Try 3 + 5 + 7.
    Answer

    Odd: 3 + 5 + 7 = 15. Two odd numbers make an even one, and a third odd number makes it odd again. This parity idea is what the handshake lemma turns on.

  3. A network joins 5 towns with 4 roads, and you can travel between any two towns. Is there a cycle in it? Explain.
    Answer

    No. Joining 5 towns into one connected network needs at least 4 roads, so with exactly 4 there is no spare road to close a loop. A connected network with no cycle is a tree.

  4. Five vertices have degrees 4, 3, 3, 2 and 2, and a sixth vertex has degree x. The graph has 9 edges. Find x.
    Answer

    x = 4. The degrees add to 2 × 9 = 18, the five known ones add to 14, so x = 18 − 14. Doubling the edge count is the step to remember.

Words used in this lesson
vertex (plural vertices)
a point of a graph, usually drawn as a dot. For example: a graph with 6 vertices.
edge
a line joining two vertices. For example: the edge between vertices A and B.
degree
the number of edges meeting at a vertex. For example: a vertex with 4 roads meeting there has degree 4.
adjacent
next to each other, joined by an edge. For example: two towns joined by a road are adjacent.
simple graph
a graph with no loops and no repeated edges. For example: two roads between the same pair of towns is not simple.
connected
you can get from every vertex to every other by some route. For example: a network in two separate pieces is not connected.
complete graph
every pair of vertices is joined. For example: K₄ has 6 edges.
cycle
a route that comes back to its start without repeating a vertex. For example: A to B to C and back to A.
explain why
give the reason, not only the answer. For example: “No, because the sum is odd” earns the mark.
hence
use the result you have just found. For example: “find the degree sum, and hence the number of edges”.
ABCDEFSix vertices, and some number of edges. Three pairs cross. Count them before moving on.The usual miscounts are 6 and 8. A drawing will not settle it.
not yetsum of the degrees
not yetedges
try countingverdict

The degree sum and a direct count are two independent routes to the edge total, and only one of them can be miscounted.

The words

WordWhat it means
VertexA point of the graph. Plural vertices.
EdgeA connection between two vertices.
Adjacent verticesTwo vertices joined by an edge.
Adjacent edgesTwo edges that share a vertex.
DegreeHow many edge-ends meet at a vertex. A loop counts twice.
SimpleNo loops, and no two vertices joined more than once.
CompleteEvery pair of vertices joined. Written Kn.
WeightedEach edge carries a number: a distance, a cost, a time.
DirectedEdges have arrows. Then each vertex has an in degree and an out degree.
ConnectedEvery vertex can be reached from every other by some route. A graph in two separate pieces is not.
Strongly connectedFor a DIRECTED graph: every vertex can be reached from every other following the arrows. A one-way system can be connected and not strongly connected.
SubgraphSome of the vertices and some of the edges between them.
TreeConnected, with no cycles. Always exactly n − 1 edges.
CycleA closed route that repeats no vertex except its start.

None of this is drawn information. The same graph can be drawn with edges crossing or not, in a circle or in a line, and it is the same graph. What matters is which pairs are joined, which is why the next sub-topic writes it as a matrix.

The rest of this lesson is in the full course

Still to come in this lesson:

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

IB Diploma plan: AI HL$99Every Diploma lesson in both courses and both levels, so a change of course never locks you out, and every lesson from Year 7 for the refreshers. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

AI HL Mock Exam Pack, $25BuyPlan $99