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

조회 수: 4 (최근 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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Construction에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by