rep_random_walk {PLEXI} | R 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"]]
[Package PLEXI version 1.0.0 Index]