0

I am using a concentric layout with number of nodes and if i want to give edgeLength for each node dynamically. How will i be able to achieve that?

Yogesh Jangra
  • 66
  • 1
  • 12

1 Answers1

0

Edge length is a function of layout. Use a layout that allows you to specify edge length. Typically, those are physics simulation layouts.

maxkfranz
  • 11,896
  • 1
  • 27
  • 36
  • As i am using a cose layout, the edgeLength function is working for all the nodes at once, but i need to make each edge length dynamically(based on the value i am sending from the db). I tried with concentric and circle layout also but same thing is happening. Any solutions? Thanks in advance. – Yogesh Jangra Apr 06 '16 at 17:36
  • Use the functions, just like in the example args for the layout – maxkfranz Apr 20 '16 at 14:56