kieler / elkjs

ELK's layout algorithms for JavaScript
Other
1.67k stars 90 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 11 months 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 11 months 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.