The Node-Arc Incidence Matrix
Introduces the node-arc incidence matrix of a directed graph: how to construct it from a graph, how to read arcs off its columns, and how it encodes flow conservation in the compact matrix form .
Step 1 of 157%
Tutorial
Definition of the Node-Arc Incidence Matrix
Let be a directed graph with nodes and arcs. The node-arc incidence matrix of is the matrix whose rows are indexed by the nodes and whose columns are indexed by the arcs.
For each arc (directed from to ), the corresponding column of is defined by
In other words, each column has a in the row of its tail node, a in the row of its head node, and zeros everywhere else.
For example, consider the directed graph on three nodes with arcs and . We build the matrix column by column:
- Arc : place in row and in row .
- Arc : place in row and in row .
This gives