Layout change but the layout was incorrect


#1

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.


#2

Have you tried setting ForceDirectedLayout.randomNumberGenerator to null? What results does that produce?


#3

See the 2798 line settings, no effect


#4

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?


#5

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.