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 个评论

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 Exchange 中查找有关 Get 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