Topic 3.14 · Applications and Interpretation HL

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.

count them
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 handshake lemma

Every edge has two ends. Adding up the degrees counts every edge exactly twice, once at each end. So:

sum of the degrees = 2 × (number of edges)

For the graph in the figure, with degrees 3, 3, 2, 2, 2, 2:

sum = 14,   so edges = 14/2 = 7

and for the complete graph on 5 vertices, where every vertex is joined to the other four:

sum = 5 × 4 = 20,   so edges = 10

In general Kn has n(n − 1)/2 edges: K4 has 6 and K6 has 15.

The degree sum is always even. It is twice something, so it has to be. And that gives you a test no drawing can:

Can a graph have degrees 3, 3, 3, 2, 2, 2?

The sum is 15, which is odd. So no: no such graph exists, and no amount of trying to draw one will help. It is the one kind of question here you can settle without looking at a graph at all.

Trees and cycles, counted. A tree on 6 vertices has exactly 5 edges. The figure's graph has 7, which is 2 more, and in a connected graph every edge beyond n − 1 forces a cycle. This one is connected, so it has 2 independent cycles, and you knew that before finding either of them. Here they are: A-B-C-A, and A-B-E-F-D-A. The connectedness matters: six vertices and seven edges split into a K₄ and a separate single edge would give 3 independent cycles instead, so count the pieces before you count the cycles.

Directed graphs

Put an arrow on each edge and each vertex gets two numbers:

  1. In degree: arrows pointing at it.
  2. Out degree: arrows leaving it.

Every edge contributes one to somebody's in degree and one to somebody's out degree, so

sum of in degrees = sum of out degrees = number of edges

which for 7 directed edges is 7 each, not 14. The doubling is gone, because the two ends are now being counted in two different totals rather than in one.

On the GDC: graphs are not graphs

The Graph menu on both machines plots functions. It knows nothing about vertices and edges, and there is no graph-theory mode on either. What the calculator is for in 3.14 is arithmetic and, from 3.15 onwards, matrix powers.

When you may use it. Applications. A calculator is allowed in every paper, and in this sub-topic it earns its place on exactly one job: n(n − 1)/2 for a large complete graph, where K20 having 190 edges is faster typed than reasoned.

TI-Nspire CX II

  1. A Calculator page, and define it once: k(n):=n*(n-1)/2
  2. k(5) gives 10, k(6) gives 15, k(20) gives 190
  3. From 3.15 on, the useful commands are matrix ones: menu → Matrix & Vector → Create → Matrix, which asks for the number of rows and columns, and a^2 for its square
  4. There is no vertex-and-edge tool. Draw the graph on paper

Casio fx-CG50

  1. MENU → Run-Matrix for the arithmetic: 20*19/2 gives 190
  2. F3 MAT/VCT is where the adjacency matrices of 3.15 are entered
  3. The Graph application plots y against x and has nothing to do with this sub-topic
  4. Draw the graph on paper, and redraw it without crossings if you can

The mark people lose. Counting edges off a drawing. On the figure's graph, three pairs of edges cross and the usual miscounts are 6 and 8. The degree sum takes the same information and halves it, and a miscounted degree shows up as an odd total, which tells you immediately that you have gone wrong. An odd degree sum is never the graph's fault; it is always yours.

Your turn

1. A graph has degrees 3, 3, 2, 2, 2 and 2. What is the sum of the degrees?

2. How many edges does it have?

3. How many edges does the complete graph K5 have?

4. And K6?

5. Can a graph have degrees 3, 3, 3, 2, 2, 2?

Question 5. Can a graph have degrees 3, 3, 3, 2, 2, 2?
Where the marks go

1 markThe degrees, read off correctly.

1 markThe handshake lemma stated or used.

1 markThe edge count, or the impossibility with its reason.

On an impossibility question the reason is the mark. "No" on its own scores nothing; "the degree sum is odd and every degree sum is even" scores all of it.

Want a verdict on your own draft?

These pages are free and stay free, but they are general and your IA is not. Send me your research question, or whatever exists so far, and I will tell you in writing whether the topic has a ceiling on it, where the marks are going, and what to change first. That costs nothing and it comes back within 24 hours.

Written by a serving IB Diploma and Career-related Programme Coordinator and Head of Mathematics, who reads internal assessments across every subject group every year. If you then want the whole draft reviewed properly against all five criteria, that is the paid one, and it is refunded if it does not name at least three specific things to fix.

Send me your question, free

Already have a full draft? Have the whole thing reviewed against all five criteria, $99.