pathwise.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:watlink 作者: dustalov 项目源码 文件源码
def has_sense_path(G, source, target):
    if source not in G.senses or target not in G.senses:
        return False

    for source_sense, target_sense in itertools.product(G.senses[source], G.senses[target]):
        if nx.has_path(G, source_sense, target_sense):
            return True

    return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号