netneurotools.metrics.flow_graph
- netneurotools.metrics.flow_graph(W, r=None, t=1)[source]
Calculate flow graph.
This function implements flow graph, instantiates a continuous time random walk on network. Waiting time for walkers at each node are distributed as Poisson with rate parameter r. This function returns the flow graph at time t.
Warning
Test before use.
- Parameters:
W ((N, N) ndarray) – Symmetric adjacency matrix.
r ((N,) or (N, 1) ndarray, optional) – Rate parameter. Will be set to np.ones((N, 1)) if not specified. Default: None
t (int, optional) – Markov time. Default: 1
- Returns:
dyn – flow graph at time T
- Return type:
(N, N) ndarray
References