NetGrowLib is an R package providing a collection of network growth models and tools for analyzing their degree distributions.
It implements classical models (Barabási–Albert, CHKNS, age-biased “Darknet”) as well as exploratory clustered variants, with utilities for log/linear binning, empirical degree distributions, and visualization.
-
Generative models
- Barabási–Albert (BA) preferential attachment
- Callaway–Hopcroft–Kleinberg–Newman–Strogatz (CHKNS) random growth
- Age-biased attachment (“Darknet” style)
- Clustered attachment model (local-neighborhood + preferential/age bias)
-
Distribution analysis
- Linear and logarithmic binning (
linbin,expbin) - Empirical degree distributions (
getLinDistribution,getLogDistribution) - Quick plotting of log–log distributions with fitted slope (
plotLogDistribution)
- Linear and logarithmic binning (
-
Theoretical tools
- Analytical degree evolution formula for BA (
get_ki)
- Analytical degree evolution formula for BA (
Clone the repository and install locally:
# from within R
devtools::install_local("path/to/NetGrowLib")See the file in the scripts section.
All functions are documented with roxygen2.
Run:
devtools::document()
?name_functionto explore the help pages.
MIT License © 2025
Developed and maintained by CoMuNeLab.