what does pred means in the command (dist ,path, pred)=graphshortestpath(G,S)?
2 次查看(过去 30 天)
显示 更早的评论
[dist,path,pred]= graphshortestpath(DG,1,2)
dist =
1.3600
path =
1 5 4 6 2
pred =
0 6 5 5 1 4
0 个评论
回答(1 个)
Ingrid
2015-12-2
just write the following command in your matlab:
doc graphshortestpath
This will tell you that:
... pred contains the predecessor nodes of the winning paths.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!