store path of minimum spanning tree

1 view (last 30 days)
hi,
i a 14 node system and i want minimum spanning tree from one node to some of the nodes but not all the nodes. at the moment am able to get minimum spanning tree of all the nodes. also is possible to get a full path from one node to the other node instead of the predecessor table?
thanks

Accepted Answer

Steven Lord
Steven Lord on 1 Aug 2019
Use the shortestpath or shortestpathtree functions for graph and digraph objects.
  9 Comments
sibabalo noludwwe
sibabalo noludwwe on 7 Aug 2019
so this is my goal Steven hope you will understand what am trying to do. I have a 13 bus IEEE test system in Simulink that I got from file exchange. I want to Simulate a fault in simulink for example to say that one of the connection lines is out, and from that I want to compute possible paths from a source to a certain load and run a load flow study of those paths and from there I select the shortest path that passes the load flow study.
at the moment my challenge is to automatically transfer the simulink network after the fault to matlab as a graph. for now I am manually doing the graph myself but it will get complicted as I simulate more faults meaning as i remove several edges.
So if you can assist with the first part I would appreciate it :-)

Sign in to comment.

More Answers (0)

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by