Graph Theory Resources
Free tools, archives, and reading that we recommend to our participants, for use during the masterclass and long after it.
Every entry links to an external website, which opens in a new tab.
Draw and compute
A browser page that draws a graph from a typed edge list and lays it out automatically: type the 15 edges of the Petersen graph and drag the vertices until the pentagon and the pentagram appear.
csacademy.com Graph OnlineA graph editor in the browser that runs the standard algorithms on your drawing, among them breadth-first search, Dijkstra's algorithm, Euler tours, and maximum flow, and shows each step.
graphonline.top PlanarityJohn Tantalo's puzzle: a tangled planar graph that you untangle by dragging vertices until no two edges cross, with levels of growing size.
planarity.net D3 Graph TheoryInteractive tutorials by Avinash Pandey in which every graph can be dragged and coloured in the browser, with chapters on vertex colouring and the greedy algorithm and on Euler trails.
d3gt.com VisuAlgo, network flowSteven Halim's algorithm visualizer from the National University of Singapore: the max flow page runs Ford and Fulkerson, Edmonds and Karp, and Dinic step by step on a network you draw.
visualgo.net Sage Cell ServerA single input box that runs SageMath, the free computer algebra system, without any installation; its graph library knows every graph of the units and computes matchings, colourings, and spectra.
sagecell.sagemath.org NetworkXThe free Python library for graphs used in research and industry: it samples random graphs, finds components and shortest paths, and computes everything in the Advanced units.
networkx.org Octave OnlineA browser version of GNU Octave, the free numerical matrix language: type the adjacency matrix of a cycle, call eig, and read off the eigenvalues of Unit 12.
octave-online.net nauty and TracesBrendan McKay and Adolfo Piperno's programs for graph isomorphism and for generating all graphs on n vertices, the standard tool for exhaustive searches in extremal graph theory.
pallini.di.uniroma1.itDatabases and records
A searchable database of interesting graphs with their invariants (order, girth, chromatic number, planarity, Hamiltonicity), maintained at Ghent University.
houseofgraphs.org The number of graphs on n verticesSequence A000088 of the On-Line Encyclopedia of Integer Sequences: 1, 1, 2, 4, 11, 34, 156, 1044, and so on; A000055 counts trees and A000272 labelled trees.
oeis.org Small Ramsey NumbersStanisław Radziszowski's dynamic survey in the Electronic Journal of Combinatorics, revised since 1994, the reference for every known Ramsey number and bound.
combinatorics.org Brendan McKay's Ramsey graph dataComplete lists of the Ramsey critical graphs for small parameters, for example every two-coloured complete graph on 8 vertices without a red triangle or a blue K4, as downloadable files.
users.cecs.anu.edu.au Erdős ProblemsThomas Bloom's database of the problems Erdős posed, with their status, references, and prizes; many of them are in graph theory and Ramsey theory.
erdosproblems.com The Erdős Number ProjectJerrold Grossman's pages at Oakland University on the collaboration graph of mathematics: the coauthors of Erdős, the distribution of Erdős numbers, and the data behind them.
oakland.edu Information System on Graph ClassesThe ISGCI database of more than a thousand graph classes (planar, bipartite, chordal, perfect, and so on) with their inclusions and what is known about colouring and other problems on each.
graphclasses.org Open Problem GardenA collection of open problems in graph theory and combinatorics with their statements, history, and partial results, in a wiki that researchers edit.
openproblemgarden.orgReal networks
Jure Leskovec's collection of real networks (social, web, road, collaboration) as edge lists, free for research and teaching, each with its basic statistics.
snap.stanford.edu Network RepositoryAn interactive repository of thousands of network datasets, from protein interactions to power grids, with degree distributions and other statistics computed for each.
networkrepository.com KONECTThe Koblenz Network Collection: hundreds of real networks with a page of measured invariants and plots for each, built for comparing networks across domains.
konect.cc GephiThe free open-source program for drawing and exploring large networks, with force-directed layouts, community detection, and the usual centrality measures.
gephi.org The Opte ProjectBarrett Lyon's maps of the internet drawn as a graph since 2003, among them the 2005 image that appears on this site.
opte.org Open Source Routing Machine demoThe public demonstration of OSRM, a shortest-path engine on the road graph of OpenStreetMap: the route it draws is Dijkstra's problem solved on millions of vertices.
map.project-osrm.org igraphA free library for network analysis with interfaces for R, Python, and C, fast enough for graphs with millions of edges.
igraph.orgRead the research
Where nearly every paper in combinatorics and graph theory appears first, free to read. New papers every weekday.
arxiv.org arXiv, cs.DMThe discrete mathematics section of the preprint server on the computer science side, with graph algorithms in the neighbouring sections.
arxiv.org The Electronic Journal of CombinatoricsA free, peer-reviewed journal of combinatorics published since 1994, home of the dynamic surveys and of many papers cited in the units.
combinatorics.org The 2023 diagonal Ramsey paperCampos, Griffiths, Morris, and Sahasrabudhe, An exponential improvement for diagonal Ramsey, the paper behind Unit 16; the introduction can be read after the masterclass.
arxiv.org Diestel, Graph TheoryReinhard Diestel's standard textbook, with the main text of the book free to read online; the natural next step after the Advanced units.
diestel-graph-theory.com Quanta Magazine, mathematicsLong features on new results, written for readers without a degree, often with the mathematicians explaining their own work; Ramsey numbers appear every year or two.
quantamagazine.org MathOverflowThe question and answer site of research mathematicians; read how a theorem is discussed before you try to read its paper.
mathoverflow.net ICM proceedingsThe surveys given at the International Congress of Mathematicians, free to read; the combinatorics section of each congress reviews a decade.
mathunion.orgHistorical sources
E53 in the Euler Archive at the University of the Pacific: Solutio problematis ad geometriam situs pertinentis, presented in 1735 and cited as 1736, with the original scan.
scholarlycommons.pacific.edu Sylvester's note in Nature, 1878Chemistry and Algebra, the note of 7 February 1878 in which J. J. Sylvester used the word graph for a diagram of points and lines.
nature.com Dijkstra's manuscriptsThe E. W. Dijkstra Archive at the University of Texas: his numbered manuscripts, among them EWD1166 (From my life, 1993) with his own account of how the shortest-path algorithm was designed in 1956 for the inauguration of the ARMAC, without pencil or paper.
cs.utexas.edu Dijkstra's paper of 1959A note on two problems in connexion with graphs, Numerische Mathematik 1, the three pages in which the shortest-path and the minimum spanning tree algorithms were published.
link.springer.com Erdős's paper of 1947Some remarks on the theory of graphs, Bulletin of the AMS 53, the three-page paper that proved the lower bound for Ramsey numbers with a random colouring, from the Rényi Institute's collection of Erdős's papers.
users.renyi.hu Appel and Haken, 1977Every planar map is four colorable, Part I, Illinois Journal of Mathematics 21, free to read at Project Euclid: the first part of the proof of the four colour theorem.
projecteuclid.org MacTutor History of MathematicsBiographies of every mathematician named in the units, with sources, kept at the University of St Andrews.
mathshistory.st-andrews.ac.ukCompete and study
The official site, with every problem since 1959, the results, and the regulations.
imo-official.org European Girls' Mathematical OlympiadThe olympiad for teams of girls, held every year since 2012, with all past problems and solutions.
egmo.org International Olympiad in InformaticsThe official site of the IOI, held every year since 1989, with the tasks, test data, and solutions of every edition.
ioinformatics.org The Putnam archiveKiran Kedlaya's archive of the problems and solutions of the Putnam Competition, the olympiad of North American undergraduates, since 1985.
kskedlaya.org International Mathematics Competition for University StudentsThe university olympiad held every summer since 1994, with past problems and solutions.
imc-math.org.uk CSES Problem SetAntti Laaksonen's collection of competitive programming problems with an online judge; its graph algorithms section is the standard training ground for the IOI.
cses.fi Competitive Programmer's HandbookAntti Laaksonen's free book on the algorithms and data structures of programming contests, with chapters on graph traversal, shortest paths, spanning trees, and flows.
cses.fi USACO GuideA free, structured curriculum for competitive programming from bronze to platinum, with graph algorithms explained and problems to practise on.
usaco.guide oj.uzAn online judge that hosts the tasks of past IOIs and of many national and regional informatics olympiads, so that a task can be solved and tested as in the contest.
oj.uzPhotographs on this website are cropped and, where text sits on them, darkened. Bird's-eye view of Königsberg after Joachim Bering, 1613: Joachim Bering (Public domain). Kant Island and the cathedral in Kaliningrad at night: Vasilii Martynov (CC BY-SA 4.0). Plan of Paris with the Métropolitain, around 1900: L. Wuhrer (Public domain). London Underground map of 1908: Unknown author (Public domain). Figure 1 of Euler's paper on the bridges of Königsberg, 1736: Leonhard Euler (Public domain). Partial map of the internet, the Opte Project, 2005: Matt Britt (CC BY 2.5). World passenger air routes: Josullivan.59 (CC BY 3.0). Leonhard Euler, portrait by Jakob Emanuel Handmann, 1753: Jakob Emanuel Handmann (Public domain). Rome on the Tabula Peutingeriana, Konrad Miller's facsimile: Konrad Miller (Public domain). The Honey Bridge in Kaliningrad: Kemal Kozbaev (CC BY-SA 4.0). Mathematics on a blackboard: David Malone (CC BY 4.0). Mathematics lecture at the Helsinki University of Technology: Tungsten (Public domain). Kant Island and the cathedral in Kaliningrad by day: Gumerov Ildar (Public domain). Unit photographs are credited in the units. University wordmarks are trademarks of their owners and are shown for identification only.