摘要: 1 a = [1,1,1,2,2,3,4]; % 起点节点 2 b = [2,3,4,3,5,4,5]; % 终点节点 3 c = [3,2,2,1,3,4,3]; % 对应权值 4 g = digraph(a,b,c); % 创建图 5 [path,distance] = shortestpath 阅读全文
posted @ 2020-02-26 13:25 SavenNeer 阅读(4026) 评论(0) 推荐(0) 编辑