GIRG sampling
A Python wrapper for the GIRGs sampling library (C++). Contains a direct wraper of the C++ library and NetworkX Graph generators (optional). Efficiently generates Geometric Inhomogeneous Random Graphs (GIRGs) and Hyperbolic Random Graphs (HRGs).
See the paper Efficiently Generating Geometric Inhomogeneous and Hyperbolic Random Graphs for details of the algorithm.
Install
Install from PyPI as girg-sampling via pip, poetry etc.
To build the package locally, install Poetry package manager and run poetry build, optionally with poetry install.
To use generateNetworkX functions, you need to have the networkx package (not a default dependency of girg-sampling)
Usage
import girg_sampling
g = girg_sampling.girgs.generateNetworkX(n=135, ple=1.5, dim=4, deg=4.2, alpha=100, seed=41)
h = girg_sampling.hypergirgs.generateNetworkX(n=1001, alpha=0.75, T=0.7, deg=2.2, seed=None)
See tests for sample usage of the raw C++ wrappers.
Changelog
- 0.1.0: A direct wrapper of the C++ graph generator functions.
- 0.2.0: Minor fixes, unify
seedparam, add e2e tests, build wheels for python up to 3.10 - 0.2.1: Update urllib3 dev-dependency for twine under Python 3.10
- 0.3.0: Add NetworkX wrapper, update python version, add docs.
Metadata
Release files for girg-sampling 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| girg_sampling-0.3.0.tar.gz | 27.9 kB | Without provenance | Details for girg_sampling-0.3.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| girg_sampling-0.3.0-cp312-cp312-manylinux_2_35_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.35+ x86-64 | Details for girg_sampling-0.3.0-cp312-cp312-manylinux_2_35_x86_64.whl |
| girg_sampling-0.3.0-cp311-cp311-manylinux_2_35_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.35+ x86-64 | Details for girg_sampling-0.3.0-cp311-cp311-manylinux_2_35_x86_64.whl |
| girg_sampling-0.3.0-cp310-cp310-manylinux_2_35_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.35+ x86-64 | Details for girg_sampling-0.3.0-cp310-cp310-manylinux_2_35_x86_64.whl |
| girg_sampling-0.3.0-cp39-cp39-manylinux_2_35_x86_64.whl | CPython 3.9 | CPython 3.9 | Linux glibc 2.35+ x86-64 | Details for girg_sampling-0.3.0-cp39-cp39-manylinux_2_35_x86_64.whl |
| girg_sampling-0.3.0-cp38-cp38-manylinux_2_35_x86_64.whl | CPython 3.8 | CPython 3.8 | Linux glibc 2.35+ x86-64 | Details for girg_sampling-0.3.0-cp38-cp38-manylinux_2_35_x86_64.whl |
Total release size: 8.0 MB
Release files / girg_sampling-0.3.0.tar.gz
| Download URL | girg_sampling-0.3.0.tar.gz |
|---|---|
| Size | 27.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ff37f0a308d5842f94144da64fcda414556e557c5b0b2ba0fff2b7a80d04f50
|
|
BLAKE2b-256 checksum How to use checksums |
eb01358db3c4c58f693d79822faadde0cf5dade26d50e9e824f8f1f0e331bb41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.5
|
Release files / girg_sampling-0.3.0-cp312-cp312-manylinux_2_35_x86_64.whl
| Download URL | girg_sampling-0.3.0-cp312-cp312-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.12 Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
74d9072e8940e02ef86b3647bcfa37457e40ca6cb13858aab5a9040f703d7176
|
|
BLAKE2b-256 checksum How to use checksums |
7f21e2aeeefe7ec0a760de34ce7e8ffe01484d5540ffd1fb83f0801c461bf568
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.12.0
|
Release files / girg_sampling-0.3.0-cp311-cp311-manylinux_2_35_x86_64.whl
| Download URL | girg_sampling-0.3.0-cp311-cp311-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.11 Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
be6fbb293866f8ac16bbb2b550f41aa597dfa9464bf12c49d0e8d78b1152b4cd
|
|
BLAKE2b-256 checksum How to use checksums |
1f2d636bee893fbb36db9365291b43c702fd6ee1567de97abbe8748b576e1316
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.5
|
Release files / girg_sampling-0.3.0-cp310-cp310-manylinux_2_35_x86_64.whl
| Download URL | girg_sampling-0.3.0-cp310-cp310-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.10 Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
be3fa03cb87680dd8bd2766522872a3aac316f7f485830661943c3f3186589b8
|
|
BLAKE2b-256 checksum How to use checksums |
4ba844e9a9e61dca62a581cc232d1e07e83e80e15422c0efe066dcc68641971d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.13
|
Release files / girg_sampling-0.3.0-cp39-cp39-manylinux_2_35_x86_64.whl
| Download URL | girg_sampling-0.3.0-cp39-cp39-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.9 Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
2a18ec5279549565db7966e2bc1c4e35e77b81d8c8fe177052b929b02daf02ba
|
|
BLAKE2b-256 checksum How to use checksums |
a4701ecde7d35e252bf72604d76a5417dd151401c35d56d52d7076c3c05505d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.18
|
Release files / girg_sampling-0.3.0-cp38-cp38-manylinux_2_35_x86_64.whl
| Download URL | girg_sampling-0.3.0-cp38-cp38-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.8 Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
05dffb03991803fd3af342a884f4ea123df0e7e1e9f54e53698a1221d2336650
|
|
BLAKE2b-256 checksum How to use checksums |
37a2d388e4f10519157302c6613b9da869cb3a7d5ea3fc948fe46d8f41a35051
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.8.18
|
Security for girg-sampling 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.