How to control the curvature of each edge when drawing graph object?
조회 수: 9 (최근 30일)
이전 댓글 표시
However, I want to edit the curvature of each edge as different values.
How can I assign the degree of curvature in each edge?
Thank you!
댓글 수: 0
답변 (2개)
Matt J
2024년 1월 10일
You do not have any direct control over how the edges are drawn. You do have control over the X,Y postiions of nodes, however, so conceivably, you could insert a lot of subnodes along the edges at desired X,Y locations so as to trace out a particular curve.
댓글 수: 0
Christine Tobler
2024년 1월 10일
The curvature of the edges in this plot aren't controllable. You could turn off the edges from the graph plot, and use the plot command to instead draw your own edges. The coordinates of each node are available through the XData, YData properties.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!