bds-sampler-0.1.2
توضیحات
Python bindings for bi-degree sequence generator
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bds-sampler-0.1.2 |
| نام | bds-sampler |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ian Hunt-Isaak |
| ایمیل نویسنده | ianhuntisaak@gmail.com |
| آدرس صفحه اصلی | https://github.com/ianhi/BDS-sampler |
| آدرس اینترنتی | https://pypi.org/project/bds-sampler/ |
| مجوز | BSD license |
# BDS-sampler
[](https://github.com/ianhi/BDS-sampler/raw/main/LICENSE)
[](https://pypi.org/project/BDS-sampler)
[](https://python.org)
[](https://github.com/ianhi/BDS-sampler/actions)
[](https://codecov.io/gh/ianhi/BDS-sampler)
cython bindings for Charo Del Genio's bi-degree sequence generator (https://charodelgenio.weebly.com/directed-graph-sampling.html)
which are an implementation of the paper Constructing and sampling directed graphs with given degree sequences https://doi.org/10.1088/1367-2630/14/2/023012
## Install
```bash
python setup.py build_ext -i
pip install .
```
# Usage
```python
from bds_sampler import sample
import numpy as np
seq = np.array(
[
[1, 2],
[3, 2],
[4, 6],
[3, 3],
[5, 3],
[4, 4],
]
)
print(sample(in_seq=seq[:, 0], out_seq=seq[:, 1], N_samples=10))
```
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
| - | scipy |
| - | ipython |
| <0.18.0 | jedi |
| - | black |
| - | flake8 |
| - | flake8-docstrings |
| - | isort |
| - | mypy |
| - | pre-commit |
| - | pydocstyle |
| - | pytest |
| - | tox |
| - | tox-conda |
| - | pytest |
| - | pytest-cov |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| <3.10,>=3.7 | Python |
نحوه نصب
نصب پکیج whl bds-sampler-0.1.2:
pip install bds-sampler-0.1.2.whl
نصب پکیج tar.gz bds-sampler-0.1.2:
pip install bds-sampler-0.1.2.tar.gz