docs: fix sample_degseq() example#1297
Conversation
Current Aviator status
This PR was merged using Aviator.
See the real-time status of this PR on the
Aviator webapp.
Use the Aviator Chrome Extension
to see the status of your PR within GitHub.
|
sample_degseq() example
|
How about just doing something like the following and avoiding while (! is_graphical(degs <- sample(1:100, 100, replace = TRUE, prob = (1:100)^-2)) ) {}This keeps sampling until we hit on a graphical degree sequence (which happens with a high probability in this case). I am not really in favour of the name No other comments except that I really hate the current method names and I am hoping that #876 will be fixed soon ... |
3448508 to
37ca70b
Compare
start adding examples add correct seed update
fix #1289
note that
rlang::check_installed()will prompt the user to install withr, which is handy IMHO.