Skip to main content
ExamExplained
NSW · Maths Standard 2
Maths Standard 2 study scene
§-Syllabus dot point
NSWMaths Standard 2Syllabus dot point

What are the basic terms and components of a network, and how are real-world systems represented as graphs?

Use network terminology including vertex, edge, weight, degree, path, cycle and directed graph to describe and analyse networks

A focused answer to the HSC Maths Standard 2 dot point on network terminology. Vertices, edges, weights, degree and the handshake result, walks, paths and cycles, connected graphs, trees and the n minus 1 edges fact, traversability with the even-degree test for Eulerian trails, and worked Australian examples for transport networks and project schedules.

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

What this dot point is asking

NESA wants you to use the standard graph-theory vocabulary (vertex, edge, weight, degree, path, cycle, directed, connected). You should be able to read a network diagram, build a network from a table or a map, and answer questions about its structure. Everything else in this module, minimum spanning trees, shortest paths and critical path analysis, is built on this language. So getting the terms exactly right here pays off in every later question.

The answer

Weighted undirected graph with four vertices and five edges A weighted undirected graph. Vertices A and B sit at the top, C and D at the bottom. Edges and weights are AB 4, AC 7, BC 3, BD 5, CD 6. The degrees are A 2, B 3, C 3, D 2, which sum to 10, twice the number of edges. 4 7 3 5 6 A B C D 4 vertices, 5 edges; degrees 2 + 3 + 3 + 2 = 10 = twice the edge count.

Basic terminology

A network (or graph) is just a set of points joined by lines. The points and lines have precise names, and NESA expects you to use them.

The other core terms:

  • Weight. A number written on an edge giving a distance, time, cost or capacity. A graph carrying weights is a weighted graph (or network in the everyday sense).
  • Degree of a vertex. The number of edge-ends meeting at that vertex. A vertex with no edges has degree 00 (it is isolated); a vertex of degree 11 sits at the end of a single edge.
  • Loop. An edge from a vertex back to itself. A loop adds 22 to that vertex's degree, because both of its ends meet the same vertex.
  • In-degree and out-degree (directed graphs only). The number of edges pointing in to, and out from, the vertex.

Types of graphs

  • Undirected graph. Edges have no direction, for example a road that can be driven both ways.
  • Directed graph (digraph). Edges have direction, drawn as arrows. A one-way street, or a task that must finish before another starts.
  • Weighted graph. Each edge has a number attached (distance, time, cost, capacity).
  • Simple graph. No loops and no two edges joining the same pair of vertices (no multiple edges). Almost every HSC network is simple.
  • Connected graph. Every pair of vertices is joined by at least one path (see below). If not, the graph is disconnected and splits into separate components.

Degree and the handshake result

The single most tested structural fact in this dot point is the relationship between the degrees and the number of edges.

This result is often called the handshake result. Think of a party: if everyone shakes some hands, the total number of "hand-ends" is twice the number of handshakes, so it cannot be odd. Use it as a free self-check. If you count the degrees and the total is odd, you have miscounted, every time.

Here is the rule in action on a graph drawn from a table of road lengths.

Counting the degree of every vertex on a weighted graph A weighted graph with five vertices A, B, C, D, E. The outer cycle has edges AB 6, BC 4, CD 5, DE 8 and EA 9, and one chord BE 7 crosses the middle. A small accent badge just outside each vertex shows its degree: A has 2, B has 3, C has 2, D has 2 and E has 3. The degrees add to 12, which is twice the six edges. 6 4 5 8 9 7 A B C D E 2 3 2 2 3 Degrees in accent boxes: 2 + 3 + 2 + 2 + 3 = 12 = twice the 6 edges.

The accent boxes are the degrees: AA and CC and DD have degree 22, while BB and EE have degree 33 (each is on the outer cycle plus the central chord BEBE). The total is 2+3+2+2+3=122 + 3 + 2 + 2 + 3 = 12, which is exactly 2×62 \times 6 for the six edges. Notice there are two odd-degree vertices, BB and EE, an even number, as the handshake result guarantees.

Walks, paths and cycles

Three terms describe a journey through a graph, and the HSC distinguishes them carefully.

The length of a walk, path or cycle is the sum of the weights of its edges. If the graph has no weights, the length is just the number of edges. So in the first figure on this page, ABDA \to B \to D is a path of length 4+5=94 + 5 = 9, while ABCAA \to B \to C \to A is a cycle of length 4+3+7=144 + 3 + 7 = 14. One more term you will meet shortly is a trail: a walk that may repeat vertices but never repeats an edge. It sits between a walk and a path, and it is exactly what "traversing" a network means.

Connectedness and components

  • Connected graph. Every pair of vertices is joined by at least one path. You can get from anywhere to anywhere.
  • Disconnected graph. At least one pair of vertices has no path between them.
  • Component. A maximal connected piece of the graph. A connected graph has one component; a disconnected graph has two or more.

Connectedness matters because the optimisation methods later in the module (the methods that find the best, cheapest or shortest network) assume it. For instance, you cannot build a spanning tree of a disconnected graph, because no single tree can reach every vertex.

Trees and the n minus 1 edges fact

A particular kind of connected graph turns up constantly in this module.

This is the fact behind every minimum-spanning-tree question. The cheapest cable or pipe network joining nn towns always uses n1n - 1 links, so it is worth memorising now.

Traversability: can you draw it in one stroke?

A classic network question asks whether you can travel along every edge exactly once without lifting your pen. This problem was first solved by Euler, for the bridges of Konigsberg. A walk that uses every edge exactly once is a traversal, and a connected graph that has one is traversable.

The reason is simple. Every time a traversal passes through a vertex, it uses one edge to arrive and one to leave, so it uses up edges in pairs. That means a "pass-through" vertex needs an even degree. The only vertices allowed an odd degree are the two ends of the trail: the start, where you leave without arriving, and the finish, where you arrive without leaving. If the trail closes into a circuit, even those two must be even.

Tracing an Eulerian trail, stage by stage

The cleanest way to see the rule is to trace one. Below is a small network, a square ABCDA B C D with the diagonal ACA C, built up one edge at a time. First check the degrees, then follow the numbered edges.

Stage 1, check the degrees and pick a start. The degrees are AA: 33 (edges ABAB, ADAD, ACAC), BB: 22, CC: 33 (edges CBCB, CDCD, CACA), DD: 22. Exactly two vertices are odd, AA and CC (ringed in accent), so a trail exists but not a circuit, and it must begin at one odd vertex and end at the other. Start at AA.

The traversable network before tracing A square A, B, C, D with the diagonal A to C, giving five edges. Vertices A and C are ringed in accent because they have odd degree 3; B and D have even degree 2. No edge is traced yet. A B C D startfinish Two odd vertices (A and C), so a trail exists but not a circuit. Start at an odd vertex.

Stage 2, take the first two edges. Travel ABA \to B (edge 11), then BCB \to C (edge 22). Each edge is heavied in accent and numbered as it is used. So far no edge has been repeated, and from CC there are still untraced edges to leave by, so keep going.

Trace the first two edges from A The same network with the first two trail edges, A to B then B to C, drawn heavy in accent and numbered 1 and 2. The remaining three edges are muted. A B C D startfinish 1 2 Edges 1 and 2: A to B to C. Each edge is used once; keep going.

Stage 3, continue around the square. From CC, take CDC \to D (edge 33) and then DAD \to A (edge 44). You are back at the start vertex AA, but the trail is not finished: the diagonal ACAC is still untraced.

Continue around the square The same network with four trail edges traced and numbered: A to B, B to C, C to D, then D to A. Only the diagonal A to C is left, shown muted. A B C D startfinish 1 2 3 4 Edges 3 and 4: C to D to A. Only the diagonal A to C remains.

Stage 4, finish along the diagonal. Take ACA \to C (edge 55). All five edges are now used exactly once, and the trail ends at CC, the second odd vertex, exactly as the rule predicted. The completed trail is ABCDACA \to B \to C \to D \to A \to C.

Finish along the last edge All five edges are now traced and numbered 1 to 5 along the trail A, B, C, D, A, C, ending at C. Every edge has been used exactly once. A B C D startfinish 1 2 3 4 5 Edge 5: A to C. Trail A-B-C-D-A-C uses all 5 edges once, ending at the other odd vertex.

Had every vertex been even, the same tracing would have returned to its starting vertex (an Eulerian circuit). Had there been four odd vertices, you would have got stuck with edges left untraced no matter where you began.

Representing a graph: diagram, table and matrix

The same network can be written three ways, and the HSC moves between them.

  • Vertex-edge diagram. Circles joined by lines, with weights on the edges if any. This is what is usually drawn for you.
  • Adjacency table. A grid with a 11 where two vertices share an edge and a 00 where they do not (the diagonal is left blank, since a simple graph has no loops).
  • Weighted (network) matrix. The same grid, but each cell holds the weight of the edge instead of a 11, and a dash where no edge exists.

The two table forms make degree-counting mechanical: in an undirected graph the table is symmetric, and each row total is the degree of that vertex (count weighted-matrix entries, not the weights, for the degree).

Building a network from a table or a map

Questions often hand you a distance table or a street map and ask you to draw the network, or the reverse. The recipe is short:

  1. One vertex per place. List the locations (stations, towns, intersections) and draw a labelled circle for each. Spread them out so edges will not cross more than necessary.
  2. One edge per direct connection. Read the table or map. Wherever two places are directly joined, draw an edge between their vertices. Write the distance, time or cost on the edge as its weight.
  3. Add arrows only if direction matters. One-way streets and task-precedence relations are directed; ordinary roads and rail sections are not.
  4. Check with the handshake result. Add the degrees; the total must be twice the number of edges. If it is odd, recount.

Going the other way (network to table) is the same steps in reverse: one row and column per vertex, a weight wherever an edge exists.

How exam questions are phrased

Network-terminology questions rarely say "find the degree" in those words. Learn to translate the wording:

  • "How many edges meet at vertex XX?" or "State the degree of XX." Count the edge-ends at XX (a loop counts as 22).
  • "Find the sum of the degrees" or "... and explain why it is even." Use degree=2×(number of edges)\sum \text{degree} = 2 \times (\text{number of edges}), then say each edge is counted at both ends.
  • "Is the network connected?" Check that some path joins every pair of vertices; if not, name the components.
  • "Can the network be traversed / drawn without lifting the pen / travelled using each road exactly once?" Count the odd-degree vertices: traversable when there are 00 or 22. If 22, name a starting vertex (an odd one).
  • "Where must such a route start and finish?" At the two odd-degree vertices, if there are two; anywhere (returning to start) if there are none.
  • "Complete the adjacency / network matrix" or "Draw the network represented by this table." Convert between the diagram and the grid using the recipe above.
  • "List the vertices with in-degree greater than out-degree." A directed-graph counting task; tabulate in- and out-degree for each vertex, then read off.

Exam-style practice questions

Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

2022 HSC-style2 marksA network has 66 vertices and 99 edges. Find the sum of the degrees of all vertices, and explain why this must be even.
Show worked answer →

Sum of degrees = 2×2 \times number of edges = 2×9=182 \times 9 = 18.

The sum of the degrees of all vertices in any graph equals twice the number of edges, because every edge contributes 11 to each of its two endpoints. So the sum is always even.

Markers reward the formula, the calculation, and the explanation that each edge is counted twice.

2023 HSC-style3 marksA directed graph represents a one-way road network in a small Australian town. List the vertices that have an in-degree greater than out-degree, given vertices labelled A,B,C,D,E,FA, B, C, D, E, F and a description of the directed edges.
Show worked answer →

For each vertex, count edges pointing in (in-degree) and edges pointing out (out-degree). List the vertices for which in-degree exceeds out-degree.

Markers reward correct counting of in and out degrees for each vertex, identification of the vertices satisfying the condition, and clear notation distinguishing in and out degrees. Note that the sum of in-degrees over all vertices equals the sum of out-degrees, both equal to the number of directed edges.

2021 HSC-style2 marksDetermine whether the network drawn can be traversed (each edge used exactly once) and, if so, state a vertex at which such a trail can begin.
Show worked answer →

Find the degree of every vertex and count how many are odd.

A network can be traversed using each edge exactly once when it is connected and has either zero or exactly two vertices of odd degree. If every vertex is even, the trail can start anywhere and returns to its start (an Eulerian circuit). If exactly two vertices are odd, the trail must start at one of those odd vertices and finishes at the other (an Eulerian trail). Any other number of odd vertices means it cannot be traversed.

Markers reward counting the odd-degree vertices, stating the even-degree condition, and naming a valid starting vertex.

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation2 marksA small train line joins four stations in a row. The vertices are WW, TT, CC and RR, and the edges (direct track sections) are WTWT, TCTC and CRCR. State the degree of each station, and find the sum of the degrees.
Show worked solution →
List the degree of each vertex
Count how many edge-ends meet at each station. WW sits at the end of section WTWT only, so its degree is 11. TT is on WTWT and TCTC, so its degree is 22. CC is on TCTC and CRCR, so its degree is 22. RR is on CRCR only, so its degree is 11.
Add the degrees
The sum is 1+2+2+1=61 + 2 + 2 + 1 = 6.
Check with the handshake result
There are 33 edges, and degree=2×(number of edges)=2×3=6\sum \text{degree} = 2 \times (\text{number of edges}) = 2 \times 3 = 6. The total matches and is even, as it must be. Correct.
foundation2 marksA delivery depot PP is joined by a direct road to each of four shops AA, BB, CC and DD, and there are no other roads. The edges are therefore PAPA, PBPB, PCPC and PDPD. (a) State the degree of the depot PP. (b) State the degree of shop AA.
Show worked solution →
(a) Degree of the depot
Every one of the four roads has one end at PP, so four edge-ends meet there. The degree of PP is 44.
(b) Degree of a shop
Shop AA touches only the single road PAPA, so just one edge-end meets it. The degree of AA is 11 (and the same is true of BB, CC and DD).
Check with the handshake result
The degrees are 44, 11, 11, 11, 11, which sum to 88. There are 44 edges, and 2×4=82 \times 4 = 8. The totals agree, so the counts are right.
foundation3 marksA graph has vertices AA, BB, CC, DD with edges ABAB, BCBC, CACA and CDCD. (a) Write down the degree of every vertex. (b) State how many vertices have odd degree.
Show worked solution →
(a) Find each degree
Tick off the edges at each vertex. AA is on ABAB and CACA, so its degree is 22. BB is on ABAB and BCBC, so its degree is 22. CC is on BCBC, CACA and CDCD, so its degree is 33. DD is on CDCD only, so its degree is 11.
(b) Count the odd-degree vertices
Odd degrees occur at CC (degree 33) and DD (degree 11). That is 22 vertices of odd degree.
Check with the handshake result
The degrees sum to 2+2+3+1=8=2×42 + 2 + 3 + 1 = 8 = 2 \times 4 for the 44 edges, and the number of odd-degree vertices (22) is even, exactly as the handshake result guarantees. Correct.
foundation2 marksA connected network has 55 vertices and 77 edges. (a) Find the sum of the degrees of all the vertices. (b) Four of the vertices have degree 33 each. Find the degree of the fifth vertex.
Show worked solution →
(a) Use the handshake result
The sum of the degrees equals twice the number of edges: degree=2×7=14\sum \text{degree} = 2 \times 7 = 14.
(b) Subtract the known degrees
Four vertices contribute 4×3=124 \times 3 = 12 to the total of 1414, so the fifth vertex has degree 1412=214 - 12 = 2.
Check
The degrees are 33, 33, 33, 33, 22, which sum to 14=2×714 = 2 \times 7. The total is even and matches twice the edge count. Correct.
core3 marksA cable company plans a network on six towns AA, BB, CC, DD, EE, FF. The proposed links are ABAB, ACAC, CDCD, CECE and EFEF. (a) Explain whether this network is a tree. (b) State how many links a tree connecting these six towns must have.
Show worked solution →
(a) Test the tree definition
A tree is a connected graph with no cycles. Starting at AA you can reach BB and CC directly, then DD and EE from CC, then FF from EE, so all six towns are reachable and the graph is connected. There are 55 edges on 66 vertices, and no edge closes a loop (each town past the first is joined on by exactly one new link), so there is no cycle. The network is a tree.
(b) Apply the n1n - 1 fact
A tree on nn vertices has exactly n1n - 1 edges, so a tree connecting n=6n = 6 towns must have 61=56 - 1 = 5 links.
Check
The plan uses 55 links for 66 towns, which is exactly n1n - 1, consistent with it being a tree. The degrees 2+1+3+1+2+1=10=2×52 + 1 + 3 + 1 + 2 + 1 = 10 = 2 \times 5 also pass the handshake check. Correct.
core4 marksA network has vertices AA, BB, CC, DD and edges ABAB, BCBC, CDCD, DADA and the diagonal ACAC. (a) Find the degree of each vertex. (b) Decide whether the network can be traversed (every edge used exactly once), and if so state a vertex where such a trail can begin. (c) Write down one trail that uses every edge exactly once.
Show worked solution →
(a) Find the degrees
AA is on ABAB, DADA and ACAC, so degree 33. BB is on ABAB and BCBC, so degree 22. CC is on BCBC, CDCD and ACAC, so degree 33. DD is on CDCD and DADA, so degree 22.
(b) Apply the traversability rule
The graph is connected, and the odd-degree vertices are AA and CC (22 of them). A connected graph with exactly 22 odd-degree vertices has an Eulerian trail but no circuit, so it can be traversed and the trail must start at one odd vertex and finish at the other. Begin at AA (or at CC).
(c) Give a trail
One valid trail is ABCDACA \to B \to C \to D \to A \to C. It uses each of the 55 edges once and ends at CC, the other odd vertex.
Check
Degrees sum to 3+2+3+2=10=2×53 + 2 + 3 + 2 = 10 = 2 \times 5 for the 55 edges; exactly 22 vertices are odd; and the listed trail uses all 55 edges once. Correct.
core4 marksOne-way streets in a town are modelled by a directed graph on vertices AA, BB, CC, DD, EE with directed edges AoBA o B, BoCB o C, AoCA o C, CoDC o D, DoBD o B, EoAE o A and DoED o E. (a) Tabulate the in-degree and out-degree of each vertex. (b) List the vertices whose in-degree is greater than their out-degree.
Show worked solution →

(a) Count in and out at each vertex. For each arrow, add 11 to the out-degree of its tail and 11 to the in-degree of its head.

  • AA: in 11 (from EE), out 22 (to BB, CC).
  • BB: in 22 (from AA, DD), out 11 (to CC).
  • CC: in 22 (from BB, AA), out 11 (to DD).
  • DD: in 11 (from CC), out 22 (to BB, EE).
  • EE: in 11 (from DD), out 11 (to AA).

(b) Compare the two columns. In-degree exceeds out-degree at BB (2>12 > 1) and CC (2>12 > 1).

Check with the directed sum rule. The in-degrees sum to 1+2+2+1+1=71 + 2 + 2 + 1 + 1 = 7 and the out-degrees sum to 2+1+1+2+1=72 + 1 + 1 + 2 + 1 = 7. Both equal the 77 directed edges, so no direction was miscounted. Correct.

core3 marksAn undirected graph on vertices AA, BB, CC, DD, EE has the adjacency list of edges ABAB, AEAE, BCBC, BEBE, CDCD, DEDE. (a) State the degree of each vertex by counting its edges. (b) Decide whether the graph can be traversed using each edge exactly once, and name a suitable starting vertex if it can.
Show worked solution →
(a) Read each degree from the edge list
Count the edges containing each vertex. AA: ABAB, AEAE, degree 22. BB: ABAB, BCBC, BEBE, degree 33. CC: BCBC, CDCD, degree 22. DD: CDCD, DEDE, degree 22. EE: AEAE, BEBE, DEDE, degree 33.
(b) Apply the traversability rule
The graph is connected, and the odd-degree vertices are BB and EE (degree 33 each), which is exactly 22. A connected graph with 22 odd-degree vertices has an Eulerian trail, so it can be traversed; the trail must start at one odd vertex and end at the other. Begin at BB (one trail is BEDCBAEB \to E \to D \to C \to B \to A \to E).
Check
Degrees sum to 2+3+2+2+3=12=2×62 + 3 + 2 + 2 + 3 = 12 = 2 \times 6 for the 66 edges, and exactly 22 vertices are odd, so the rule applies and the count is consistent. Correct.
exam3 marksA graph is made of two triangles sharing a single vertex. The vertices are AA, BB, CC, DD, EE and the edges are ABAB, BCBC, CACA, CDCD, DEDE, ECEC. (a) Find the degree of every vertex. (b) Explain why this network has an Eulerian circuit, and write one down starting at AA.
Show worked solution →
(a) Find the degrees
AA: ABAB, CACA, degree 22. BB: ABAB, BCBC, degree 22. CC: BCBC, CACA, CDCD, ECEC, degree 44 (it is the shared vertex). DD: CDCD, DEDE, degree 22. EE: DEDE, ECEC, degree 22.
(b) Explain the Eulerian circuit
Every vertex has even degree, so the number of odd-degree vertices is 00, and the graph is connected. A connected graph with no odd-degree vertices has an Eulerian circuit: a trail using every edge exactly once that returns to its starting vertex, and it may begin anywhere. One such circuit from AA is ACEDCBAA \to C \to E \to D \to C \to B \to A.
Check
Degrees sum to 2+2+4+2+2=12=2×62 + 2 + 4 + 2 + 2 = 12 = 2 \times 6 for the 66 edges; there are 00 odd-degree vertices; and the listed circuit uses all 66 edges once and returns to AA. Correct.
exam4 marksA graph on seven vertices AA, BB, CC, DD, EE, FF, GG has edges ABAB, BCBC, ACAC, DEDE, EFEF, FGFG. (a) Explain whether the graph is connected, naming its components. (b) Hence explain whether the whole graph can be traversed using every edge exactly once.
Show worked solution →
(a) Trace the components
Starting at AA you can reach BB and CC (edges ABAB, ACAC, BCBC) but no further, since none of AA, BB, CC joins any of DD, EE, FF, GG. Starting at DD you reach EE, FF, GG along DEDE, EFEF, FGFG. So the graph is disconnected, with two components {A,B,C}\{A, B, C\} and {D,E,F,G}\{D, E, F, G\}.
(b) Apply the traversability rule
A single trail covering every edge exists only for a connected graph. Because the graph splits into two separate components, no one trail can cross from one component to the other, so the whole graph cannot be traversed using every edge exactly once. (Each component on its own is traversable, but that is two separate trails, not one.)
Check
Degrees are A2A 2, B2B 2, C2C 2, D1D 1, E2E 2, F2F 2, G1G 1, summing to 12=2×612 = 2 \times 6 for the 66 edges. The handshake check passes, but connectedness fails, so the no-traversal conclusion stands. Correct.
exam5 marksA connected network on six vertices AA, BB, CC, DD, EE, FF has edges ABAB, BCBC, CDCD, DEDE, EFEF. (a) State the number of edges and explain whether the network is a tree. (b) A planner now wants the network to contain a cycle. State the smallest number of extra edges that must be added to guarantee a cycle, and explain why.
Show worked solution →
(a) Count edges and test the tree definition
There are 55 edges joining the 66 vertices in a single chain. The graph is connected, and a connected graph on nn vertices with exactly n1n - 1 edges is a tree (it has no cycle). Here n=6n = 6 and n1=5n - 1 = 5, which matches, so the network is a tree.
(b) Find the extra edges needed
A tree has no cycle, and adding any one edge between two of its vertices creates a second path between them, which closes a cycle. So 11 extra edge is enough, and since a tree starts with no cycle at all, at least 11 is required. The smallest number of extra edges is therefore 11. (For example, adding AFAF closes the cycle ABCDEFAA \to B \to C \to D \to E \to F \to A.)
Check
Before the addition, 55 edges on 66 vertices gives n1n - 1, confirming a tree with no cycle. After adding 11 edge there are 66 edges on 66 vertices; a connected graph with nn vertices and nn or more edges must contain a cycle, so 11 edge does guarantee one. Correct.
exam6 marksA weighted road network has vertices AA, BB, CC, DD, EE, FF and edges with distances in km: AB(4)AB (4), AC(7)AC (7), BC(3)BC (3), BD(5)BD (5), CE(6)CE (6), DE(2)DE (2), DF(8)DF (8), EF(9)EF (9). (a) Find the degree of each vertex. (b) Use the handshake result to verify the number of edges. (c) Decide whether the network can be traversed using each road exactly once. (d) Find the length of the path AoBoDoFA o B o D o F and the path AoCoEoFA o C o E o F, and state which is shorter.
Show worked solution →
(a) Find the degrees
Count edges at each vertex. AA: ABAB, ACAC, degree 22. BB: ABAB, BCBC, BDBD, degree 33. CC: ACAC, BCBC, CECE, degree 33. DD: BDBD, DEDE, DFDF, degree 33. EE: CECE, DEDE, EFEF, degree 33. FF: DFDF, EFEF, degree 22.
(b) Verify the edge count
The degrees sum to 2+3+3+3+3+2=162 + 3 + 3 + 3 + 3 + 2 = 16. By the handshake result degree=2×(number of edges)\sum \text{degree} = 2 \times (\text{number of edges}), so the number of edges is 16÷2=816 \div 2 = 8, matching the eight roads listed.
(c) Apply the traversability rule
The odd-degree vertices are BB, CC, DD, EE, which is 44 of them. A connected graph is traversable only when it has 00 or 22 odd-degree vertices, so with 44 odd vertices this network cannot be traversed using each road exactly once.
(d) Add the weights along each path
For ABDFA \to B \to D \to F: AB+BD+DF=4+5+8=17AB + BD + DF = 4 + 5 + 8 = 17 km. For ACEFA \to C \to E \to F: AC+CE+EF=7+6+9=22AC + CE + EF = 7 + 6 + 9 = 22 km. Since 17<2217 < 22, the path ABDFA \to B \to D \to F is shorter.
Check
Degrees sum to 16=2×816 = 2 \times 8, so part (b) is consistent; there are 44 odd vertices, confirming part (c); and the path lengths 1717 and 2222 each add three edge weights, with the smaller giving the shorter route. Correct.
ExamExplained