RatMath ShelfCourse guide

University: upper level

Graph theory

Use the left and right arrow keys to turn pages.

Course summary

Where RatMath helps

85%

34 of 40 focal problems use RatMath for a calculation or a substantive step.

Direct calculation
32 · 80%
Assisted
2 · 5%
Worked by hand
6 · 15%

Using the packages

Drawings and exact graph objects complement each other. A returned coloring is an upper bound until a lower bound establishes optimality. Checking one embedding and proving nonplanarity also require different witnesses.

Calculator interface

Keep vertex labels stable while editing the drawing. Highlight a cut, coloring, matching or subdivision on the graph and show the independently checkable witness size.

Packages used in the lessons

@ratmath/discrete (32 days) · @ratmath/geo (2 days) · @ratmath/core (1 days)

How to read the percentages

Each of the 40 focal problems has equal weight. Direct means the displayed package calculation answers the computational question after the inputs are set up. Assisted means it contributes a step and the worked solution supplies essential reasoning, interpretation or selection. Worked by hand means the guide relies on a construction, argument or judgment for that task. The helpful share combines direct and assisted days. Courses and instructors assign different mixes of problems. The percentages describe this syllabus.

Classroom inputs and practical limits

34 of 40 days include a checked executable example. On 9 days the measured size sweep exercises a named API used in the lesson. Each day identifies its tested inputs and the mathematical property checked. Hand-worked days give the input scale and the argument to verify.

Ranges across the five units

Days 1–8 · Graphs and trees. Simple graphs with roughly 3–30 vertices, including trees and sparse graphs. Input size includes edges.

Unit benchmark · discrete.isBipartite, cycle vertices. Largest passing sample 10,000 (21.70 ms, 92.2 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 9–16 · Walks and cycles. Walk length about 2–10 or Euler/Hamilton examples with a few to tens of vertices; walks may repeat vertices.

Unit benchmark · discrete.spanningTreeCount, complete-graph vertices. Largest passing sample 128 (387 ms, 123.2 MiB peak process RSS). The first sampled passing call above 100 ms used 128 (387 ms). The runs did not locate a ceiling for this family.

Days 17–24 · Planar and topological graphs. Small planar embeddings, named graphs and subdivisions with roughly 4–20 vertices; genus is a different search from planarity.

Unit benchmark · discrete.isBipartite, cycle vertices. Largest passing sample 10,000 (21.70 ms, 92.2 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 25–32 · Coloring and extremal problems. About 3–15 vertices for hand coloring and exhaustive classroom searches; density and symmetry affect search cost.

Unit benchmark · discrete.chromaticNumber, cycle vertices. Largest passing sample 101 (8.06 ms, 79 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 33–40 · Graph algorithms and invariants. Matching, flow and invariants on graphs usually with a few to tens of vertices and small integer capacities.

Unit benchmark · discrete.maximumMatching, vertices per side. Largest passing sample 100 (102 ms, 125.5 MiB peak process RSS). The first sampled passing call above 100 ms used 100 (102 ms). The runs did not locate a ceiling for this family.

Measurement method, runtime limits and complete workload results

Lecture and problem-set sequence

Days 1–8 Graphs and trees

Relate degrees, connectivity, cut vertices, labelled trees and spanning trees.

5 direct calculation · 0 assisted · 3 worked by hand

  1. Day 1 Handshake lemma
  2. Day 2 Bridges and cut vertices
  3. Day 3 Prüfer codes
  4. Day 4 Counting spanning trees
  5. Day 5 Counting trees
  6. Day 6 Tree recognition
  7. Day 7 Degree parity
  8. Day 8 Tree induction
Days 9–16 Walks and cycles

Distinguish Euler and Hamilton conditions and compute paths or walks.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 9 Euler tours
  2. Day 10 Hamilton cycles
  3. Day 11 The Petersen graph
  4. Day 12 Counting walks
  5. Day 13 Euler circuits
  6. Day 14 Shortest path
  7. Day 15 Walk versus path
  8. Day 16 Directed reachability
Days 17–24 Planar and topological graphs

Test embeddings, count faces and use subdivisions or genus.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 17 Planarity
  2. Day 18 Kuratowski's theorem
  3. Day 19 Euler's formula
  4. Day 20 Genus of a graph
  5. Day 21 Euler's formula for polyhedra
  6. Day 22 Euler characteristic of a graph
  7. Day 23 Planar edge bound
  8. Day 24 Bipartite planar graphs
Days 25–32 Coloring and extremal problems

Bound colorings, cliques and independent sets and identify a bipartition.

6 direct calculation · 1 assisted · 1 worked by hand

  1. Day 25 Chromatic number
  2. Day 26 Chromatic polynomial
  3. Day 27 Turán's theorem
  4. Day 28 Cliques and independence
  5. Day 29 Bipartite graphs
  6. Day 30 Pigeonhole principle
  7. Day 31 Independent set bound
  8. Day 32 Odd cycles
Days 33–40 Graph algorithms and invariants

Match vertices, optimize flows and distinguish graph isomorphism from weaker invariants.

7 direct calculation · 1 assisted · 0 worked by hand

  1. Day 33 Matchings
  2. Day 34 Max flow, min cut
  3. Day 35 Isomorphism
  4. Day 36 Spectrum
  5. Day 37 Minimum spanning tree
  6. Day 38 Stable matching
  7. Day 39 Hall obstruction
  8. Day 40 Degree sequences and isomorphism

Start day 1 →