-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Network ~900Nodes can't use improvedLayout #2906
Comments
I managed to reproduce this. I must say it looks glorious on screen: However, the layout easing does take ages; it's still going on while I type this. The issue, in a nutshell, is that the network is big and very interconnected. The message:
...occurs because the layout algorithm attempts to divide the network into clusters, but fails. The idea of clustering is to improve performance by being able to handle the clusters independently. You can get rid of this message by setting The best ways out that I see is:
Of note: for less than 100 nodes, a different layout algorithm kicks in, which should perform better. I'm afraid I can't help further; perhaps someone more savvy than me has a better idea. |
If the goal is to just display the network, I can offer the following idea:
This should display the network much faster on startup. |
You can also achieve some speed improvement with the physics options. For example:
Displays instantly, nodes are so packed in a circle, you can hardly discern them.
After an initial delay, displays a decent network but much faster. It's still moving though. It might also be worthwhile to play around with the |
Thank you for your information about the algorithm and settings! Absolute positions is not an option. I've got stabilized the network in 987 iterations 9 seconds with this options:
Is this a good solution? :-) |
I would say that this is an excellent solution! It would not have occurred to me to use such a huge negative But, on the whole, this is better than anything I managed to tinker up. |
And you might as well set |
Thank you! I thought had no performance improvement, because the iterations with improvedLayout: false are the same. I need any tiny extra bit of performance improvement. |
Today i used Firefox to show the network. This browser needs 2468 iterations and 2 minutes to stabilize. Any idea? Thanks! |
Revisited this issue: if I set (1) On my machine, which is admittedly a pretty hefty beast. YMMV. |
@baba2k Did this answer your question? Is there any further assistance you need? |
Closed due to inactivity. Feel free to reopen if this is still relevant. |
got something useful! thanks all! |
now I have 7k nodes, then I'm try to use your options to draw my network, but It also use a few minutes, may be 6-10 minutes. |
Hello,
i want to display a network with ~900 nodes and ~ 2500 edges with visjs. Network: http://pastebin.com/DD7BWmuT
And got the following message:
This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.
It takes with improvedLayout true and false 7489 iterations to stabilize.
Whats wrong with this network or configuration? Used actual version 4.19.1.
//EDIT: I've tried it with some other big networks like posted above and got this message every time.
Thank you!
The text was updated successfully, but these errors were encountered: