Skip to content

Conversation

blwh
Copy link
Contributor

@blwh blwh commented Nov 23, 2022

In a later paper by Newman and Watts they generate networks that are slightly different from the original small-world networks by Watts and Strogatz. Instead of rewiring edges, they keep every original edge and add new long-range connections along the network.

This was already a pull request. However, I messed up and it got lost in the void (since I am still quite incompetent with git). Here is a new one, with tests and all. The tests use a loop to get an average degree (since it's a bit random). If this is a bad way to do this, please let me know and we'll sort something out.

In a later paper by Newman and Watts they generate networks that are
slightly different from the original small-world networks by Watts and
Strogatz. Instead of rewiring edges, they keep every original edge and
add new long-range connections along the network.
@simonschoelly simonschoelly self-requested a review November 24, 2022 07:33
@codecov
Copy link

codecov bot commented Nov 24, 2022

Codecov Report

Merging #198 (c8ea0ff) into master (ea6bcfe) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #198   +/-   ##
=======================================
  Coverage   97.40%   97.40%           
=======================================
  Files         109      109           
  Lines        6468     6470    +2     
=======================================
+ Hits         6300     6302    +2     
  Misses        168      168           

Copy link
Member

@simonschoelly simonschoelly left a comment

Choose a reason for hiding this comment

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

This looks good to me, I will leave it a bit open for now in case something else has to say something, but otherwise we will merge it soon. Thanks a lot.

About git, sometimes this website here is helpful: https://ohshitgit.com/

@simonschoelly simonschoelly merged commit 897e183 into JuliaGraphs:master Nov 30, 2022
@simonschoelly
Copy link
Member

Thanks!

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.

2 participants