Skip to content

Nodes with lots of Edges become unstable #1

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

Closed
rm-code opened this issue Jan 12, 2016 · 1 comment
Closed

Nodes with lots of Edges become unstable #1

rm-code opened this issue Jan 12, 2016 · 1 comment
Labels

Comments

@rm-code
Copy link
Owner

rm-code commented Jan 12, 2016

When a node is connected to a ton of other nodes it starts accelerating indefinitely and breaks the graph layout.

@rm-code rm-code added the bug label Jan 12, 2016
@rm-code
Copy link
Owner Author

rm-code commented Jan 12, 2016

Resetting the default values for the forces should do the trick:

local FORCE_SPRING = -0.001;
local FORCE_CHARGE = 1000000;

local FORCE_MAX = 4;
local NODE_SPEED = 128;
local DAMPING_FACTOR = 0.95;

local DEFAULT_MASS = 0.005;

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

No branches or pull requests

1 participant