Skip to main content

watts_strogatz

Function watts_strogatz 

Source
pub fn watts_strogatz(n: usize, k: usize, beta: f64) -> Graph<(), ()>
Expand description

Watts-Strogatz small-world graph. Start with a ring lattice where each node connects to k nearest neighbors, then rewire each edge with probability beta.