Basic Examples (2)
Create a discrete time random walk on a cycle graph with unit weight on each edge, starting at vertex 1 and lasting ten steps:
Extract the walk, which is a list where each element is a pair of the form {t,v}, representing a move to the vertex v at time t:
Animate this walk:
Create a continuous time random walk on the Petersen graph with unit weight on each edge, starting at vertex 1 and lasting from time t=0 to t=10:
Extract the walk, which is a list where each element is a pair of the form {t,v}, representing a move to the vertex v at time t:
Animate this walk:
Options (2)
Create a weighted graph:
Create five discrete time random walks on the graph, each starting at vertex 1 and lasting ten steps:
Extract the first of these walks, a list where each element is a pair of the form {t,v}, representing a move to the vertex v at time t:
Animate this walk:
Create a weighted graph:
Create five continuous time random walks on the graph, each starting at vertex 1 and lasting from time t=0 to t=10:
Extract the first of these walks, a list where each element is a pair of the form {t,v}, representing a move to the vertex v at time t:
Animate this walk:
Properties and Relations (2)
Create a one-dimensional discrete time random walk where the walker may either walk up or down:
This is equivalent to using RandomWalkProcess:
Possible Issues (2)
Consider a directed graph with a sink vertex:
Arbitrary length discrete time random walks may not be possible, in which case the walks found may not have the designated number of steps, and if multiple walks are found they may have different lengths: