Leaving Certificate Applied Mathematics2.2 Connected, disconnected, directed and undirected graphs

All books

2.2 Connected, disconnected, directed and undirected graphs — Practise with help

Warm-up: remember

  1. A network has vertex degrees 4,4,3,34, 4, 3, 3. What is the sum of the degrees, and how many edges has the network?
  2. A complete network has 4 vertices. Write down the degree of each vertex.
Answers and feedback
  1. Sum =14= 14, so E=7E = 7. The sum must be even, and 1414 is.
  2. Each vertex is joined to the other 3, so every degree is 33.

Practise with help

1. A network has vertices A,B,CA, B, C joined to each other, and a separate vertex DD with one edge to EE. How many components has the network?

Hint

A component is a set of vertices that can all reach one another.

Next step

{A,B,C}\{A, B, C\} is one component. What can DD and EE reach?

Full working

{A,B,C}\{A, B, C\} form one component. DD and EE can reach each other and nothing else, so {D,E}\{D, E\} is a second component. The network has 2 components and is disconnected.

2. A connected network has degrees 2,2,2,2,2,22, 2, 2, 2, 2, 2. 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 5,3,2,2,25, 3, 2, 2, 2. 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

55 and 33 are odd; the three 22s are even.

Full working

There are exactly 2 odd-degree vertices, 55 and 33. 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 PP has out-degree 33 and in-degree 22. Another vertex QQ has out-degree 11 and in-degree 44. 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

deg⁡(P)=3+2\deg(P) = 3 + 2 and deg⁡(Q)=1+4\deg(Q) = 1 + 4. Compare the in-degrees.

Full working deg⁡(P)=3+2=5deg⁡(Q)=1+4=5\deg(P) = 3 + 2 = 5 \qquad \deg(Q) = 1 + 4 = 5

More traffic flows into QQ, because its in-degree is 44 against PP's 22. 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 A→B→C→A→DA \to B \to C \to A \to D. 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

AA is visited twice, at the start and in the middle.

Full working

AA 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 DD.

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 0,2,4,6,…0, 2, 4, 6, \dots

Full working

The lemma allows 0,2,4,6,…0, 2, 4, 6, \dots odd-degree vertices — any even number. The Eulerian test is stricter: only 00 and 22 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 AA to BB 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.

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.