Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running ForceAtlas2 from a set position. #97

Closed
jamjar919 opened this issue Nov 17, 2020 · 2 comments
Closed

Running ForceAtlas2 from a set position. #97

jamjar919 opened this issue Nov 17, 2020 · 2 comments

Comments

@jamjar919
Copy link

I am trying to render a complex network using the React-Sigma wrapper. I know the base structure of this network to be many nodes of degree one and some of a very high degree. To this end, I have preformatted my graph data with x and y coordinates that represent an approximate layout, with degree one nodes clustered around the nodes they are connected to. I then want to run the ForceAtlas2 simulation from this point. However, when I try to do this, the simulation appears to just randomise and change the initial positions of the nodes to be in the centre.

A GIF and some code is available on my SO post (https://stackoverflow.com/questions/64874518/running-forceatlas2-from-a-set-position-in-sigma-js) but I was wondering if anyone had had a similar issue and if they managed to fix it?

@dunnock
Copy link
Owner

dunnock commented Nov 19, 2020

@jamjar919 replied you in SO, but in short is ForceAtlas2 expects higher scale of positions and it changes them significantly during first iteration.

@jamjar919
Copy link
Author

Ah thought that might have been you! Cheers, will close this <3

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

No branches or pull requests

2 participants