Learn R Programming

mnda (version 1.0.9)

WeightdRandomWalk: Weighted Random Walk algorithm

Description

Weighted Random Walk algorithm

Usage

WeightdRandomWalk(graph, startNode, maxStep = 5, node_names = FALSE)

Value

The set of nodes passed by the random walker.

Arguments

graph

an igraph object

startNode

the starting node (i.e. a node name or a node index)

maxStep

maximum number steps (default:5)

node_names

a list of names for nodes

Examples

Run this code
data = example_data()
nodePath = WeightdRandomWalk(graph = data[["igraph_example"]], startNode = 1)

Run the code above in your browser using DataLab