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

Can I set node position in the graph? #89

Open
yancychy opened this issue Jul 5, 2017 · 5 comments
Open

Can I set node position in the graph? #89

yancychy opened this issue Jul 5, 2017 · 5 comments

Comments

@yancychy
Copy link

yancychy commented Jul 5, 2017

No description provided.

@WenyinWei
Copy link

Hi dhotson,

I have the same request with Yang Chen, would you mind adding this new arguments?

@yancychy
Copy link
Author

yancychy commented May 2, 2019

The algorithm of springy determines the node position are randomly set. If you want to put them in fixed position, you have to design your algorithm.

@WenyinWei
Copy link

Thanks a lot. Would you mind pointing out where the core code is? I am not a js user so this may cost some time.

@yancychy
Copy link
Author

yancychy commented May 3, 2019

You can find it : https://github.com/dhotson/springy/blob/master/springy.js .
I think they used the Force-directed algorithm: https://www.jianshu.com/p/d3c64a39535a

@WenyinWei
Copy link

#105 Hello yancychy, @yancychy I have changed the code and now it should support position specification.

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