Incidence matrices
Introduction / Definition
An incidence matrix records which vertices are incident with which edges. For an undirected simple graph, entries are commonly 1 when a vertex is an endpoint of an edge and 0 otherwise. The matrix converts graph structure into linear algebra. It is useful in network analysis and graph algorithms.
Syntax / Mathematical Form
Mᵢⱼ=1 if vertex vᵢ is incident with edge eⱼ; otherwise 0
Detailed Explanation
Rows correspond to vertices and columns to edges. In an undirected simple graph, each ordinary edge column has two 1s. Directed versions often use −1 and +1 to indicate orientation.
Example / Worked Example
Edges e₁={1,2}, e₂={2,3} give M = [ 1 0 ] [ 1 1 ] [ 0 1 ].
Output / Result
The incidence matrix is 3×2.
Important Points / Notes
- Rows = vertices.
- Columns = edges.
- Undirected ordinary edge column has two 1s.
Mini Practice Question
Write the incidence matrix for a path with vertices 1,2,3 and edges e₁={1,2}, e₂={2,3}.