For the same batch of data, I first used DemoForce Directed Layout, then Sankey Layout, and then restored to DemoForce Directed Layout, but the layout was incorrect, as shown in the figure.
Have you tried setting ForceDirectedLayout.randomNumberGenerator to null? What results does that produce?
What were all of the ForceDirectedLayout properties the first time, and what were they all the second time? Were there any property differences between the two layouts?
Thanks for your help！！
I deleted the position (x, y) attribute of the data before the layout, and then the problem was solved. I studied other layouts, and they didn’t have the position attribute.