Skip to content

Fix incorrect inequality in watts_strogatz documentation #175

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/SimpleGraphs/generators/randgraphs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ where each vertex has exacly `div(k, 2)` neighbors on each side (i.e., `k` or
1. Consider each vertex `s` in turn, along with the edge to its `i`th nearest
neighbor `t`, in a clockwise sense.

2. Generate a uniformly random number `r`. If `r β`, then the edge `(s, t)` is
2. Generate a uniformly random number `r`. If `r < β`, then the edge `(s, t)` is
left unaltered. Otherwise, the edge is deleted and *rewired* so that `s` is
connected to some vertex `d`, chosen uniformly at random from the entire
graph, excluding `s` and its neighbors. (Note that `t` is a valid candidate.)
Expand Down