Skip to contents

[Experimental] Personalised page rank with at most 1000 iterations.

Usage

rs_page_rank(
  node_names,
  from,
  to,
  weights,
  personalised,
  undirected,
  damping_factor,
  tol
)

Arguments

node_names

String vector. Name of the graph nodes.

from

String vector. The names of the from edges from the edge list.

to

String vector. The names of the to edges from the edge list.

weights

Optional weight vector. If NULL, defaults to 1.0 as weight for all edges.

personalised

Numerical vector. The reset values. They 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.

Value

The personalised page rank values.