watch

Graph.watch(nodes)

Creates a handle that watches node probability during propagation.

Parameters:nodes (array of ints) – the nodes to watch (e.g. [0,1,4]).
Returns:: creates a handle that can be accessed to retrieve node probabilities for various \(t\)
Return type:pyCTQW.MPI.ctqw.nodeHandle()

Example

>>> walk.watch([0,1,2,3,4])
>>> walk.propagate(5.,method='chebyshev')
>>> timeArray, probArray = walk.handle.getLocalNodes()

Warning

Note that walk.handle attributes are not collective; if running on multiple nodes, only local values will be returned.