Construction
This note is under construction.
TODO
This note has things to do.
- Restructre and rethink the “Variants” section. I would like to show the differences of incidence matrices for different graph types.
- What is a “vertex-edge incidence matrix”? Is there a “edge-vertex incidence matrix”?
- Lemmas, Theorems and Corollaries should be for each of the type.
- The stuff about LP relaxation and linear optimization should not be in this note, this violates atomicity of notes.
- Graph types
- Directed graph
- Undirected graph
- Bipartite graph
- Multi graph
- Weighted graph
- What about “simple graphs” and combinations of the graph types.
In graph theory, the incidence matrix [1][2] of a graph is a matrix that records the incidence of vertices and edges, with rows indexed by the vertex set and columns indexed by the edge set. Together with the adjacency matrix, it is one of the standard matrix representations of a graph.
TODO
Variants
The sections below cover the incidence matrix for several specific graph types. The undirected, directed, and edge-weighted cases differ in the shape or values of the matrix, while the cycle and bipartite cases are special graph families whose incidence matrices carry additional structure. Each keeps the same basic idea, encoding which vertices are endpoints of which edges.
Undirected graph
Definition 1 (Incidence matrix of an undirected graph)
Let be a simple undirected graph, i.e. one without self loops or parallel edges, with vertex set and edge set . The incidence matrix of is the binary matrix given by
Properties
Lemma 1 (Column sums)
The incidence matrix of a simple undirected graph has exactly two ‘s in each column, one for each endpoint of the corresponding edge.
Proof of Lemma 1
Every edge of a simple graph has exactly two distinct endpoints, since has no self-loops. By Definition 1, exactly for the two rows corresponding to those endpoints, and for every other row.
Corollary 1 (Row sums give the degree)
For each vertex , the row sum equals the degree of .
Proof of Corollary 1
By Definition 1, exactly when is an endpoint of , and otherwise. Summing over therefore counts exactly the edges incident to , which is the degree of .
Examples
Example 1 (Cycle graph )
For with and , the incidence matrix is
Directed graph
Definition 2 (Incidence matrix of a directed graph)
Let be a directed graph with vertex set and edge set . The incidence matrix of is the signed matrix , distinguishing the tail from the head of each directed edge, given by
Properties
Theorem 1 (Total unimodularity of the directed incidence matrix)
The incidence matrix of a directed graph is always totally unimodular.
Proof of Theorem 1
We show by induction on that every square submatrix of satisfies .
Base case (): every entry of lies in by Definition 2, so .
Inductive step: assume the claim holds for all square submatrices, and let be a square submatrix of . Each column of has at most one (the tail’s row) and at most one (the head’s row), so each column of has , , or nonzero entries.
If some column of is entirely zero, then .
If some column of has exactly one nonzero entry, expanding the determinant along that column gives , where is the submatrix of obtained by deleting that row and column. By the inductive hypothesis, , so .
Otherwise, every column of has exactly two nonzero entries, a and a , which cancel. Then the rows of sum to the zero vector, so they are linearly dependent and .
In every case .
Examples
Example 2 (Directed cycle graph)
For with and , labeled , , , the incidence matrix is
Edge-weighted graph
Definition 3 (Incidence matrix of an edge-weighted graph)
Let be an edge-weighted graph with weight function . The incidence matrix of is the matrix given by
with replaced by in the signed, directed case.
Examples
Example 3 (Edge-weighted triangle graph)
For with , and weights , , , the incidence matrix is
Cycle graph
A cycle graph is a simple undirected graph, so its incidence matrix is the one given by Definition 1. Its distinguishing feature is that the determinant of this matrix is governed by the parity of .
Properties
Lemma 2 (Cycle determinant)
Let be the cycle graph on vertices with edges (indices mod ), and let be its incidence matrix. Then if is even, and if is odd.
Proof of Lemma 2
Row of has nonzero entries only in columns and (indices mod ), since is an endpoint only of and . In the Leibniz expansion of , a permutation contributes only if for every row . Any such that is neither the identity nor the full cyclic shift must mix the two choices, which forces two rows to map to the same column, so would not be a bijection. Hence the only two permutations contributing to the determinant are the identity, with sign , and the -cycle , with sign . Therefore
If is even, , so . If is odd, , so .
Examples
Example 4 (Triangle graph )
For with and , the incidence matrix is
Since is odd, , in agreement with Lemma 2.
Bipartite graph
Definition 4 (Incidence matrix of a bipartite graph)
Let be a bipartite graph with partitions and , and edge set . Let be the vertices of listed with first and second, so for and for . The incidence matrix of is the matrix given by
Properties
The incidence matrix of a bipartite graph is a principal source of totally unimodular matrices, a property rooted in the block structure that the bipartite row ordering imposes.
Lemma 3 (Bipartite block structure)
The incidence matrix of a bipartite graph , with rows ordered as followed by , has in each column exactly one nonzero entry among the rows corresponding to and one among the rows corresponding to , since every edge joins a vertex in to one in .
Proof of Lemma 3
By definition of a bipartite graph, every edge has one endpoint in and one endpoint in . By Definition 4, exactly for the two rows corresponding to those endpoints, one among (the -rows) and one among (the -rows), and for every other row.
The block structure underlies the following characterization of total unimodularity for undirected incidence matrices.
Theorem 2 (Total unimodularity criterion)
The incidence matrix of an undirected graph is totally unimodular if and only if is bipartite.
Proof of Theorem 2
() Suppose is bipartite, with incidence matrix as in Definition 4. Let be the matrix obtained from by multiplying every row corresponding to by . By Lemma 3, each column of has exactly one among the -rows and one among the -rows, so each column of has exactly one and one , the same pattern as the incidence matrix of a directed graph (Definition 2). By Theorem 1, is totally unimodular. Multiplying rows by changes the sign but not the absolute value of the determinant of any square submatrix, so is totally unimodular as well.
() We prove the contrapositive. Suppose is not bipartite, so it contains an odd cycle on some subset of its vertices and edges. The submatrix of restricted to these rows and columns is exactly the incidence matrix of , so by Lemma 2 its determinant is . Hence is not totally unimodular.
Examples
Example 5
For with , and , ordering rows as , the incidence matrix is
References
- [1]
“Incidence matrix”, Wikipedia, Available: https://en.wikipedia.org/wiki/Incidence_matrix, Accessed: 2026-07-15 ↩
- [2]
“Incidence Matrix”, Wolfram MathWorld, Available: https://mathworld.wolfram.com/IncidenceMatrix.html, Accessed: 2026-07-15 ↩