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

4 次查看(过去 30 天)
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