Depth first search algorithm

How can I get the depth first search algorithm to find all paths between any two nodes?

回答 (1 件)

Askic V
Askic V 2022 年 12 月 19 日

1 投票

Use built in function:
https://www.mathworks.com/help/matlab/ref/graph.dfsearch.html

1 件のコメント

Dina Emad
Dina Emad 2022 年 12 月 19 日
I mean, the algorithm which give me all paths taking into account the source and destination nodes. This function doesn’t make what I need

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

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

製品

リリース

R2022b

タグ

質問済み:

2022 年 12 月 19 日

コメント済み:

2022 年 12 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by