Skip to content

xrhoffmann/networks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

networks

Code style: black

Network generation and analysis.

2021, Xavier R. Hoffmann [email protected]

This repository is licensed under the MIT License.

generation

Module to generate synthetic networks.

All functions are straightforward, except sample_powerlaw_with_natural_cutoff.

This function samples N values of a power law with exponent gamma, restricted from k_min to k_max = floor( k_min * N ** [1 / (gamma - 1)]). It samples the corresponding continuous distribution and uses a simple rejection method to sample the target discrete distribution. See docs for details.

analysis

Module to analyze networks.

The function breadth-first checks if the networks has a single component or not. It can be adapted to compute other cluster-related properties.

About

Network generation and analysis in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published