Depth first search algorithm

10 visualizzazioni (ultimi 30 giorni)
Dina Emad
Dina Emad il 19 Dic 2022
Commentato: Dina Emad il 19 Dic 2022
How can I get the depth first search algorithm to find all paths between any two nodes?

Risposte (1)

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

Accedi per commentare.

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by