<!-- badges: start -->
[![R-CMD-check](https://github.com/Yelie-Yuan/wdnet-r/workflows/R-CMD-check/badge.svg)](https://github.com/Yelie-Yuan/wdnet-r/actions)
[![CRAN status](https://www.r-pkg.org/badges/version/wdnet)](https://CRAN.R-project.org/package=wdnet)
<!-- badges: end -->

The R package **wdnet** provides functions to conduct network analysis:

1. Assortativity, centrality, clustering coefficient 
   for weighted and directed networks;
2. Rewire an unweighted network with given assortativity coefficient(s);
3. Preferential attachment (PA) network generation with user-defined 
   preference functions.


## Installation

You may install the released version from [CRAN](https://CRAN.R-project.org/package=wdnet).

```R
install.packages("wdnet")
```


## Development

The development version of this package is available on [Gitlab](https://gitlab.com/wdnetwork/wdnet/).


## License

[GNU General Public License](https://www.gnu.org/licenses/) (≥ 3)