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.

Corollary 1 (Row sums give the degree)

For each vertex , the row sum equals 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.

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.

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 .

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.

Examples


Example 5

For with , and , ordering rows as , the incidence matrix is

References

  1. [1]

    “Incidence matrix”, Wikipedia, Available: https://en.wikipedia.org/wiki/Incidence_matrix, Accessed: 2026-07-15

  2. [2]

    “Incidence Matrix”, Wolfram MathWorld, Available: https://mathworld.wolfram.com/IncidenceMatrix.html, Accessed: 2026-07-15