Graph Theory

An introduction to more advanced topics in graph theory.

Preface

Since I have already encountered the basics of graph theory many times in courses such as discrete mathematics, circuit theory, and algorithms, I will not repeat the basic concepts here and treat them as prerequisites. Only the extended material is covered.

Review of Basic Concepts

  • In general, ๐›ฟ(๐บ) denotes the minimum degree of graph ๐บ, and ฮ”(๐บ) denotes the maximum degree
  • Induced subgraph: if ๐‘‰(๐บ) โІ ๐‘‰(๐บโ€ฒ) and ๐ธ(๐บ) โІ ๐ธ(๐บโ€ฒ), and moreover ๐ธ(๐บ) = ๐ธ (๐บโ€ฒ) โˆฉ , then ๐บ is an induced subgraph of ๐บโ€ฒ
  • If in addition ๐‘‰(๐บ) = ๐‘‰(๐บโ€ฒ), then ๐บ is a spanning subgraph of ๐บโ€ฒ
  • If every vertex in the graph has the same constant degree ๐‘Ÿ, the graph is called ๐‘Ÿ-regular (r-regular graph)
  • Simple graph: an undirected graph with no self-loops and no multiple edges is called a simple graph.
  • Handshaking theorem (Leonhard Euler 1736): given an undirected graph ๐บ = (๐‘‰, ๐ธ),
    • Corollary: in an undirected graph, the number of vertices of odd degree is always even

Graph: Isomorphism and Score

Graph isomorphism: if for a graph ๐บ= ๐‘‰, ๐ธ and a graph Gโ€™=(Vโ€™, Eโ€™) there exists a bijection such that for any ๐‘ฅ, ๐‘ฆโˆˆ๐‘‰ we have if and only if ๐‘“(๐‘ฅ), ๐‘“(๐‘ฆ) โˆˆ๐ธโ€ฒ, then we say that graphs ๐บ and ๐บโ€ฒ are isomorphic.

Counting Graphs

  • The number of graphs on ๐‘› vertices is โ€” each edge of the complete graph is either present or absent

  • Any graph G=(V, E) is isomorphic to at most n! distinct graphs on V. From this we obtain the inequality
    .

Graph Score

  • Definition: the degree sequence of a graph G is called the score of G.
  • Relation to graph isomorphism: isomorphic graphs necessarily have the same score. However, graphs with the same score are not necessarily isomorphic
  • Existence: not every finite sequence can be the score of a graph. Whether a sequence is the score of some graph can be decided using the Score Theorem: let be a sequence of natural numbers with n>1 and , and let Dโ€™ be the sequence where . Then D is a graph score if and only if Dโ€™ is a graph score.
  • Proof:
    • if: add a vertex to Dโ€™ to construct D
    • only if: D can be transformed into an isomorphic graph such that the last vertices are connected to ; deleting these edges yields Dโ€™

Applications of Handshake lemma

โ€ข Spernerโ€™s lemma (Sperner, 1928): subdivide any n-dimensional simplex (๐‘›-simplex) and color it with ๐‘›+ 1 colors; then under any proper coloring scheme of the subdivided simplex, there must be a cell that contains all the distinct colors.

โ€ข Planar Brouwerโ€™s fixed point theorem: Every continuous function has a fixed point.

โ€ข Theorem (Smith): in a 3-regular graph, the number of Hamiltonian cycles containing any given edge ๐‘’ is even.

Tree

Characterizations of Trees

  • Tree-growing lemma: for a graph ๐บ and a leaf ๐‘ฃ of ๐บ, the following statements are equivalent
    • G is a tree
    • G - v is a tree
  • Equivalent characterizations of a tree:
    • II. Unique paths: for any two vertices u , , there exists a unique path from u to v.
    • III. Minimal connected graph: G is connected, and removing any single edge makes it disconnected.
      • IV. Maximal acyclic graph: G contains no cycle, but adding any single edge yields a graph G+e (where ) that contains a cycle.
    • V. Eulerโ€™s formula: G is connected and |V|=|E|+1

Counting Trees

Two trees ๐‘‡, ๐‘‡โ€ฒ are โ€œequalโ€ if and only if the edge set of tree ๐‘‡ equals the edge set of tree ๐‘‡โ€ฒ.

Cayleyโ€™s Theorem

(Cayleyโ€™s formula): there are distinct trees on ๐‘› vertices.

  1. Core proposition: let be positive integers whose sum is . Then in the graph (the complete graph, in which every pair of the vertices is joined by an edge), the number of spanning trees in which vertex has degree exactly () equals
  2. Proof
    • Base case: for n = 1, 2 the proposition clearly holds. When n = 1 the graph has only one vertex, which can be regarded as a degenerate tree; when n = 2 there is a single edge joining the two vertices, so there is only one tree shape, which agrees with the formula above.
    • Inductive step (n > 2): since , by the handshaking theorem there must exist some i with ; without loss of generality let . For , define to be the set of spanning trees of that contain the edge . From each tree in , delete the vertex to obtain ; is a spanning tree of whose vertex degrees are
      • By the induction hypothesis, we obtain , which can be rewritten as
      • Since , after a series of algebraic manipulations, we sum over all tuples satisfying and , i.e. over all such , giving Let ; then and , and the expression becomes , which by the multinomial theorem equals . This proves that the number of distinct trees on n vertices is .

Tree Isomorphism

Rooted Tree Isomorphism

Definition: ๐‘‡, ๐‘Ÿ โ‰…โ€ฒ (๐‘‡โ€ฒ, ๐‘Ÿโ€ฒ):

  • ๐‘“: ๐‘‰(๐‘‡) โ†’ ๐‘‰(๐‘‡โ€ฒ) is an isomorphism ๐‘‡ โ‰… ๐‘‡โ€ฒ,
  • ๐‘“(๐‘Ÿ) = ๐‘Ÿโ€ฒ
  • The relation โ‰…โ€ฒ is strictly stronger than the relation โ‰….

Using an encoding, one proves that if and only if they have the same encoding.

1

Proof:
โ€“ Sufficiency: follows from the definition of rooted tree isomorphism and the encoding.
โ€“ Necessity: decode, i.e., recover the original tree structure from the encoding.
The encoding of any rooted tree necessarily has the general form 0๐‘†1, where

๐‘†1 is the shortest prefix of ๐‘† with equal numbers of 0s and 1s, ๐‘†2 is the second shortest 0/1-balanced prefix, and so on.
The rooted tree can be recovered from this, and clearly such rooted trees must be isomorphic.

Unrooted Tree Isomorphism

Problem reduction: general tree isomorphism โŠ‘ rooted tree isomorphism

โ€ข Distance: for two vertices u ,v in a graph G, disc(1,1) denotes the length of the shortest path between ๐‘ข, ๐‘ฃ.
โ€ข Eccentricity: for a graph ๐บ and a vertex ๐‘ฃ in it, the eccentricity is defined as:

โ€ข Center: the set of vertices of graph ๐บ with the minimum eccentricity is called the center, denoted by ๐ถ(๐บ).

Property: for a tree ๐‘‡ = (๐‘‰, ๐ธ), ๐ถ(๐‘‡) contains at most 2 vertices. Moreover, if ๐ถ(๐‘‡) = ๐‘ฅ, ๐‘ฆ , then ๐‘ฅ, ๐‘ฆ โˆˆ ๐ธ

If ๐ถ(๐‘‡) contains only a single vertex ๐‘ฃ: output the encoding #(๐‘ป, ๐’—) of the rooted tree (๐‘‡, ๐‘ฃ).
โ€ข ๐ถ(T) = {๐‘ฅ1, ๐‘ฅ2}: let ๐‘’ = {๐‘ฅ1, ๐‘ฅ2}
๐‘‡ โˆ’ ๐‘’: has exactly two connected components ๐‘‡1, ๐‘‡2. Without loss of generality let ๐‘ฅ1 โˆˆ ๐‘‰(๐‘‡1), ๐‘ฅ2 โˆˆ ๐‘‰(๐‘‡2).

  • Compute #(๐‘‡1, ๐‘ฅ1) and #(๐‘‡2, ๐‘ฅ2)
  • If #(๐‘‡1, ๐‘ฅ1) โ‰ค #(๐‘‡2, ๐‘ฅ2), output #(๐‘ป, ๐’™๐Ÿ)
  • Otherwise, output # (๐‘ป, ๐’™๐Ÿ)

The proof then proceeds as for the rooted tree encoding.


Translated from the Chinese original.

Welcome to my other publishing channels

ไธญๆ–‡