Skip to main content

Python bindings for bi-degree sequence generator

Project description

BDS-sampler

License PyPI Python Version CI codecov

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

python setup.py build_ext -i
pip install .

Usage

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))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bds_sampler-0.1.2.tar.gz (65.7 kB view details)

Uploaded Source

Built Distributions

bds_sampler-0.1.2-cp39-cp39-win_amd64.whl (39.2 kB view details)

Uploaded CPython 3.9 Windows x86-64

bds_sampler-0.1.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (159.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

bds_sampler-0.1.2-cp39-cp39-macosx_11_0_arm64.whl (32.9 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

bds_sampler-0.1.2-cp39-cp39-macosx_10_9_x86_64.whl (36.0 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

bds_sampler-0.1.2-cp38-cp38-win_amd64.whl (39.1 kB view details)

Uploaded CPython 3.8 Windows x86-64

bds_sampler-0.1.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (168.5 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

bds_sampler-0.1.2-cp38-cp38-macosx_11_0_arm64.whl (32.8 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

bds_sampler-0.1.2-cp38-cp38-macosx_10_9_x86_64.whl (35.6 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

bds_sampler-0.1.2-cp37-cp37m-win_amd64.whl (38.6 kB view details)

Uploaded CPython 3.7m Windows x86-64

bds_sampler-0.1.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (151.7 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

bds_sampler-0.1.2-cp37-cp37m-macosx_10_9_x86_64.whl (35.2 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file bds_sampler-0.1.2.tar.gz.

File metadata

  • Download URL: bds_sampler-0.1.2.tar.gz
  • Upload date:
  • Size: 65.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for bds_sampler-0.1.2.tar.gz
Algorithm Hash digest
SHA256 de1ff32c4c3b4ee3a76476d71b4ededf0a7049554981388932cbc88ec307a125
MD5 a5b067c77c00fe684c0054b2e3ba0fa5
BLAKE2b-256 d7d863b63f4d2f923d1bf981b5fe924d09bb4bc4c34aa0ece37f8726fd9c1dc8

See more details on using hashes here.

File details

Details for the file bds_sampler-0.1.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: bds_sampler-0.1.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 39.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for bds_sampler-0.1.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0d94de3175da0be5769c06540ba1892aa2b7b12b9ad3b4c0039218c874ccc53b
MD5 33ccebd84bdf95268eb12bd630fca257
BLAKE2b-256 c65b285cf8ee9899a41c60476ac8c7782f43f37a6a8e3b088367b529af9acc82

See more details on using hashes here.

File details

Details for the file bds_sampler-0.1.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for bds_sampler-0.1.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8ba0b9e96fc53d810e5eb0a0a08498ef38a88f05651b3cc3fcb655892d7ce5de
MD5 256d88e1c9119af2076c8843c2819f89
BLAKE2b-256 2539993c7f8f3bfd5ad1b6e86cc5d220fdaea314c67104f18ac698ba33fbfaae

See more details on using hashes here.

File details

Details for the file bds_sampler-0.1.2-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

  • Download URL: bds_sampler-0.1.2-cp39-cp39-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: CPython 3.9, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for bds_sampler-0.1.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a352cc56245ca646769ef98345555fa9713c53cc4ebb2c74dcb24d477ada8f71
MD5 939f055023b51605d5857f7f5b58fc8e
BLAKE2b-256 e685cbf76fbf3d7294764c1084351de17fc38bed56176d9b25d5f1b779e51a4d

See more details on using hashes here.

File details

Details for the file bds_sampler-0.1.2-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: bds_sampler-0.1.2-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 36.0 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for bds_sampler-0.1.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 700188a0c806f3e60346009dc47d6fc9d7ffac2a0b3031ba7d948d5a968e3251
MD5 0003ca95c3345683031dc47ee4760ccc
BLAKE2b-256 35fb1e85072ba7f3031efa312c63d45e9cda8cc1e23f6d02fad5fdc1da0f3199

See more details on using hashes here.

File details

Details for the file bds_sampler-0.1.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: bds_sampler-0.1.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 39.1 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for bds_sampler-0.1.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 413b49908940725d61220d171e70a028b3a12ba52727356446fef715f1fe4907
MD5 d96439ac9a0e365322c5947d9231b741
BLAKE2b-256 dfd9f6d159eeb805c6bfa1e9044468eafd31fb4e35eba885b5e604324dbb89a9

See more details on using hashes here.

File details

Details for the file bds_sampler-0.1.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for bds_sampler-0.1.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 68d27bc9795da305b054e67333b117ba6a38578141a4e0f44fb717dfdc40305e
MD5 03d3b61739b03f4a8532513869775d38
BLAKE2b-256 98a67fc6ad1d72c16dfa64bd71d22b2a433dfc5fdf5c9dc93ab7275b3ca4faf1

See more details on using hashes here.

File details

Details for the file bds_sampler-0.1.2-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

  • Download URL: bds_sampler-0.1.2-cp38-cp38-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 32.8 kB
  • Tags: CPython 3.8, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for bds_sampler-0.1.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec2fbbfd2941c55b5b8439cedbd9d451afd64170d25fabff174522076d55152b
MD5 02209cc3df5fb66478e11e3d72b4223c
BLAKE2b-256 607fa0e8c48228da6e5bb775ea85e3cc8aeae94bddf2230a03f81fbeaa7f41f1

See more details on using hashes here.

File details

Details for the file bds_sampler-0.1.2-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: bds_sampler-0.1.2-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 35.6 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for bds_sampler-0.1.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1362223473b455c35bb0f45d2594113a7d28993a646edfa9448f2bb697d71f9d
MD5 92c854ee84e92c94d79d1db86281d0a3
BLAKE2b-256 206ee75ea5a7564b0599699139ba53510f5dfb445e90b11d5291545b6b5628bd

See more details on using hashes here.

File details

Details for the file bds_sampler-0.1.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: bds_sampler-0.1.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 38.6 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for bds_sampler-0.1.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 de36671d43ecb57f82b245217325f5fa5da4f21e5ea27f52a4b86b16363f373f
MD5 3a332b2117683bf224fda7febc6fb1c0
BLAKE2b-256 57dc2c07475de35877adddbbb2f429606a3f6ff7c899cd8a9da78c5aaa6420ad

See more details on using hashes here.

File details

Details for the file bds_sampler-0.1.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for bds_sampler-0.1.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 49e945eab0a0e96f1e8b1a87c85cc376fc2f915267ba0b6b5d2271c81f165a38
MD5 73fd9d811a95a97a17a202c91468b837
BLAKE2b-256 d08c50093419f282d2503bef2ac87b377297b972ec2fc55b36b296276ff1f01a

See more details on using hashes here.

File details

Details for the file bds_sampler-0.1.2-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: bds_sampler-0.1.2-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 35.2 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for bds_sampler-0.1.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0386826fe08199b9b2c4bccfddbc8fd157161600a182823e175365130a04f318
MD5 ea6aacc2e8ea07a1fef7836b6ed3242c
BLAKE2b-256 a03816ac38f583037b9e3eed0322c99a152ea4b5cc9118cddbcececef7c670d5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page