Reputation: 21
Is there any way by which I can manipulate the edge lengths of graphs in concentric layout ? I know cola.js(cola layout) provides manipulation of edge length in cytoscape.js, but I want to use concentric layout and also manipulate the edge's length or cola.js's layout and get the concentric layout.
Please suggest on this. Thanks in advance.
Upvotes: 1
Views: 737
Reputation: 12242
Layouts that allow setting relatively precise edge length are generally physics simulations. You won't get regular shapes, like concentric circles, with them.
You could approximate distance by setting the levels, though this won't be exact -- because distances will vary on different sides of the circles. The levels are regularly spaced, as long as there is no overlap.
So, you can disable overlap correction and set the levels and level widths according to the relative distances you want. You can use a smaller sweep (maybe ~90 degrees) to make the association of level-to-distance a bit closer.
Upvotes: 1