Graphplot nodes How to ensure generating only existing nodes.
Show older comments
My definition of the graph by means of source-target vectors do not cover all node indices. Eg. S=[1 30] ;T=[2, 1]. Thus nodes 3 to 29 do not show up in the graph definition. G=(di)graph(S,T) have a notion of all 30 nodes G:Nodes is table 30xempty. The "unconnected" nodes 3-29 are not of interest and not meant to be plotted in Graphplot. How can i enforce removing the unconnected nodes? My best solution so far is to "move" unwanted nodes to the side of a plot by modifying p.XData.
Looking for a nicer solution to the problem
Accepted Answer
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!





