How to find a shortest path from a node to a sub-network?

2 ビュー (過去 30 日間)
Benson Gou
Benson Gou 2021 年 1 月 15 日
コメント済み: Benson Gou 2021 年 1 月 16 日
Dear All,
I want to find out the shortest path from a given node to a sub-network in a graph.
Thanks a lot in advance.
Benson

採用された回答

Walter Roberson
Walter Roberson 2021 年 1 月 15 日
TR = shortestpathtree(G,s,t) computes the tree of shortest paths between multiple source or target nodes:
  • s can be a single source node, and t can specify multiple target nodes.
  1 件のコメント
Benson Gou
Benson Gou 2021 年 1 月 16 日
Thanks a lot, Walter. You have a good weekend!

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by