1 What Is a Graph?
An undirected graph is a pair G=(V,E) consisting of a nonempty finite set V and a set E⊆(2V) whose elements are unordered pairs {u,v} with u=v. The elements of V are called vertices and the elements of E are called edges. For an edge e={u,v}∈E, we say that u and v are the endpoints of e, and that u and v are adjacent.
A directed graph (or digraph) is a pair D=(V,A) consisting of a nonempty finite set V and a subset A⊆V×V (whether loops (v,v) are permitted depends on the context). The elements (u,v)∈A are called arcs; u is the tail and v is the head of the arc.
A graph that allows multiple edges between the same pair of vertices is called a multigraph. A graph with no self-loops {v,v} and no multiple edges is called a simple graph. Unless stated otherwise, all graphs in this series are assumed to be simple and undirected.
Throughout, we write V(G) and E(G) for the vertex and edge sets of G, and set ∣V(G)∣=n and ∣E(G)∣=m.
2 Degree and the Handshaking Lemma
For a vertex v∈V(G), the degree of v, denoted deg(v) or d(v), is the number of edges incident to v: deg(v)=∣{e∈E(G)∣v∈e}∣.
The minimum degree of G is written δ(G) and the maximum degree is written Δ(G).
For any graph G=(V,E), v∈V∑deg(v)=2∣E∣.
Each edge e={u,v} contributes exactly 1 to deg(u) and 1 to deg(v). Hence every edge is counted exactly twice in the sum on the left-hand side. □
Consider a graph on 5 vertices with degree sequence (2,3,3,2,4). Then ∑deg(v)=14, so the number of edges is m=7. On the other hand, the sequence (1,2,3,3,4) has ∑=13, which is odd; therefore no graph with this degree sequence can exist.
3 Complete Graphs and Complete Bipartite Graphs
A graph in which every pair of distinct vertices is joined by an edge is called a complete graph. The complete graph on n vertices is denoted Kn. It has (2n)=2n(n−1) edges, and every vertex has degree n−1.
A graph G is bipartite if its vertex set admits a partition V(G)=X⊔Y (X∩Y=∅) such that every edge of G joins a vertex in X to a vertex in Y. If, moreover, every vertex in X is adjacent to every vertex in Y, then G is called a complete bipartite graph. When ∣X∣=m and ∣Y∣=n, we write Km,n. The number of edges of Km,n is mn.
The complete graph K4:
The complete bipartite graph K2,3:
4 Complement of a Graph
For a simple graph G=(V,E), the complement of G is the graph G=(V,(2V)∖E). In other words, {u,v}∈E(G)⟺{u,v}∈/E(G).
For any simple graph G on n vertices, ∣E(G)∣+∣E(G)∣=(2n).
E(G) and E(G) form a partition of (2V), so the result is immediate. □
5 Graph Isomorphism
Two graphs G1=(V1,E1) and G2=(V2,E2) are isomorphic if there exists a bijection φ:V1→V2 such that {u,v}∈E1⟺{φ(u),φ(v)}∈E2.
We then write G1≅G2.
A graph on 5 vertices with 5 edges and degree sequence (2,2,2,2,2) is isomorphic to the 5-cycle C5. This is an instance where the vertex count and degree sequence alone determine the isomorphism class. In contrast, the degree sequence (2,2,2,2,2,2) on 6 vertices is shared by both C6 and the disjoint union C3⊔C3, which are not isomorphic.