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

Is it possible to dynamically update such a graph? #1

Open
lowerkey opened this issue Oct 12, 2012 · 5 comments
Open

Is it possible to dynamically update such a graph? #1

lowerkey opened this issue Oct 12, 2012 · 5 comments

Comments

@lowerkey
Copy link

Hi there,

Great project, I've been looking for this for years now. Thanks for writing this and making it available on github!
I was wondering if it's possible to dynamically update the graph simply by updating the graph object.

  • Josh
@allenhwkim
Copy link

+1

1 similar comment
@nodemand
Copy link

+1

@brian-stinar
Copy link

I adjusted the initial position of all nodes to be the same (center point) to get a cool explode-from-the-center effect. So, if you adjust the position of a node, everything should flow based on that. It did for me. All of the attractive, and repulsive, forces are still applied based on the new position(s) but I remember this not being super hard.

This wasn't so useful for dragging nodes around, since their corrective forces (mostly) pulled them back to whatever steady state I just adjusted them away from. It was useful for a cool initial condition.

Sorry if this is straight up wrong, or I'm taking credit for something I didn't do. I haven't worked on this code base in like four years, so my memory might not be that awesome. Hopefully this helps.

@davidpiegza
Copy link
Owner

@brian-stinar Thanks for your comment. Where can we find the code you are talking about? Is it this commit: brian-stinar@9eaa739?

I think I will not be able to implemnt this feature due to lack of time but your code might help other contributers.

@brian-stinar
Copy link

brian-stinar commented Feb 15, 2018 via email

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

No branches or pull requests

5 participants