Function transition_matrix

Source
pub fn transition_matrix<N, E, Ix>(
    graph: &Graph<N, E, Ix>,
) -> Result<(Vec<N>, Array2<f64>)>
where N: Node + Clone, E: EdgeWeight + Into<f64>, Ix: IndexType,
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.