Constructing an O/D Matrix
The above figure represents movements (O/D pairs) between five locations
(A, B, C, D and E). From this graph, an O/D matrix can be built where
each O/D pair becomes a cell. A value of 0 is assigned for each O/D
pair that does not has an observed flow.