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

energy() always returns NaN for all its values #38

Open
kjyv opened this issue Nov 26, 2012 · 1 comment
Open

energy() always returns NaN for all its values #38

kjyv opened this issue Nov 26, 2012 · 1 comment

Comments

@kjyv
Copy link

kjyv commented Nov 26, 2012

Apart from the number of nodes, all values are NaN at all times. It would be nice to have this measure to i.e. stop the display updates until the graph is changed again.

@Curtisdhi
Copy link

I was also having this issue. While investigating this problem, I noticed the version that is used on the examples on arborjs.org, that the energy returns the correct values, and the graph automatically stops when the energy goes below a threshold. So something between that version and the current must have changed how the calculations are made and causing them to be NaN.

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