anvaka / VivaGraphJS

Graph drawing library for JavaScript
Other
3.73k stars 423 forks source link

How to specify a link weight? #88

Closed mheinzerling closed 10 years ago

mheinzerling commented 10 years ago

I would like to display nodes closer together based on the type of the link/relation between them. See also http://stackoverflow.com/questions/23595051/specify-link-weight-in-vivagraphjs . Is there any way to accomplish this with VivaGraph or will all links have in general the same length/weight?

anvaka commented 10 years ago

Replied on stackoverfow. Example is available here: customLinkLength.html. I found it's usually hard to come with universal layout arguments.