has_path#

has_path(G, source, target)[源代码]#

返回 True 如果 G 有一条来自 来源目标 .

参数
G网络X图表
source结点

路径的起始节点

target结点

路径的结束节点