Boundary 'edges' around node(s)

2 visualizzazioni (ultimi 30 giorni)
Al K
Al K il 19 Giu 2021
Commentato: Al K il 21 Giu 2021
Is there any (simple) way to put a boundary edge (not a graph theoretic edge) around a node, e.g., a black boundary edge around a node colored white? ... where a white node, made visible by a colored edge, denotes 'empty' and a black node denotes 'full'. [If not, be a nice functionality to have, e.g., color of boundary edge, width of boundary edge.] Thanks, al

Risposte (1)

Christine Tobler
Christine Tobler il 21 Giu 2021
There is no option to do this as part of the graph plot directly. You can achieve it by turning off the node markers (set 'Marker' propery to 'none'), and then creating a scatter plot based on the XData and YData properties of the graph plot.
  1 Commento
Al K
Al K il 21 Giu 2021
Thank you, Christine. Creative solution ... though it would seem a lot of work if, say, 100 nodes, perhaps of different shapes and sizes. Best, al

Accedi per commentare.

Categorie

Scopri di più su Graph and Network Algorithms in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by