studyhubGraph Theory

Formula sheet

Everything countable from Lectures 1–3 and 5–9 on one page. The right-hand column is the mistake that particular line invites.

Counting

Lectures 1–3

Order and sizen = |V(G)|, m = |E(G)|Order counts vertices, size counts edges.
First Theorem of Graph TheoryΣ deg v = 2mHalve the degree sum to get m.
Corollary 1the number of odd vertices is evenKills any sequence with an odd count of odd degrees.
Degree bound (simple graph)δ(G) ≤ deg v ≤ Δ(G) ≤ n − 1Degree n or more is impossible on n vertices.
Size of Kₙn(n − 1) / 2
Size of Pₙ, Cₙn − 1, n (Cₙ needs n ≥ 3)Cₙ has one more edge than Pₙ.
Complete bipartite K_{s,t}order s + t, size stOrder adds, size multiplies.
Complement|E(G)| + |E(Ḡ)| = n(n − 1)/2
Minimum degree forces edgesm ≥ ⌈n·δ(G) / 2⌉Round up — m is an integer.
Maximum degree caps edgesm ≤ ⌊n·Δ(G) / 2⌋
k-regular graph on n verticesexists iff kn is even and k ≤ n − 1Noncomplete needs k ≤ n − 2.
Densest bipartite graph of order n⌊n² / 4⌋ edges (K⌊n/2⌋,⌈n/2⌉)
Order n with exactly k componentsn − k ≤ m ≤ C(n − k + 1, 2)Max is one big clique plus k − 1 isolated vertices.

Binary operations

Lecture 2 — G has (n₁, m₁), H has (n₂, m₂)

Union G ∪ H|V| = n₁ + n₂, |E| = m₁ + m₂Always disconnected.
Join G + H|V| = n₁ + n₂, |E| = m₁ + m₂ + n₁n₂Adds every crossing edge.
Cartesian product G × H|V| = n₁n₂, |E| = n₁m₂ + n₂m₁Cross-multiplied. Not m₁m₂, not n₁m₁ + n₂m₂.
Degree in G × Hdeg(u, v) = deg_G(u) + deg_H(v)
Adjacency in G × H(u,v) ~ (x,y) iff (u = x ∧ vy ∈ E(H)) or (v = y ∧ ux ∈ E(G))Exactly one coordinate moves.
Drawing G × Hn₁ copies of H, joined at corresponding vertices along edges of GCorresponding vertices only — that is what separates it from the join.

Hierarchies you must not collapse

Lecture 1

Walk ⊋ trail ⊋ pathwalk: anything repeats · trail: no repeated edge · path: no repeated vertexEvery path is a trail; no converse.
Circuit ⊋ cyclecircuit: closed trail, length ≥ 3 · cycle: circuit with no repeated vertex except first = lastEvery cycle is a circuit; no converse.
Subgraph ⊋ induced subgraphsubgraph: V, E both contained · induced: must carry EVERY edge of G between the chosen verticesG[S] is where marks quietly vanish.
Spanning subgraphsame vertex set as GG − e is spanning; G − v is not.
Length of a walknumber of edges traversed, counting repeatsA sequence of k + 1 vertices has length k.
Adjacent vs incidentadjacent: vertex–vertex or edge–edge · incident: vertex–edge

Theorems

Lectures 1–3

Theorem 1 (Lec 1)G is connected ⟺ G has a u–v walk for every pair u, vA walk suffices, because every u–v walk contains a u–v path.
Bipartite characterisation (Lec 2)a nontrivial G is bipartite ⟺ G has no odd cyclesTriangle-free is not enough — C₅.
Complement (Lec 2)G disconnected ⟹ Ḡ connectedOne-way only. P₄ and its complement are both connected.
First Theorem (Lec 3)Σ deg v = 2mEach edge is counted once at each endpoint.
Corollary 1 (Lec 3)every graph has an even number of odd vertices
Digraph degrees (Lec 3)Σ od(v) = Σ id(v) = mm, not 2m — an arc has one tail and one head.
Pseudograph degree (Lec 3)each loop at v contributes 2 to deg vThis is exactly what keeps Σ deg v = 2m true.

Isomorphism

Lecture 5

Equal vs isomorphicG = H: V(G) = V(H) and E(G) = E(H) · G ≅ H: relabelling makes them equalIsomorphic graphs need not be equal.
Isomorphisma bijection f : V(G) → V(H) with uv ∈ E(G) ⟺ f(u)f(v) ∈ E(H)⟺, not ⟹: non-adjacency must be preserved too.
Theorem 2.1.2G ≅ H ⟹ same order and same size
Theorem 2.1.3deg f(v) = deg vMap each vertex only to one of the same degree.
Corollary 2.1.4G ≅ H ⟹ same degree sequenceThe converse fails: same sequence proves nothing.
Corollary 2.1.5f(e) has the same end-degrees as eSame degree sequence, but an edge joining two 3s in G and none in H ⟹ G ≇ H.
Proving G ≇ Hone differing invariant: n, m, degree sequence, end-degrees of edges, connectedness, a cycle length
Proving G ≅ Hwrite down the bijection and check every edgeAgreeing invariants are never a proof.
Self-complementary (G ≅ Ḡ)needs m = n(n − 1)/4, so n ≡ 0 or 1 (mod 4)P₄ and C₅ work; no graph of order 6 or 7 does.
Graphs of order 4, up to isomorphism11 (by size 0–6: 1, 1, 2, 3, 2, 1, 1)

Trees and bridges

Lecture 6

BridgeG − e disconnected ⟺ k(G − e) = k(G) + 1Deleting one edge adds at most one component.
Theorem 6.1e is a bridge ⟺ e lies on no cycleA bridge need not touch a leaf.
Tree · foresttree: acyclic and connected · forest: acyclicEach component of a forest is a tree.
Theorem 6.2G is a tree ⟺ every two vertices are joined by a unique path
Theorem 6.3every nontrivial tree has ≥ 2 end-verticesAt least two — exactly two only for paths.
Theorem 6.4tree of order n has size n − 1, so Σ deg v = 2(n − 1)Use this sum for every “how many leaves” count.
Corollary 6.6forest of order n with k components has size n − k
Theorem 6.7connected of order n ⟹ m ≥ n − 1
Theorem 6.8any two of: connected, acyclic, m = n − 1 ⟹ treeOne condition alone proves nothing.
Double star · caterpillardouble star: exactly two non-leaves (adjacent) · caterpillar: order ≥ 3, deleting the leaves leaves a path (the spine)Paths, stars and double stars are all caterpillars.
Counting leavesx leaves + known degrees: Σ deg = 2(n − 1), solve with the vertex countSet up two equations: one for vertices, one for degrees.

Spanning trees

Lecture 7 — G connected and weighted

Spanning treespanning subgraph that is a tree: n vertices, n − 1 edgesDelete m − n + 1 edges to get one.
Theorem 7.1every connected graph has a spanning treeA disconnected graph has none.
Weight of a subgraphw(H) = Σ w(e) over e ∈ E(H)
Minimum spanning treespanning tree of least weight among all spanning treesAll spanning trees have n − 1 edges; only the weight differs.
Kruskal, steps 1–2cheapest edge, then the next cheapestTwo edges can never form a cycle — no check needed yet.
Kruskal, step 3 oncheapest remaining edge that forms no cycle with those chosenPicks may lie in different parts of G until the end.
Prim, step 1any vertex u; cheapest edge at uNot the cheapest edge of all of G — that is Kruskal.
Prim, later stepscheapest edge with exactly one end on the tree so farExactly one: both ends in the tree closes a cycle.
When to stopafter n − 1 edges
Tieseither edge may be taken; the weight of the result is the sameDifferent trees, same minimum weight.
Theorems 7.2, 7.3Kruskal and Prim both produce a minimum spanning treeBoth are greedy: no choice is ever undone.

Cut-vertices and blocks

Lecture 8

G − v, G − Udelete the vertices and every edge incident with themNot spanning: the vertices go too.
Cut-vertexG − v disconnected (in a component, for disconnected G)A leaf is never a cut-vertex.
Bridge ⟹ cut-vertexconnected, order ≥ 3, has a bridge ⟹ has a cut-vertex (Cor 5.2)K₂ is the exception. The converse fails — two triangles sharing a vertex.
Theorem 5.1v on a bridge is a cut-vertex ⟺ deg v ≥ 2
Corollary 5.4v is a cut-vertex ⟺ some u, w ≠ v have v on EVERY u – w pathEvery path, not some path.
Nonseparablenontrivial, connected, no cut-verticesK₂ counts; K₁ does not.
Theorem 5.7order ≥ 3: nonseparable ⟺ every two vertices lie on a common cycleEvery two adjacent vertices is not enough.
Blockmaximal nonseparable subgraphEach bridge, with its ends, is a block.
Two distinct blocksedge-disjoint; share ≤ 1 vertex; a shared vertex is a cut-vertex

Connectivity

Lecture 9

Vertex-cutU with G − U disconnected; exists ⟺ G not complete (G connected)
κ(G)min |U| with G − U disconnected or trivial; 0 ≤ κ(G) ≤ n − 1“Or trivial” is what gives Kₙ a value.
κ valuesκ = 0 ⟺ disconnected · κ = 1 ⟺ K₂ or has a cut-vertex · κ ≥ 2 ⟺ nonseparable, n ≥ 3
Edge-cutX with G − X disconnectedMinimum ⟹ minimal, but not conversely.
λ(G)size of a minimum edge-cut; λ = 0 ⟺ disconnected or trivial · λ = 1 ⟺ connected with a bridge
Theorem 5.11 (Whitney)κ(G) ≤ λ(G) ≤ δ(G)Vertices first, then edges, then degree.
Kₙ (Thm 5.10)κ = λ = n − 1
K_{s,t}κ = min(s, t)Delete the smaller partite set.
Cₙ, Pₙκ(Cₙ) = λ(Cₙ) = 2 · κ(Pₙ) = λ(Pₙ) = 1 (n ≥ 3)

Does it exist? — a decision procedure

Lecture 3, Exercise 1 — run these in order

1. Parityis Σ (required degrees) even?If odd, stop: no such graph, by the First Theorem.
2. Degree ceilingis every required degree ≤ n − 1?If not, stop: no vertex can be adjacent to itself.
3. Edge window⌈nδ/2⌉ ≤ m ≤ ⌊nΔ/2⌋Also check any class-specific ceiling, e.g. ⌊n²/4⌋ for bipartite.
4. Structuregreedily satisfy the largest degree first, then reduce and repeat1, 3, 3, 3 on four vertices passes steps 1–3 and still fails here.
5. Otherwiseconstruct one and draw itAny valid example scores; you are never asked for a unique answer.