maze.py 文件源码

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

项目:RasPiBot202 作者: DrGFreeman 项目源码 文件源码
def getNextNodeInShortestPath(self, currentNode, goalNode):
        path = nx.shortest_path(self.g, currentNode, goalNode, weight = 'weight')
        if len(path) ==1:
            return path[0]
        else:
            return path[1]

    # Finds the next node in the path to the nearest node with unvisited paths
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号