Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Hierarchical sortMethod: hubsize not working for complex graphs #1813

Closed
rtong opened this issue Apr 22, 2016 · 5 comments
Closed

Hierarchical sortMethod: hubsize not working for complex graphs #1813

rtong opened this issue Apr 22, 2016 · 5 comments

Comments

@rtong
Copy link

rtong commented Apr 22, 2016

Recently, I bumped visjs version from 4.8.2 to 4.15.1 for my app.
The layout of my graph is broken after the update. I dig a little bit and found it was caused by Hierarchical sortMethod: hubsize.

Reproduce: The same data set, same options. Only difference is visjs.js version.
For version 4.8.2
https://jsfiddle.net/gkcggxbf/
For version 4.15.1
https://jsfiddle.net/cd0c1vgz/

Note:
The broken graph begins with super long edges, but it keeps shrinking to the center. After some time, it will finally stabilized. If you zoom in, you could see the same graph in version 4.8.2

I believe there is something wrong with the new version. Feel free to contact me ([email protected]) if you have any concern or question. I hope this could be fix as soon as possible, since hubsize is handy for my app.

Thanks a lot!

@mojoaxel
Copy link
Member

We should check if this is still an issue.

@KunalAppensure
Copy link

Is this feature working fine in 4.20 version ??
Currently we are using 4.8.2 version and we are facing this same problem

@wimrijnders
Copy link
Contributor

wimrijnders commented Mar 28, 2017

I ran it with current version v4.19.1, I get this.

untitled

I believe this is OK.
You might want to confirm with the jsfiddle above.

@wimrijnders
Copy link
Contributor

This particular layout works with vis.js v4.19.1.

However, this is not to say that the issue has been resolved. There are other layouts in which the 'exploding network' thing still happens.

I'm collecting all duplicates to a single issue, so that the problem can be addressed centrally.

@wimrijnders
Copy link
Contributor

Duplicate #1735.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants