-
Notifications
You must be signed in to change notification settings - Fork 4
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
Thoughts on a new strategy #9
Comments
Hi, I'm happy to you're finding it useful :) I'm definitely open to PRs, especially if you think your What're your thoughts on this? |
@rsokl you wouldn't have that strategy available somewhere , would you? (its 2-3 years later so appreciate that this comment is probably not going to be seen) I would love to have a look on how to create such a strategy as we are testing some graph functions and would like to use hypothesis and hypothesis-testing for that |
@mamonu I do still have it. I will try to make it available to you in the next few days |
@rsokl if you're willing to share it further I can also have a look at including your strategy in hypothesis-networkx. You're also welcome to open a PR yourself of course ;) |
@mamonu @pckroon sorry for the delay! https://github.com/rsokl/graph_strat Please let me know if you have any questions or see any issues. @pckroon feel free to incorporate this into |
@mamonu fyi I just pushed a somewhat minor change to improve the caching used by the partition generator |
Hi @pckroon . I used your
graph_builder
strategy to create a new hypothesis strategy that I found to be quite useful. It is designed to generate a graph that has a guaranteed min/max number of connected component, and each component is guaranteed to have a min/max number of nodes.I'm curious if you would be interested in adding this as a strategy to hypothesis-networkx. I also have tests for this that provides full coverage.
For more details, here is the full signature / docstring. As noted below, it is possible to provide parameters that over-constrain the graphs to be generated, in all such cases the strategy will raise a
ValueError
telling the user that their specification is unsatisfiable.The text was updated successfully, but these errors were encountered: