Learn R Programming

PLEXI (version 1.0.0)

rep_random_walk: Repetitive Fixed-length (weighted) random walk algorithm

Description

Repetitive Fixed-length (weighted) random walk algorithm

Usage

rep_random_walk(
  graph,
  Nrep = 100,
  Nstep = 5,
  weighted_walk = TRUE,
  verbose = TRUE
)

Value

Steps (S): The total number of times a node is visited starting from the corresponding node in the row. Probabilities (P): The node visit probabilities starting from the corresponding node in the row.

Arguments

graph

an igraph object

Nrep

number of repeats (default:100)

Nstep

maximum number steps (default:5)

weighted_walk

choose the weighted walk algorithm if TRUE and simple random walk if FALSE. (default: TRUE)

verbose

if TRUE a progress bar is shown.

Examples

Run this code
data = example_data()
RW = rep_random_walk(graph = data[["igraph_example"]])
Steps = RW[["Steps"]]
Probabilities = RW[["Probabilities"]]

Run the code above in your browser using DataLab