The Language of Graphs: Degrees, Paths, Trees and Special Graphs | Edexcel IAL Maths notes
Free preview: The Language of Graphs: Degrees, Paths, Trees and Special Graphs
What Is a Graph? Vertices, Edges and Degrees
Unit D1 (WDM11): Decision Mathematics 1
Let's start with a map of towns joined by roads. Forget distances and directions for a moment: all that matters is which towns are joined. A tube map works the same way: it is badly out of scale, but it tells you exactly which stations connect. That kind of picture is a graph.
- In Decision Maths a graph is a set of points called vertices (or nodes) joined by lines called edges (or arcs).
- It is not a graph of y against x. The positions and lengths on the page do not matter, only which vertices are joined.
- The degree (or valency, or order) of a vertex is the number of edge ends at it.
- A vertex is odd or even according to its degree.

Following the diagram
- The two edges joining C and D are multiple edges.
- The edge from E back to E is a loop. A loop has both ends at E, so it adds 2 to the degree of E.
- E has edges to A, B and D, plus the loop: .
- Adding the degrees: , which is twice the 8 edges.
How to find a degree (the recipe)
- Put your finger on the vertex.
- Count every line end touching it. Why: degree counts ends, not neighbours.
- Count a loop twice. Why: both of its ends are at this vertex.
- Count each of several edges to the same neighbour separately. Why: C has three edge ends from B, D and D again, so degree 3.
💡 In plain words
- This is the handshaking lemma: if people shake hands, the total of everyone's handshake count is twice the number of handshakes, because each handshake involves two hands.
- Every edge has two ends, and each end adds 1 to some degree. So each edge adds exactly 2 to the total.
- Consequence: the sum of degrees is even, so a graph always has an even number of odd vertices.
More words
- A simple graph has no loops and no multiple edges.
- A graph is connected if you can get from any vertex to any other along edges.
- A subgraph is part of a graph: some of its vertices and some of the edges between them.
- A weighted graph or network has a number (weight) on each edge, such as a distance, time or cost.
📝 Right vs wrong
- Wrong: "E is joined to A, B, D and itself, so degree 4." Right: the loop gives 2 ends, so degree 5.
- Wrong: edges = sum of degrees. Right: edges = half the sum of degrees.
✏️ YOUR TURN 1
Try this first:
(a) A graph has vertices of degrees 4, 3, 3, 2 and 2. How many edges does it have? (b) Can a graph have degrees 2, 3, 3, 3, 2 and 2?
Answer:
- (a) Sum , so edges.
- (b) Sum , which is odd. The sum must be twice a whole number, so no such graph exists. (Equivalently, it has three odd vertices, an odd number.)
Walks, Trails, Paths and Cycles
Once we have a graph, we want to move around it: deliver post, inspect roads, visit every town. We need exact words for the different kinds of route, because the later algorithms care whether you repeat a vertex or an edge.
Ways of moving around a graph
| Word | Meaning | Can repeat vertices? | Can repeat edges? |
|---|---|---|---|
| Walk | Any route along edges, where the end of one edge is the start of the next | Yes | Yes |
| Trail | A walk with no edge repeated | Yes | No |
| Path | A walk with no vertex repeated (so no edge repeated either) | No | No |
| Cycle | A closed path: it ends where it started, and no other vertex is repeated | Only the start = finish | No |
- In the first diagram, A–B–E–A is a cycle, A–B–C–D–E is a path, and B–E–A–B–C is a trail but not a path (B repeats).

What the picture shows
- All three routes are drawn on the same graph.
- The cycle A–B–E–A comes back to where it started.
- The path A–B–C–D–E never visits a vertex twice.
- The trail B–E–A–B–C visits B twice (pink) but never uses an edge twice, so it is a trail but not a path.
How to classify a route (the recipe)
- Check every step is along an edge. If not, it is not even a walk.
- List the edges used. Is any edge repeated? If yes, it is only a walk.
- List the vertices. Is any vertex repeated? If no, it is a path. If yes, it is a trail.
- Exception: does the route return to its start, with no other vertex repeated? Then it is a cycle (a closed path).
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
All notes in D1.2 Graphs, Spanning Trees and Shortest Paths
- The Language of Graphs: Degrees, Paths, Trees and Special Graphs
- Eulerian and Hamiltonian Graphs and Isomorphism
- Kruskal's and Prim's Algorithms on a Network
- Prim's Algorithm on a Distance Matrix and Spanning Tree Problems
- Dijkstra's Algorithm: Shortest Routes with Working Values
What's inside for this topic
5 teacher notes, 109 practice questions, 40 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Next note: Eulerian and Hamiltonian Graphs and Isomorphism