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!