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

View source: R/random_walk.R

rep_random_walkR Documentation

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
)

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.

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.

Examples

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


PLEXI documentation built on Aug. 9, 2023, 5:08 p.m.

Related to rep_random_walk in PLEXI...