Table of Contents
netneurotools.datasets
netneurotools.networks
netneurotools.plotting
netneurotools.metrics
netneurotools.modularity
netneurotools.stats
netneurotools.spatial
netneurotools.interface
netneurotools.experimental
Return the shortest paths between two nodes.
s (int) – Source node
t (int) – Target node
p_mat ((N, N) array_like) – Predecessor matrix returned from distance_wei_floyd
path – List of nodes in the shortest path from s to t. If no path exists, returns [-1].
list of int
See also
netneurotools.metrics.distance_wei_floyd