Introduction to Homology
Introduction to Homology
1. Homotopy Groups and the Motivation for Homology
The fundamental group studies loops in a topological space. It is especially useful for low-dimensional data because it detects one-dimensional structures such as holes that loops can go around.
A natural question is whether higher-dimensional analogues of loops can also be studied. The answer is provided by the higher homotopy groups
These groups generalize the fundamental group.
Higher-dimensional loops
π1(X) is concerned with ordinary loops, which can be viewed as maps from a circle into X.
π2(X) is concerned roughly with “two-dimensional loops.”
A two-dimensional loop can be imagined as a continuously varying family of ordinary loops, sometimes described informally as a loop of loops.
Another model is a map from a square or disk into X whose boundary is held fixed or “pinned down.”
For example, a sphere contains a two-dimensional hole that ordinary loops do not detect in the same way. A family of loops can sweep across the sphere and capture this two-dimensional structure.
Difficulties with homotopy groups
Although homotopy groups are powerful, they are often difficult to compute and can behave irregularly.
For a k-dimensional sphere Sk, homotopy groups πn(Sk) can be nontrivial even when
This means that a space may have higher homotopy information that is not directly suggested by its visible dimension. The resulting groups can be complicated and difficult to understand.
Homology is introduced as a more computationally manageable alternative.
2. The Basic Idea of Homology
Homology provides a commutative, algebraic alternative to homotopy.
For a topological space X, homology constructs groups
called the homology groups of X.
Each homology group is commutative. In the context of homology, group operations are therefore usually written additively rather than multiplicatively.
In a loose but useful interpretation, Hn(X) measures the number of independent n-dimensional holes in X.
Homology is useful because it can often be computed algorithmically, even when:
The space is too complicated to visualize.
The space has many dimensions.
The meaning of an n-dimensional hole is difficult to picture directly.
The first example focuses on a graph, where the relevant structures are vertices, edges, and loops.
Homology of a Directed Graph
3. The Example Graph
Consider a graph with:
Three vertices: X, Y, and Z.
Four directed edges: A, B, C, and D.
The edges are directed as follows:
A goes from X to Y.
B goes from Y to Z.
C goes from Z to X.
D also goes from Z to X.
Thus, the graph contains several closed paths.
Examples of loops
The following combinations describe loops:
A+B+C: travel from X to Y, then to Z, then back to X.
B+C+A: the same loop, but viewed as starting at Y.
C+A+B: the same loop, viewed as starting at Z.
C−D: travel along C and then in the reverse direction of D.
A+B+D: travel from X to Y, then to Z, and return to X along D.
In a fundamental-group setting, the choice of starting point matters. In the commutative setting of homology, cyclic rearrangements are treated as equivalent:
The order of addition also does not matter:
This additive and commutative treatment allows loops to be combined algebraically.
4. Cycles and Relations Among Loops
A closed loop is called a cycle when viewed algebraically as a combination of edges whose total boundary is zero.
Three important cycles in the graph are:
A+B+C
C−D
A+B+D
These cycles are not all independent. They satisfy the relation
Expanding the right-hand side gives
The terms D and −D cancel.
Therefore, although the graph visibly contains three loops, only two of them are independent. The third is obtained by combining the other two:
This illustrates an important principle:
Homology counts independent holes, not merely the total number of visible loops.
Chains and the Boundary Operator
5. Zero-Dimensional and One-Dimensional Chains
To describe cycles algebraically, homology first organizes vertices and edges into abelian groups.
The group C0
Let C0 be the free abelian group generated by the vertices X, Y, and Z.
An element of C0 is any integer linear combination of these vertices, such as
These elements are called zero-dimensional chains, or simply 0-chains.
The coefficients must be integers. Thus, C0 behaves like an integer version of a vector space whose basis is
The group C1
Let C1 be the free abelian group generated by the directed edges A, B, C, and D.
An element of C1 is any integer combination of these edges, such as
or
These are called one-dimensional chains, or 1-chains.
Not every 1-chain is a cycle. For example, A+B+D is a cycle, while a random combination such as
usually does not represent a closed loop.
6. The Boundary of an Edge
The relationship between edges and vertices is described by a boundary operator, denoted by
The boundary of a directed edge is its final vertex minus its initial vertex:
For the example graph:
A goes from X to Y, so
∂A=Y−X.B goes from Y to Z, so
∂B=Z−Y.C goes from Z to X, so
∂C=X−Z.D also goes from Z to X, so
∂D=X−Z.
The orientation is essential. Reversing an edge changes the sign of its boundary.
The boundary operator maps 1-chains to 0-chains:
Because C1 and C0 are abelian groups, the map extends additively to all integer combinations of edges.
7. Applying the Boundary Operator to a General 1-Chain
Consider a general 1-chain
where α,β,γ,δ∈Z.
By additivity,
Substituting the individual boundaries gives
Collecting the coefficients of X, Y, and Z gives
The boundary records the net imbalance of edges at each vertex.
The coefficient of X measures the net contribution at X.
The coefficient of Y measures the net contribution at Y.
The coefficient of Z measures the net contribution at Z.
This is analogous to linear algebra, except the coefficients are integers rather than arbitrary real numbers.
Cycles as the Kernel of the Boundary Map
8. Why Closed Loops Have Zero Boundary
Consider the cycle A+B+C. Its boundary is
Substituting gives
All terms cancel:
This cancellation occurs because every intermediate vertex appears once as an endpoint and once as a starting point. In a closed loop, the final point of one edge is balanced by the initial point of another.
The same principle applies to every closed path: the total boundary is zero.
Definition of a cycle
A 1-chain T∈C1 is a cycle precisely when
Thus, cycles are exactly the elements of the kernel of the boundary map:
Here, Z1(X) denotes the group of 1-cycles.
9. Solving for All Cycles
For
the condition ∂T=0 requires every vertex coefficient to vanish:
These equations describe all possible cycles.
The system can be represented by the matrix equation
where
Solving the system over the integers gives
Let
Then
Therefore,
The null space is therefore generated by the two vectors
Interpreted as edge combinations, these correspond to:
(1,1,1,0):
A+B+C.(1,1,0,1):
A+B+D.
Hence, every cycle is an integer linear combination of these two cycles:
The cycle group is therefore
This means that there are two independent generators of the cycle group.
10. Interpreting the First Homology in the Graph Example
The two independent cycles can be chosen as
The third cycle satisfies
so it does not provide a new independent generator.
The graph therefore has:
Three visibly identifiable loops.
Two independent cycles.
A first cycle group isomorphic to Z2.
In this introductory graph example, the cycle group is being used as the first homology group. In the full definition of homology, one later factors out cycles that arise as boundaries of higher-dimensional cells. For a graph with no 2-dimensional cells, there are no such higher-dimensional boundaries, so the cycle group gives the same result.
The first homology group records independent one-dimensional holes after accounting for algebraic relationships among loops.
Homology of a General Connected Graph
11. Counting Independent Cycles Using a Spanning Tree
Suppose a connected graph has:
V vertices.
E edges.
One could compute all cycles by constructing the boundary matrix and finding its integer null space. However, a spanning-tree argument gives the answer more efficiently.
Spanning trees
A spanning tree is a subgraph that:
Contains every vertex of the original graph.
Is connected.
Contains no circuits.
A connected graph always has at least one spanning tree.
A tree with V vertices has exactly
edges.
Why a tree has V−1 edges
Begin with one vertex. Each time an edge is added to a tree:
It connects a new vertex to the existing structure.
It increases the number of edges by one.
It also increases the number of vertices by one.
The initial vertex is not paired with an edge. Every later vertex is paired with the edge that first connects it to the tree. Therefore, the tree always has one fewer edge than vertices.
12. Non-Tree Edges and Independent Cycles
The original graph has E edges, while a spanning tree contains V−1 edges. Therefore, the number of edges not included in the spanning tree is
Each edge outside the spanning tree creates exactly one independent cycle:
Add a non-tree edge to the spanning tree.
Because the tree already contains a unique path between the endpoints of that edge, the added edge completes a unique circuit.
The resulting cycle is associated with that non-tree edge.
Different non-tree edges produce independent cycles because each cycle contains a distinct edge not in the spanning tree.
Thus, for a connected graph,
The quantity
is the number of independent one-dimensional holes in the graph.
Consequences
A tree has E=V−1, so
E−V+1=0.Therefore, a tree has no one-dimensional holes.
Adding an edge that creates a circuit increases the number of independent cycles by one.
A graph may contain many visible loops, but only E−V+1 of them are independent.
The number E−V+1 is also the graph’s cycle rank or first Betti number in the connected case.
13. Summary of the Graph Construction
The graph-based construction proceeds as follows:
Form C0, the free abelian group generated by vertices.
Form C1, the free abelian group generated by directed edges.
Define the boundary of each directed edge as
∂(edge)=final vertex−initial vertex.Extend the boundary map additively to all 1-chains.
Identify cycles as the elements satisfying
∂T=0.Compute the kernel of the boundary map using integer linear algebra.
Alternatively, for a connected graph, choose a spanning tree and count the edges outside it.
The number of independent cycles is
E−V+1.
In higher-dimensional homology, the same ideas are extended by adding 2-dimensional cells, 3-dimensional cells, and higher-dimensional structures. These higher-dimensional cells introduce boundaries of their own, and the full homology groups distinguish cycles from cycles that are themselves boundaries.

Ask anything
We've read this whole study set, so questions about it get the best answers.