pub fn google_matrix(
graph: &Graph,
alpha: f64,
weight_attr: &str,
) -> (Vec<f64>, Vec<String>)Expand description
Compute the Google PageRank matrix: alpha * S + (1-alpha) * v * e^T
Returns a flat n×n matrix in row-major order, along with the node list. S is the row-stochastic transition matrix (dangling nodes get uniform 1/n).