Depth first search algorithm

8 views (last 30 days)
Dina Emad
Dina Emad on 19 Dec 2022
Commented: Dina Emad on 19 Dec 2022
How can I get the depth first search algorithm to find all paths between any two nodes?

Answers (1)

Askic V
Askic V on 19 Dec 2022
Use built in function:
https://www.mathworks.com/help/matlab/ref/graph.dfsearch.html
  1 Comment
Dina Emad
Dina Emad on 19 Dec 2022
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

Sign in to comment.

Tags

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!