-
Notifications
You must be signed in to change notification settings - Fork 34
Issue 82 #111
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
Issue 82 #111
Conversation
|
Thank you, good findings 👍 |
Co-authored-by: Jukka Kurkela <[email protected]>
|
|
Sorry, there was a small bug that I fixed because we were calling |
|
Merged! I'm not able to do a version bump for couple of days though. So if you're eager to get this released, a pr for version bumb would help 😉 |




Fix #81 and #82.
Currently, in the case of user-provided columns, the
maxXvalue returned bycalculateXcan be computed incorrectly, because it always returns the finalxvalue created in the while loop that processes each column. In the case of user-provided columns, the nodes already havexvalues that may be higher than this value. Take for example the following data from #82:In this case, the highest value of
xin the node collection will be 4, but because all 4 edges lead to a single node,calculateXwill return 1. This change fixes this issue by iterating over all nodes and taking the maximum value ofxinstead, so even in the case of user-provided columns the correct value formaxXwill be returned.This pull request also fixes a runtime error that can occur in the case that there is no node whose
xvalue matches a given column.Thank you for your consideration.