pub fn transition_matrix<N, E, Ix>(
graph: &Graph<N, E, Ix>,
) -> Result<(Vec<N>, Array2<f64>)>
Expand description
Compute the transition matrix for random walks on the graph
Returns a row-stochastic matrix where entry (i,j) is the probability of transitioning from node i to node j.