A graph is a relation, drawn
Sets, Relations, and Functions's symmetric irreflexive relation on V is exactly a simple graph. The picture adds nothing mathematically and a great deal practically.
A graph is a set of vertices and a set of edges joining them. The definition is deliberately spare, which is why the same object models networks, dependencies, molecules and schedules.
Core ideas
The definition is short and the variants matter: what counts as an edge decides which theorems apply.
Sets, Relations, and Functions's symmetric irreflexive relation on V is exactly a simple graph. The picture adds nothing mathematically and a great deal practically.
Position and edge shape carry no information. Two very different pictures can be the same graph, which is “Subgraphs and Graph Isomorphism”'s subject.
Loops, multiple edges and directions each change which theorems hold. "Simple graph" is the default here and is stated where it matters.
The material
The definition, the variants, and four models.
A simple graph G = (V, E) is a finite set V of vertices together with a set E of edges, each an unordered pair of distinct vertices. No loops and no repeated edges.
Two vertices joined by an edge are adjacent or neighbours; a vertex and an edge meeting are incident. |V| is the order and |E| the size.
Unless stated otherwise, "graph" on this course means a simple undirected graph. “Shortest Paths and Dijkstra's Algorithm” and “Spanning Trees and Minimum Spanning Trees” attach weights; directions appear only in remarks.
K₅ and K_{3,3} matter later: “Planar Graphs and Euler's Formula” shows they are precisely the obstructions to drawing a graph in the plane without crossings.
The common thread: whenever the data is "a set of things and which pairs are related", it is a graph, and every theorem in this course applies to it at once. That generality is the reason graph theory is worth a course.
A simple graph on n vertices has at most C(n,2) = n(n−1)/2 edges, with equality exactly for Kₙ.
Each edge is an unordered pair of distinct vertices, and no pair may repeat, so the edges form a subset of the C(n,2) pairs. “Combinations” in Combinatorics and Counting counts them.
□
Interactive
Your graph, the course's algorithms
Method
Vertices first, then decide what an edge means.
One per entity: person, junction, task, atom. If the answer is unclear the model is not ready.
"Have met", "a road exists", "must precede". The relation must be checkable for every pair.
Symmetric relation: undirected. Asymmetric: directed. Repeated connections: multigraph. Costs: weighted.
"Can everyone be reached" is connectivity; "is there a route using every road once" is an Euler circuit. The translation is where the theorems become available.
Each count is a small application of Combinatorics and Counting.
The hypercube count used the handshake theorem of “Degree and the Handshake Theorem” before it was stated: 2|E| = Σ deg(v) = n · 2ⁿ. Counting edges through degrees is the standard move and it is worth having early.
Model "which pairs of countries share a land border" as a graph. Say what the vertices are, what an edge means, and whether the graph is simple — then ask what the degree of a vertex tells you.
Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.
No recommendations yet for this lesson.