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

4 vues (au cours des 30 derniers jours)
Benson Gou
Benson Gou le 15 Jan 2021
Commenté : Benson Gou le 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

Réponse acceptée

Walter Roberson
Walter Roberson le 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.
  1 commentaire
Benson Gou
Benson Gou le 16 Jan 2021
Thanks a lot, Walter. You have a good weekend!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Construction dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by