Incidence Matrix — Definition, Formula & Examples
An incidence matrix is a rectangular matrix that shows which vertices are connected by which edges in a graph. Each row represents a vertex, each column represents an edge, and the entries indicate whether a vertex is an endpoint of that edge.
For an undirected graph with vertices and edges, the incidence matrix is the matrix where if vertex is an endpoint of edge , and otherwise. For a directed graph, if edge leaves vertex , if edge enters vertex , and otherwise.
Key Formula
Where:
- = The incidence matrix of size n × m
- = The i-th vertex of the graph
- = The j-th edge of the graph
How It Works
To build an incidence matrix, label each vertex as a row and each edge as a column. For an undirected graph, place a 1 in row , column whenever vertex touches edge ; every non-loop column will contain exactly two 1s. For a directed graph, use for the tail (source) of an edge and for the head (target). The sum of each row gives the degree of that vertex in the undirected case. Incidence matrices are especially useful for computations in network flow, circuit analysis, and algebraic graph theory.
Worked Example
Problem: Construct the incidence matrix for an undirected graph with vertices {A, B, C} and edges e₁ = {A, B}, e₂ = {B, C}, e₃ = {A, C}.
Set up the matrix: Create a 3×3 matrix with rows for vertices A, B, C and columns for edges e₁, e₂, e₃.
Fill in entries for e₁ = {A, B}: Vertex A and vertex B are endpoints of e₁, so place 1 in rows A and B of column e₁. Vertex C gets 0.
Fill in entries for e₂ = {B, C} and e₃ = {A, C}: Apply the same rule for the remaining edges to complete the matrix.
Answer: The incidence matrix is the 3×3 matrix shown above. Each column sums to 2 (each edge has two endpoints), and each row sum gives the degree of that vertex (all vertices have degree 2).
Why It Matters
Incidence matrices appear throughout electrical engineering (Kirchhoff's laws rely on the oriented incidence matrix), network optimization, and algebraic graph theory. The matrix product is closely related to the Laplacian matrix, which drives spectral clustering algorithms and connectivity analysis.
Common Mistakes
Mistake: Confusing the incidence matrix with the adjacency matrix.
Correction: The adjacency matrix is square (vertex × vertex) and records which vertices are adjacent. The incidence matrix is rectangular (vertex × edge) and records which vertices touch which edges. They encode the same graph but have different dimensions and different entries.
