
Calculate massively parallelised personalised page rank scores
rs_page_rank_parallel.Rd
Helper function to calculate in parallel on the same network the
personalised page rank as fast as possible. Can be used for permutation
type approaches.
Usage
rs_page_rank_parallel(
node_names,
from,
to,
weights,
diffusion_scores,
undirected,
damping_factor,
tol
)Arguments
- node_names
String vector. Name of the graph nodes.
- from
String vector. The names of the
fromedges from the edge list.- to
String vector. The names of the
toedges from the edge list.- weights
Optional weight vector. If NULL, defaults to 1.0 as weight for all edges.
- diffusion_scores
List. The personalised vectors for the page rank reset values. Each element must sum to 1 and be of same length of
node_names!- undirected
Boolean. Is this an undirected graph.
- damping_factor
Numeric in
[0, 1]. Probability of continuing the walk.- tol
Numeric > 0. Convergence threshold on the L1 change between iterations.