The Language of Graphs
What a graph is and what it is not, with the Petersen graph as the running example: adjacency, degree, the handshake lemma, the standard graphs, subgraphs, and isomorphism. The unit then shows the proof methods every later unit uses, each on a statement about graphs: double counting, the pigeonhole principle, contradiction, induction by deleting a vertex, and the longest path argument.
1 Introduction
In the summer of 1735 the citizens of Königsberg, a trading town on the river Pregel, had a puzzle that nobody could settle. The river split the town into four pieces of land, seven bridges joined the pieces, and the question was whether a walk could cross every bridge exactly once. Leonhard Euler (1707-1783) presented the answer to the Academy of Sciences in St Petersburg on 26 August 1735, and his paper, printed in 1741 in the Academy’s volume for the year 1736, is cited by that year as the birth of graph theory. The answer was no, but the paper is remembered for the method by which Euler reached it, which was to leave out everything about the town except its connections. The shape of the islands, the length of the bridges, the width of the river, none of it mattered; all that mattered was which piece of land was joined to which, and how often. Four dots and seven lines between them hold the whole problem, and once the problem is that small, it can be solved for every town that ever existed. Unit 3 tells the story in full and proves Euler’s theorem.
The same dots and lines turned up, independently, wherever people had to think about connections. In 1865 the chemist August Kekulé (1829-1896) proposed that the six carbon atoms of benzene form a ring, and chemists were by then drawing molecules as atoms joined by bond lines, which are graphs with the atoms as vertices. The mathematician Arthur Cayley (1821-1895) counted the possible shapes of such molecules in 1874 and found that the problem was one about branching diagrams, the trees of Unit 4. James Joseph Sylvester (1814-1897) saw the connection to his own algebra and, in a note in the journal Nature in 1878, gave the diagrams the name they have carried since: graph. A century later the same pictures described the London Underground, in the diagram that Harry Beck (1902-1974) designed in 1931 and the Underground printed in 1933, with the stations as vertices and the lines between them drawn only in the eight directions of a compass. They also described the friendships among the pupils of a school, which the psychiatrist Jacob Moreno (1889-1974) drew as arrows between pupils in 1934, and today they describe the coauthors of a mathematician and the routers of the internet. A graph is the common language of all of these, and what is proved about graphs is true for every one of them at once.
The questions of graph theory are easy to ask. In 1852 a student in London, Francis Guthrie (1831-1899), noticed while colouring a map of the counties of England that four colours seemed to be enough to give neighbouring counties different colours, and asked whether four colours suffice for every map. The question passed from his teacher Augustus De Morgan (1806-1871) to the mathematicians of Europe. A proof published in 1879 by Alfred Kempe (1849-1922) stood for eleven years until Percy Heawood (1861-1955) found the gap in it in 1890 and rescued what could be rescued, which was a proof that five colours suffice. Four colours were finally proved enough in 1976 by Kenneth Appel (1932-2013) and Wolfgang Haken (1928-2022), 124 years after the question was asked, with a computer that checked 1,936 configurations one by one, in the first major theorem whose proof could not be checked by hand. Units 6 and 7 explain why the problem is about graphs and what the five colour proof looks like.
Other questions are still open. How many people must be at a party before there are certainly either five mutual acquaintances, that is, five guests who all know one another, or five mutual strangers, five guests of whom no two know each other? The answer lies between 43 and 46, and nobody knows which. Paul Erdős (1913-1996) proved in 1947, in a paper three pages long, that the number of guests needed for \(k\) mutual acquaintances or \(k\) mutual strangers grows at least like \(\sqrt{2}^{\,k}\), so that every further acquaintance wanted multiplies the number of guests by at least \(\sqrt{2} \approx 1.41\). The best upper bound known grows like \(4^{k}\), a power with the base 4, and that base had stood since 1935 when its first improvement appeared in 2023. Erdős wrote around 1,500 papers with more than 500 coauthors, and the graph of who wrote with whom is itself an object of study, as Section 5 describes. On a larger scale, the social psychologist Stanley Milgram (1933-1984) found in 1967 that a letter passed from acquaintance to acquaintance crossed the United States in about six steps, and in 2016 a pair of Facebook’s 1.6 billion users was found to be separated by 3.57 intermediaries on average, which is a distance of about 4.6 steps in the friendship graph. Unit 2 explains how such distances are computed and Unit 8 why they are so small.
What makes the subject a pleasure to learn is that almost everything in it can be drawn on a sheet of paper and checked by hand. A theorem about all graphs can be tested on a graph with seven vertices in a minute, a proof can be followed with a pencil, and the gap between a puzzle and a research problem is shorter here than in most of mathematics: the party problem above is a puzzle when three mutual acquaintances or three mutual strangers are wanted, where six guests are enough, and an open problem when five are wanted, where the answer lies somewhere from 43 to 46. The subject also sits at the border of mathematics and computing. Finding a shortest route, a cheapest network, a best assignment of workers to jobs, or a timetable without clashes is a problem about a graph, and the algorithms that solve such problems are proved correct with the same ideas that prove the theorems. This masterclass follows both threads, the theorems and the algorithms, from the first unit to the last, and the present unit lays down what every later one uses: what a graph is, how it is drawn and written, when two drawings show the same graph, and the handful of ways in which statements about graphs are proved.