Incidence Matrix
Let \(G=(V,A)\) be a graph with \(V=\{v_1,v_2,\dots,v_n\}\) and \(A=\{a_1,a_2,\dots,a_m\}\). The incidence matrix of \(G\) is the matrix \[ B=(b_{ij}) \in \mathbb{R}^{n \times m}, \] where rows represent edges (or arcs) and columns represent vertices.
Undirected graph
Each column of the matrix has exactly two values equal to 1, corresponding to the two vertices connected by the edge.
Directed graph (most common in computing)
- \(-1\) indicates the source vertex of the arc
- \(+1\) indicates the destination vertex of the arc
- \(0\) indicates that the vertex does not participate in that arc
Incidence Matrix Example with Directed Graph G
Vertex order: (A, B, C, D, E)
Each column represents a vertex and each row represents an edge (arc).