2.2 Connected, disconnected, directed and undirected graphs — Practise with help
Warm-up: remember
- A network has vertex degrees . What is the sum of the degrees, and how many edges has the network?
- A complete network has 4 vertices. Write down the degree of each vertex.
Answers and feedback
- Sum , so . The sum must be even, and is.
- Each vertex is joined to the other 3, so every degree is .
Practise with help
1. A network has vertices joined to each other, and a separate vertex with one edge to . How many components has the network?
Hint
A component is a set of vertices that can all reach one another.
Next step
is one component. What can and reach?
Full working
form one component. and can reach each other and nothing else, so is a second component. The network has 2 components and is disconnected.
2. A connected network has degrees . Does it have an Eulerian trail? If so, what kind?
Hint
Count the vertices of odd degree.
Next step
There are 0 odd-degree vertices.
Full working
With 0 odd-degree vertices and a connected network, an Eulerian trail exists and can start and finish at the same vertex. It is an Eulerian circuit.
A simple example is a hexagon: walk round it and you have used every edge once and returned to the start.
3. A connected network has degrees . How many odd-degree vertices has it, and can a trail use every edge exactly once?
Hint
Odd means not divisible by 2.
Next step
and are odd; the three s are even.
Full working
There are exactly 2 odd-degree vertices, and . The test is satisfied, so an Eulerian trail exists. It must start at one of the odd-degree vertices and finish at the other — those are the only two places a trail can begin or end without leaving an edge unused.
4. In a directed network, vertex has out-degree and in-degree . Another vertex has out-degree and in-degree . Write down the degree of each, and say which vertex more traffic flows into.
Hint
Degree is the sum of the two. Traffic flows in along the arriving arrows.
Next step
and . Compare the in-degrees.
Full working
More traffic flows into , because its in-degree is against 's . The degrees are equal, which shows that the ordinary degree does not tell you which way the traffic goes — that is why directed networks need two numbers, not one.
5. A route through a network is . Is it a walk, a trail, a path or a cycle? Say what repeats.
Hint
Check whether an edge repeats, then whether a vertex repeats.
Next step
is visited twice, at the start and in the middle.
Full working
repeats, so it is not a path. No edge repeats — each of the four steps uses a different edge — so it is a trail. It is not a cycle, because a cycle must return to its starting vertex at the end, and this route ends at .
So it is a trail, and neither a path nor a cycle.
6. Explain why a network with an Eulerian trail cannot have four vertices of odd degree.
Hint
Every time a trail passes through a vertex it uses two of that vertex's edges. Where do the odd edges end up?
Next step
Only the start and the finish can be left with an odd number of used edges.
Full working
An Eulerian trail uses every edge. At any vertex that is neither the start nor the finish, the trail arrives as many times as it leaves, so its edges are used in pairs and its degree is even. Only the start has one extra edge leaving, and only the finish has one extra edge arriving. So at most two vertices can have odd degree. Four is more than two, so no such trail exists.
A question from Section 2.1
7. The handshake lemma says the number of odd-degree vertices is even. How does that agree with the Eulerian test, which allows 0 or 2 but not 4?
Hint
The lemma says the count is even. The test says which even counts are useful.
Next step
Even counts are
Full working
The lemma allows odd-degree vertices — any even number. The Eulerian test is stricter: only and work. A network with four odd-degree vertices is perfectly possible; it cannot be travelled in one trail that uses every edge once.
So the lemma tells you which networks can exist, and the test tells you which of those can be traversed. They answer different questions, and the test only makes sense once you know the lemma is satisfied.
8. A one-way system is drawn as an undirected network with the direction written on each street. Explain one question this loses the answer to, and how a directed network answers it.
Hint
Think about a journey that must be possible, not only short.
Next step
An undirected edge can be travelled either way; an arrow cannot.
Full working
The undirected drawing says two places are connected, but not whether you can actually get from one to the other. A street may run the wrong way, so there is a connection and no route.
A directed network answers it: a route from to exists only if there is a chain of arrows all pointing the right way. That is the difference between "these two places are joined" and "you can drive from here to there", and it is the reason one-way systems are modelled as directed networks.