has_path
Returns True if G has a path from source to target.
G (NetworkX graph)
NetworkX graph
source (node) – Starting node for path
node
target (node) – Ending node for path