what does pred means in the command (dist ,path, pred)=graphshortestpath(G,S)?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
[dist,path,pred]= graphshortestpath(DG,1,2)
dist =
1.3600
path =
1 5 4 6 2
pred =
0 6 5 5 1 4
0 commentaires
Réponses (1)
Ingrid
le 2 Déc 2015
just write the following command in your matlab:
doc graphshortestpath
This will tell you that:
... pred contains the predecessor nodes of the winning paths.
Voir également
Catégories
En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!