find shortest path between source node and destination node?

18 ビュー (過去 30 日間)
noor ali
noor ali 2015 年 5 月 18 日
コメント済み: Ken Atwell 2015 年 5 月 20 日
hi , i have 5 nodes first one i want to be start and last one which 5 i want to be last node and i want find shortest path between fisrt and last nodes how i can i do this plz somebody help me

回答 (2 件)

Ken Atwell
Ken Atwell 2015 年 5 月 19 日
Sounds like you're after a so-called breadth-first search (that search "wide" before "deep"). Google search "matlab breadth first search" and you will find several promising leads.
  2 件のコメント
Walter Roberson
Walter Roberson 2015 年 5 月 19 日
When I read the question, I do not see that the search order is given, just that the shortest path is to be found.
Ken Atwell
Ken Atwell 2015 年 5 月 20 日
Delving into a graph in breadth first order will get you the shortest plan from the original point to another.

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


Walter Roberson
Walter Roberson 2015 年 5 月 19 日

カテゴリ

Help Center および File ExchangeDijkstra algorithm についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by