摘要: 利用graphshortestpath 可以求最短路径,具体用法参考MATLAB帮助 以下是运行结果,节点1到节点9的最短路径为19 利用graphallshortestpaths可以求出所有最短路径 Dists=graphallshortestpaths(G) %求所有最短路径 注意一点的是创建稀 阅读全文
posted @ 2016-09-22 09:51 加拿大小哥哥 阅读(6261) 评论(0) 推荐(2) 编辑