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

Check that edge weights are numeric during StellarGraph construction #1191

Merged
merged 1 commit into from
Apr 2, 2020

Conversation

huonw
Copy link
Member

@huonw huonw commented Apr 1, 2020

Most (all?) algorithms using edge weights will be using them as numbers, so we can centralise the error handling code by doing it when creating a StellarGraph. That is, after this patch, the edge weights in any StellarGraph will be enforced to be numeric.

See: #1118

@codeclimate
Copy link

codeclimate bot commented Apr 1, 2020

Code Climate has analyzed commit f0b84d9 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Security 2

View more on Code Climate.

@huonw huonw requested a review from kjun9 April 2, 2020 00:14
@huonw huonw marked this pull request as ready for review April 2, 2020 00:14
Copy link
Contributor

@kjun9 kjun9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Huon! Looks good

@huonw huonw merged commit 9c4d7f9 into develop Apr 2, 2020
@huonw huonw deleted the bugfix/1118-validate-weights branch April 2, 2020 03:28
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

Successfully merging this pull request may close these issues.

None yet

2 participants