9.7.5. networkx.algorithms.shortest_paths.generic.has_path

networkx.algorithms.shortest_paths.generic.has_path(G, source, target)[source]

Return True if G has a path from source to target.

Parameters:

G : NetworkX graph

source : node

Starting node for path

target : node

Ending node for path