How to make a directed, circular chord plot in MATLAB

조회 수: 5 (최근 30일)
Chris Endemann
Chris Endemann 2019년 9월 17일
댓글: darova 2019년 9월 24일
I am attempting to represent a network using a circle of nodes, with connetions going to/from different nodes in a directed manner. I have been using the digraph object with some success, but have discovered that the lines drawn to/from different nodes using that object are always perfectly straight unless there happens to be a reciprocally connected pair of nodes (in which case some arc is added to the connections). Is there anyway to make a directed graph that has curved connections--bent at different angles depending on distance between nodes.
Essentially, I want to recreate the result from Kassebaum's circularGraph (https://www.mathworks.com/matlabcentral/fileexchange/48576-circulargraph), but with directed connections.
On a related note, I am thinking that I could use half-arrows whenever there is a reciprocal connection (so that there's room for both to/from connections to be displayed). Is this at all possible?

채택된 답변

darova
darova 2019년 9월 18일
Here is a simple method how to draw arcs
img1.png img2.png
img3.png img5.png
see attached script
  댓글 수: 4
Chris Endemann
Chris Endemann 2019년 9월 24일
I would like arrows to show the directionality of each connection in the graph, with each arrow placed at the center of each line/arc.
darova
darova 2019년 9월 24일
See attached script
Look also HERE

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Directed Graphs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by