A new campus has eight buildings, and the IT office has to join them with fibre. Cable is expensive and digging is worse, so the first question is how few cables will do. You might expect the answer to depend on where the buildings stand, but it doesn't. Any network that links eight buildings and has no wasteful loop uses exactly seven cables, whatever the map looks like. Then a more careful engineer asks the second question: what if a digging crew cuts one cable, or one building's switch burns out? Does the network fall in two? A network that survives needs more than the cheapest layout, and how much more is something we can count exactly.
Both questions are about the same object, a graph, and both have clean answers. This chapter is the graph theory that comes after the vocabulary: trees (the cheapest connected networks), connectivity (how hard a network is to break), and the families of graphs that exam papers name and expect you to know by their numbers. The words vertex, edge, degree, path and cycle, and the counting of degrees and edges, are in ds-5; here we use them freely.
By the end you will be able to prove that a tree on n vertices has n − 1 edges and use that in both directions, count leaves, spanning trees and independent cycles, find bridges and cut vertices, compute connectivity, and know the named graphs (path, cycle, wheel, hypercube, complete, complete bipartite, Petersen) by their numbers. Subgraphs, complements, joins, tournaments and strongly connected pieces come last.