kieler / elkjs

ELK's layout algorithms for JavaScript
Other
1.82k stars 97 forks source link

How to create a tight tree-like layout for a network graph? #233

Open frankandrobot opened 1 year ago

frankandrobot commented 1 year ago
image
soerendomroes commented 1 year ago

You can try the layered and the mrtree algorithms. I suggest trying out example graphs in elklive or elklive json.

For further guidance, I need to know what you want your drawing to look like.

Vesper0704 commented 1 year ago

I've been working on this kind of architecture layout as well. What I did is to use layered algorithm, and set partition indices for the nodes. Here is a demo you can refer to: image You can extend it horizontally by simply adding nodes/edges in a flat way because there is no nested hierarchy here.