kieler / elkjs

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

[Question] how to get Symmetric Layout ? #296

Closed BingCoke closed 3 months ago

BingCoke commented 3 months ago

like this image

soerendomroes commented 3 months ago

Please reproduce your model in elklive.

I suggest something like this, which does require you to know how to create the symmetry in advance to be able to use the layered algorithm for undirected graphs.

If you cannot know this, I suggest to use stress layout.

BingCoke commented 3 months ago

Please reproduce your model in elklive.请在elklive中复制您的模型。

I suggest something like this, which does require you to know how to create the symmetry in advance to be able to use the layered algorithm for undirected graphs.我建议这样的事情,这确实需要你知道如何提前创建对称性,以便能够将分层算法用于无向图。

If you cannot know this, I suggest to use stress layout.如果你不知道这一点,我建议使用压力布局

that is what i need! Thanks