compute_transition_matrix
Builds the random transition matrix P. The probability of going from node i to node`j` is equal to: