python
Depthslowly
好好经营自己的小空间
展开
-
Dijkstra算法
#Dijkstra算法是从一个顶点到其余各顶点的最短路径算法,解决的是有权图中最短路径问题#核心思想是:每次遍历到始点距离最近且未访问过的顶点的邻接节点,直到扩展到终点为止。原创 2022-05-23 17:31:46 · 208 阅读 · 0 评论 -
安装graphviz
报错:ExecutableNotFound: failed to execute PosixPath('dot'), make sure the Graphviz executables are on your systems' PATH卸载: pip uninstall graphviz重新:brew install graphviz报错:Error: No such file or directory @ rb_sysopen - /Users/mac/Library/Cache...原创 2022-04-25 14:20:09 · 1655 阅读 · 2 评论