[latexpage]
Mathematically speaking, a network is a graph of \( m \) nodes connected by \( n \) directed arcs. Here, we assume that arcs are ordered pairs, with at most one arc joining any two nodes; we also assume that there are no self-loops (arcs from a node to itself). We do not assume that the edges of the graph are weighted—they are all similar.
We can fully describe the network with the so-called arc-node incidence matrix, which is the \( m \times n \) matrix defined as
\[ A_{ij} = \left\{ \begin{array}{ll} 1 & \text{if arc } j \text{ starts at node } i \\ -1 & \text{if arc } j \text{ ends at node } i \\ 0 & \text{otherwise.} \end{array} \right. , \quad 1 \le i \le m, \quad 1 \le j \le n. \]
See also: Network flow.