Unit 4: Graph Theory-I
Graph theory studies pairwise relations between objects using vertices (points) and edges (links). A graph abstracts away everything except what is connected to what, making it the natural model for networks, circuits, maps, and dependencies. Formally a graph is an ordered pair G = (V, E) where V is a finite nonempty set of vertices and E is a set of edges, each associating two vertices.
- Vertex (node): a fundamental element of
V; e.g.V = {a, b, c}. - Edge (arc): a connection
{u, v}joining two vertices; the vertices are its endpoints. - Adjacent vertices: two vertices joined by an edge;
uandvare adjacent if{u, v} ∈ E. - Incident: an edge
e = {u, v}is incident onuand onv. - Loop: an edge whose two endpoints coincide,
{v, v}. - Parallel (multiple) edges: two or more edges sharing the same pair of endpoints.
- Order and size: order
= |V|(number of vertices); size= |E|(number of edges). - Directed vs undirected: in a digraph edges are ordered pairs
(u, v); unless stated otherwise, graphs here are undirected.
II. Graphs and Multigraphs
Types of graph differ by whether loops and parallel edges are permitted.
A. Graphs
A simple graph has no loops and no parallel edges — every edge is a distinct unordered pair of distinct vertices.
- Simple graph:
E ⊆ { {u, v} : u, v ∈ V, u ≠ v }. Between any two vertices there is at most one edge. - Maximum size: a simple graph on
nvertices has at mostC(n, 2) = n(n−1)/2edges. - Complete graph
Kₙ: every pair of vertices adjacent; size= n(n−1)/2.K₄has 6 edges. - Regular graph: every vertex has the same degree; a k-regular graph has all degrees
= k. - Bipartite graph:
Vsplits intoV₁, V₂with every edge running between the parts, none within;Kₘ,ₙis the complete bipartite graph. - Null / empty graph
Nₙ:nvertices, no edges.
B. Multigraphs
A multigraph relaxes the simple-graph rules to allow repeated or self-connections, so E becomes a multiset.
- Parallel edges allowed: two vertices may be joined by several edges — models roads with multiple lanes or repeated relations.
- Pseudograph: a multigraph that also permits loops.
- Edge multiplicity: the number of parallel edges between a pair; multiplicity
> 1distinguishes a multigraph from a simple graph. - Contrast:
- Simple graph: loops forbidden, multiplicity ≤ 1.
- Multigraph / pseudograph: multiplicity ≥ 1, loops allowed in the pseudograph case.
III. Degrees and the Handshaking Theorem
Degree counts local connectivity and links directly to edge count.
A. Degree of a vertex
The degree deg(v) is the number of edge-ends meeting at v.
- Definition: number of edges incident on
v, with a loop counted twice. - Isolated vertex:
deg(v) = 0; pendant (leaf) vertex:deg(v) = 1. - Minimum and maximum degree: written
δ(G)andΔ(G). - Directed graphs: split into in-degree
deg⁻(v)(edges entering) and out-degreedeg⁺(v)(edges leaving);deg(v) = deg⁻(v) + deg⁺(v). - Degree sequence: the list of all vertex degrees, usually written in non-increasing order, e.g.
(3, 3, 2, 2, 2).
B. Handshaking Theorem
The sum of all degrees equals twice the number of edges, because each edge contributes to exactly two degree counts.
Σ deg(v) = 2|E| (sum taken over all v ∈ V)- Symbol meaning:
Σ deg(v)totals every vertex degree;|E|is the number of edges. - Why "2": each edge has two ends, adding 1 to the degree at each endpoint (a loop adds 2 at one vertex).
- Corollary — even count of odd-degree vertices: the number of vertices with odd degree is always even, since the odd contributions must pair up to give an even total.
- Worked example: a graph with degree sequence
(3, 3, 2, 2, 2)hasΣ deg = 12, so|E| = 12 / 2 = 6edges; the two odd-degree vertices form an even count, as required.
IV. Subgraphs and Structural Equivalence
Graphs are compared by extracting parts and by matching whole structures.
A. Sub graphs
A subgraph H = (V', E') of G = (V, E) satisfies V' ⊆ V and E' ⊆ E, with every edge of H having both endpoints in V'.
- Spanning subgraph:
V' = V(all vertices kept, some edges possibly dropped). - Induced subgraph
G[V']: take a vertex subsetV'and all edges ofGwhose endpoints both lie inV'. - Vertex/edge deletion:
G − vremovesvand all edges on it;G − eremoves just edgee. - Clique: a subset of mutually adjacent vertices — an induced complete subgraph.
B. Homeomorphic and isomorphic graphs
Two notions of "the same shape": one is exact relabelling, the other is equivalence up to subdivided edges.
- Isomorphism: a bijection
f : V(G) → V(H)preserving adjacency, i.e.{u, v} ∈ E(G) ⇔ {f(u), f(v)} ∈ E(H).- Invariants that must match: order, size, degree sequence, number of components, cycle lengths — mismatch in any proves non-isomorphism.
- Equal invariants do not guarantee isomorphism; the explicit bijection must still be exhibited.
- Edge subdivision: replacing an edge
{u, v}by a new vertexwand two edges{u, w}, {w, v}— a degree-2 vertex inserted on the edge. - Homeomorphism: graphs
GandHare homeomorphic if both can be obtained from a common graph by a sequence of edge subdivisions; they share the same underlying topological structure.- Isomorphic: identical structure, degrees preserved exactly.
- Homeomorphic: identical after smoothing out degree-2 vertices — every triangle is homeomorphic to every larger cycle.
V. Paths, Connectivity and Components
These describe reachability — how vertices link through sequences of edges.
A. Paths
A path is a walk that traverses distinct vertices, tracing a route through the graph.
- Walk: an alternating vertex–edge sequence
v₀ e₁ v₁ … eₖ vₖ; length = number of edgesk. - Trail: a walk with no repeated edge; path: a walk with no repeated vertex.
- Cycle (circuit): a closed path with
v₀ = vₖand length ≥ 1 (or ≥ 3 in a simple graph). - Reachability:
vis reachable fromuif some path joins them.
B. Connectivity
A graph is connected when there is a path between every pair of vertices.
- Connected graph: for all
u, v ∈ V, au–vpath exists; otherwise disconnected. - Vertex connectivity
κ(G): the minimum number of vertices whose removal disconnectsG(or reduces it to one vertex). - Edge connectivity
λ(G): the minimum number of edges whose removal disconnectsG. - Whitney's inequality:
κ(G) ≤ λ(G) ≤ δ(G)— connectivity is bounded by the least degree.
C. Connected components
A connected component is a maximal connected subgraph — a piece that cannot be enlarged while staying connected.
- Partition: components partition
V; every vertex lies in exactly one component. - Connected ⇔ one component:
Gis connected precisely when its component count is 1. - Example: a graph with vertices
{a,b,c,d,e}and edges{a,b}, {b,c}, {d,e}has two components —{a,b,c}and{d,e}.
VI. Distance, Diameter and Critical Elements
Metric and vulnerability measures on a connected graph.
A. Distance and diameter
Distance measures the shortest hop-count between vertices; diameter is the largest such distance.
- Distance
d(u, v): the length of the shortestu–vpath;d(u, v) = ∞if none exists. - Metric properties:
d(u,u)=0;d(u,v)=d(v,u); triangle inequalityd(u,w) ≤ d(u,v)+d(v,w). - Eccentricity
e(v): the greatest distance fromvto any other vertex,e(v)=max_{u} d(v,u). - Diameter:
diam(G) = max_{v} e(v)— the largest eccentricity; radius= min_{v} e(v). - Example: in path graph
P₄(a–b–c–d),d(a,d)=3, sodiam(P₄)=3.
B. Cut points and bridges
A cut point is a critical vertex and a bridge a critical edge whose removal breaks connectivity.
- Cut point (cut vertex / articulation point): a vertex
vsuch thatG − vhas more components thanG. - Bridge (cut edge): an edge
esuch thatG − ehas more components thanG. - Bridge test: an edge is a bridge iff it lies on no cycle — a cycle always provides an alternate route.
- Cut point: local single point of failure at a vertex; removing it isolates a set of vertices.
- Bridge: single point of failure along an edge; the only link between two parts of the graph.
- Example: in the graph
a–b–cwith edges{a,b}, {b,c}, vertexbis a cut point and both edges are bridges, since removing either separates the endpoints.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill. The rest comes out of a student's own pocket: the domain, the storage, and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason. to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it. What it pays for →