Open chris-cheshire opened 8 years ago
I agree, this would be a great feature. I'm not sure if this is possible with d3 though, but I'll add it to our backlog so we can have a look at it.
Thanks.
If you're willing to simulate (edit:) a fixed number of times, this seems like it's feasible in d3:
Cool, thanks for the link. That looks useful.
It worked in the earlier version of D3, I haven't looked at the new version yet. When you called tick() you used to have to update the node positions in a callback. If you didn't update the positions and just kept calling tick until the alpha value reached the threshold, then you just updated the final node positions.
For very large graphs could there be an option where the graph ticks are calculated without moving the nodes? The final node positions only shown shown when the alpha value has cooled enough the graph is stable. This gives large performance improvements when calculating large graphs and reduces the time to generate the graph considerably.