Note
This documents the development version of NetworkX. Documentation for the current release can be found here.
has_path
Returns True if G has a path from source to target.
G (NetworkX graph)
source (node) – Starting node for path
target (node) – Ending node for path