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

1 Ansicht (letzte 30 Tage)
Benson Gou
Benson Gou am 15 Jan. 2021
Kommentiert: Benson Gou am 16 Jan. 2021
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 15 Jan. 2021
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.

Weitere Antworten (0)

Kategorien

Mehr zu Construction finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by