Boundary 'edges' around node(s)

조회 수: 2 (최근 30일)
Al K
Al K 2021년 6월 19일
댓글: Al K 2021년 6월 21일
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

답변 (1개)

Christine Tobler
Christine Tobler 2021년 6월 21일
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
Al K
Al K 2021년 6월 21일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by