brainpy.nn.graph_flow.detect_path#

brainpy.nn.graph_flow.detect_path(from_node, to_node, edges, method='dfs')[source]#

Detect whether there is a path exist in the defined graph from from_node to to_node.