powered by
Weighted Random Walk algorithm
weightd_random_walk(graph, startNode, maxStep = 5, node_names = FALSE)
The set of nodes passed by the random walker.
an igraph object
the starting node (i.e. a node name or a node index)
maximum number steps (default:5)
a list of names for nodes
data = example_data() nodePath = weightd_random_walk(graph = data[["igraph_example"]], startNode = 1)
Run the code above in your browser using DataLab