Graph theory provides the formal mathematical language to describe networks, structures, and relationships across computer science and discrete mathematics. This document explores the structural classifications of graphs, algebraic representations, trees, and the fundamental topological theorems governing planarity.
A graph is formally defined as an ordered pair , where is a non-empty set of vertices (or nodes) and is a set of edges. A mapping function associates each edge in with a pair of vertices from .
Based on these edge characteristics, we distinguish major graph classes:
Simple Graph Multigraph
(No loops) (Parallel edges, loop)
A ---- B A ===== B
| / | / \
| / | / ) e3
| / | / /
C C--O (Loop)In directed graphs, we partition the degree of a node based on edge orientation:
A graph is a subgraph of (denoted ) if and . If , then is a .
For simple digraphs, we can interpret edges as binary relations over the set of vertices . These relations can satisfy classic set-theoretic properties:
The converse (or dual/reversal) of a digraph , denoted , is obtained by reversing the direction of every edge in .
Two graphs and are () if there exists a bijective function such that for any :
A graph invariant is a property of a graph that remains unchanged under isomorphism. Examples of invariants include:
The reachable set of a node in a digraph is the set of all vertices such that there exists a directed path from to .
A node base is a minimal subset of vertices from which every vertex in the graph is reachable. It satisfies three core criteria:
We classify graph connectivity based on the existence of paths:
Strongly Connected Weakly Connected
(Bidirectional) (Connected if undirected)
A <=======> B A --------> B
| ^ ^ ^
| | | |
v | | |
C --------> D C --------> D Bridge
A --- B ====== C --- D
| / | /
| / | /
E F
Sub-component 1 Sub-component 2Graphs can be modeled algebraically using matrices, enabling efficient computational operations.
For a graph with vertices ordered , the is an Boolean or integer matrix where:
Properties of the adjacency matrix:
To find the number of paths of length between vertices, we use matrix multiplication. The element in row , column of the matrix represents the exact number of paths of length from to .
The path matrix (or reachability matrix) is an Boolean matrix where if there is a path of any length from to , and otherwise. It is computed via the Boolean join of powers of : Alternatively, we can define the path count sum matrix as:
For an undirected graph with vertices and edges, the incidence matrix is a matrix where:
To analyze the traversal of networks, we define several types of vertex-edge sequences:
A geodesic is a path of minimum length between two vertices and . The distance is the length of this geodesic. The distance metric on an undirected graph satisfies the properties of a metric space:
A tree is an undirected simple graph that is connected and contains no cycles. A forest is a disjoint union of trees.
Rooted Tree Binary Tree
(Root) (Root)
O O
/ | \ / \
O O O O O
/ \ | / \
O O O O OA rooted tree designates one vertex as the root, with all edges directed away from it. This establishes a family hierarchy:
For ordered rooted trees, we traverse nodes recursively:
A complete graph is a simple undirected graph with vertices where there is an edge between every pair of distinct vertices. The number of edges in is:
An Euler path (or Euler circuit) is a trail that traverses every edge in a graph exactly once.
This theorem resolved the famous Königsberg Bridges problem, proving that the physical bridge layout could not be traversed without repeating an edge.
A Hamilton path (or Hamilton circuit) is a simple path that visits every vertex in the graph exactly once. Unlike Eulerian graphs, determining whether a graph is Hamiltonian is NP-complete. However, several sufficient conditions exist:
A classic application of Hamiltonian circuits is the construction of Gray codes, where successive binary code words differ by exactly one bit, corresponding to a Hamiltonian circuit on an -dimensional hypercube graph .
A graph is planar if it can be drawn in a plane such that no edges intersect except at their common endpoints. This drawing is a planar representation of the graph.
Planar Representation Non-Planar Graph
of K_4 (K_5)
A A
/|\ /|\ \
/ | \ / | \ \
/ | \ / | \ \
B---|---C B---|---C \
\ | / \ | / /
\ | / \ | / /
\|/ \|/ /
D D--/When a connected planar graph is drawn, it divides the plane into regions (faces), including one unbounded outer region.
where:
These corollaries help prove whether a graph is nonplanar:
For the complete graph , and . Using Corollary 1: Thus, is nonplanar.
The complete bipartite utility graph has and . Because it is bipartite, it contains no odd-length cycles, meaning its shortest cycle has length 4. Using Corollary 2: Thus, is nonplanar.
To generalize non-planarity, we define structural transformations:
Original Edge After Elementary Subdivision
u -------- v u ---- w ---- vGraph-theoretic models are used to solve complex engineering and computing challenges:
A structural equivalence between graphs where vertex mappings preserve adjacency, edge direction, and essential invariants such as degree sequences.
Characterizations of directed graphs based on whether paths exist bidirectionally (strongly) or only when edge directions are disregarded (weakly).
The translation of graph topology into adjacency and incidence matrices, where the powers of the adjacency matrix ($A^k$) reveal path counts of length $k$.
Distinct topological traversals covering either every edge exactly once (Euler paths/circuits) or every vertex exactly once (Hamilton paths/circuits).
The criteria for drawing a graph in a single plane without intersecting edges, governed by Euler's Formula and constrained by forbidden homeomorphic subgraphs ($K_5$ and $K_{3,3}$).
Test your understanding with 5 questions
Using Euler's Formula ($r = e - v + 2$), how many regions are created by a connected planar simple graph with 8 vertices and 13 edges?
Which of the following conditions guarantees that a connected multigraph contains an Euler circuit?
What is the maximum number of edges in a connected planar simple graph with $v$ vertices where $v \ge 3$?
Which of the following graphs are nonplanar according to Kuratowski's Theorem?
If a simple graph $G$ has 12 vertices, what is the minimum vertex degree required for every vertex to guarantee a Hamilton circuit according to Dirac's Theorem?
6 Modules
6 Modules