Graphs and networks — Queensland Year 12 General Mathematics
Graph terminology, network diagrams, adjacency matrices, planar graphs and Euler's formula, walks, trails, paths and shortest paths, and Eulerian and Hamiltonian graphs. Six subtopics and 120 questions.
What you learn in Graphs and networks
Graphs and networks begins the networking half of Unit 4. A graph is a set of vertices joined by edges, and it can model roads between towns, flights between airports or friendships in a group. You learn the language first: the degree of a vertex, loops, simple, complete and bipartite graphs, directed graphs (digraphs) and weighted graphs. You draw network diagrams from tables and descriptions, write the adjacency matrix of a graph or digraph, and draw the graph that a given matrix describes.
Next come planar graphs, which can be drawn with no edges crossing, and Euler's formula \(v + f - e = 2\), which links vertices, faces and edges. You learn the differences between a walk, a trail, a path and a cycle, spot bridges, and find the shortest path in a weighted network by comparing routes. The topic ends with two famous kinds of route: Eulerian trails and circuits, which use every edge exactly once, and Hamiltonian paths and cycles, which visit every vertex exactly once. There are six subtopics and 120 questions, each with a fully worked solution.
Subtopics
Graphs and networks: common questions
What is the degree of a vertex?
It is the number of edge ends that meet at the vertex, and a loop counts twice. Adding the degrees of all the vertices always gives twice the number of edges, because every edge has two ends.
What is an adjacency matrix?
It is a square table with one row and one column for each vertex. Each entry is the number of edges joining that pair of vertices, and a loop is entered as 1 on the diagonal. For a directed graph, the entry in row A, column B counts the arcs going from A to B.
How do you use Euler's formula?
For a connected planar graph, \(v + f - e = 2\), where \(v\) is the number of vertices, \(f\) is the number of faces (including the outside region) and \(e\) is the number of edges. A connected planar graph with 9 vertices and 14 edges has \(f = 2 - 9 + 14 = 7\) faces.
When does a graph have an Eulerian circuit or an Eulerian trail?
A connected graph has an Eulerian circuit, and is Eulerian, if every vertex has even degree. It is semi-Eulerian, with an Eulerian trail but no circuit, if exactly two vertices have odd degree; the trail must start at one odd vertex and finish at the other. With more than two odd vertices, neither exists.
What is the difference between Eulerian and Hamiltonian routes?
An Eulerian trail or circuit uses every edge exactly once. A Hamiltonian path or cycle visits every vertex exactly once and does not need to use every edge. There is no simple degree test for Hamiltonian graphs, so they are found by trial and error.