Graphplot nodes How to ensure generating only existing nodes.
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Graph and Network Algorithms dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!






