graphshortestpath invalid destination node

11 ビュー (過去 30 日間)
sbei arafet
sbei arafet 2017 年 10 月 31 日
コメント済み: Adam Storeygard 2018 年 10 月 3 日
Hi, i tried to use graphshortestpath in Matlab 2017a, it works only with one destination node. The same code works for different destination nodes in Matlab 2015b. Is there any update for graphshortestpath function in the latest versions of Matlab. Thanks
  1 件のコメント
Adam Storeygard
Adam Storeygard 2018 年 10 月 3 日
I am having this problem as well. To be slightly more precise, here is some example code that generates an error in Matlab 2017a:
tmp = graphshortestpath(sparse(rand(2)),1,[1;2])
The returned error is:
Error using graphshortestpath (line 96)
Invalid destination node.
This code worked for me in Matlab 2016a. Is anyone aware of a workaround in Matlab 2017a?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by