What toolbox is required for allpaths() built-in command?

I found out that there is an in-built command to find possible paths between two nodes in a graph.
paths = allpaths(G,s,t)
But when I use it it says command not found. I am unable to decipher what toolbox I might need to install for this. Anyone please tell. This is the documentation page https://www.mathworks.com/help/matlab/ref/graph.allpaths.html
The surprising thing is the shortestpath command works fine. I assume these two commands fall in the same toolbox but then why allpaths isn't working?

 採用された回答

Jan
Jan 2021 年 11 月 21 日
編集済み: Jan 2021 年 11 月 21 日

0 投票

The documentation looks, like allpaths belongs to Matlab's standard toolbox, but it was introduced in R2021a. Which Matlab version do you use?
shortestpath is existing sind R2015b.

1 件のコメント

Jaya
Jaya 2021 年 11 月 21 日
編集済み: Jaya 2021 年 11 月 21 日
Yes, I just figured that out. I was using 2020 version but I updated to 2021 and now it is working. Thanks. I knew that this function didn't exist and that's why I was using my own script. But today, I was taken by surprise when I saw the allpaths() documentation & decided to use this in place of my code.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGraph and Network Algorithms についてさらに検索

製品

質問済み:

2021 年 11 月 21 日

編集済み:

2021 年 11 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by