what does pred means in the command (dist ,path, pred)=grap​hshortestp​ath(G,S)?

2 Ansichten (letzte 30 Tage)
Student
Student am 2 Dez. 2015
Kommentiert: Student am 3 Dez. 2015
[dist,path,pred]= graphshortestpath(DG,1,2)
dist =
1.3600
path =
1 5 4 6 2
pred =
0 6 5 5 1 4

Antworten (1)

Ingrid
Ingrid am 2 Dez. 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.
  1 Kommentar
Student
Student am 3 Dez. 2015
yes i do understand this but the problem is that the values stored in this pred donot form a logic.....

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by