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
MutableNetwork.hasEdgeConnecting throw IllegalArgumentException when node are missing #3721
Comments
It looks like a bit subtle, but However, you're right that the short-circuiting behavior of |
This is just a straight-up bug on our parts; I'm coding up a fix now. The problem originates in the fact that Sorry about that; thanks for the catch. :) |
I've submitted an internal fix; this should be propagating externally soon. |
…ng it to throw if either endpoint was not in the graph. RELNOTES=Fix bug in AbstractNetwork.hasEdgeConnecting() causing it to throw if either endpoint was not in the graph. Originally reported as GitHub issue #3721. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=282846559
…ng it to throw if either endpoint was not in the graph. RELNOTES=Fix bug in AbstractNetwork.hasEdgeConnecting() causing it to throw if either endpoint was not in the graph. Originally reported as GitHub issue #3721. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=282846559
This is fixed in v28.2: https://github.com/google/guava/releases/tag/v28.2 |
According to the javadoc, the hasEdgeConnecting method is equivalent to nodes().contains(nodeU) && successors(nodeU).contains(nodeV).
But, unlike this expression, it throws an exception if the nodes are unknown.
Here is a simple demonstration
version guava-28.1-jre
The text was updated successfully, but these errors were encountered: