Depth first search algorithm

9 次查看(过去 30 天)
Dina Emad
Dina Emad 2022-12-19
评论: Dina Emad 2022-12-19
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
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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by