Folioby Interconnected
Log InSign Up

Fundamental Definitions and Basic Properties of Graphs

Starting from the formal definitions of undirected and directed graphs, we develop the notions of degree, the handshaking lemma, complete graphs $K_n$, complete bipartite graphs $K_{m,n}$, and graph isomorphism, with full proofs throughout.

FO
Folio Official
March 1, 2026

1. What Is a Graph?

Definition 1 (Undirected 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.
Definition 2 (Directed graph).
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.
Definition 3 (Multigraphs and simple graphs).
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

Definition 4 (Degree).
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).
Theorem 5 (Handshaking lemma).
For any graph G=(V,E),
v∈V∑​deg(v)=2∣E∣.
Proof.
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. □
Remark 6.
The name "handshaking lemma" comes from the interpretation: at a party, the total number of handshakes counted by all participants is always even. An immediate corollary is that every graph has an even number of vertices of odd degree.
Example 7.
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

Definition 8 (Complete graph).
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.
Definition 9 (Bipartite graph and complete bipartite graph).
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​:

1
2
3
4

The complete bipartite graph K2,3​:

x1​
y1​
y2​
y3​
x2​

4. Complement of a Graph

Definition 10 (Complement).
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).
Theorem 11.
For any simple graph G on n vertices, ∣E(G)∣+∣E(G)∣=(2n​).
Proof.
E(G) and E(G) form a partition of (2V​), so the result is immediate. □

The path P4​ (left) has edges {1,2},{2,3},{3,4}. Its complement (right) has edges {1,3},{1,4},{2,4}:

1
2
3
4

1
3
4
2

5. Graph Isomorphism

Definition 12 (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​.
Remark 13.
Graph isomorphism is an equivalence relation (it is reflexive, symmetric, and transitive). In graph theory, isomorphic graphs are usually regarded as "the same." To show that two graphs are not isomorphic, it suffices to find an invariant— such as the number of vertices, the number of edges, or the degree sequence — that differs between them. However, agreement of all known invariants does not guarantee isomorphism. The graph isomorphism problem lies in NP, but whether it is NP-complete remains an open question.
Example 14.
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.
Graph TheoryDiscrete MathematicsTextbookGraph DefinitionsDegreeHandshaking Lemma
FO
Folio Official

Mathematics "between the lines" — exploring the intuition textbooks leave out, written in LaTeX on Folio.

1 followers·107 articles
Graph Theory TextbookPart 2 of 13
Previous
Graph Theory: A Complete Summary of Definitions, Theorems, and Proofs
Next
Paths and Connectivity

Share your expertise with the world

Write articles with LaTeX support, build your audience, and earn from your knowledge.

Start Writing — It's Free

More from Folio Official

Folio Official·March 1, 2026

Paths and Connectivity

We formalize the notions of walks, paths, and cycles, then develop the theory of connected components, vertex and edge connectivity, cut vertices and bridges, the characterization of bipartite graphs, and Menger's theorem.

Graph TheoryDiscrete MathematicsTextbook
3
Folio Official·March 1, 2026

Eulerian and Hamiltonian Graphs: Two Classical Traversal Problems

From the Bridges of Königsberg to Euler's theorem on Eulerian circuits, directed Eulerian graphs, Hamiltonian cycles, the theorems of Ore and Dirac, and the NP-completeness of the Hamiltonian cycle problem.

Graph TheoryDiscrete MathematicsTextbook
1
Folio Official·March 1, 2026

Network Flows

Flow networks, the max-flow min-cut theorem, the Ford--Fulkerson method, the Edmonds--Karp algorithm, Dinic's algorithm, and the reduction of bipartite matching to maximum flow.

Graph TheoryDiscrete MathematicsTextbook
Folio Official·March 1, 2026

Recurrence Relations and Counting: Solving Linear Recurrences

We present the method of characteristic equations for solving linear recurrences with constant coefficients, treat the case of repeated roots, discuss nonhomogeneous recurrences, establish the equivalence with generating functions, and introduce matrix exponentiation and the Kitamasa method.

CombinatoricsDiscrete MathematicsTextbook