Adjacency matrix definition
The adjacency matrix for a network of N nodes is a matrix of ones and zeros where a one indicates the presence of the corresponding edge in the network. Unfortunately, if the network is directed, there exist opposite conventions for how to define the adjacency matrix. We use the convention of reading indices from right to left so that we define A by aij={1if there is an edge from node j to node i0otherwise.
For example, for the network illustrated in the below figure, the adjacency matrix is A=[0000000000100001000000000000000000001000100000010001000011000010000011000000000000000110000000000000]

For more information on the adjacency matrix, see the network introduction.