Skip to main content

barabasi_albert

Function barabasi_albert 

Source
pub fn barabasi_albert(n: usize, seed: u64) -> Vec<u8> 
Expand description

Barabási-Albert scale-free network via preferential attachment.

Returns adjacency matrix as flat row-major Vec of shape [n, n].