Efficient sampling of Geometric Inhomogeneous Random Graphs (GIRG). Wrapper for C++ libraries libgirg and libhypergirg.
Project description
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.
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file girg_sampling-0.3.0.tar.gz.
File metadata
- Download URL: girg_sampling-0.3.0.tar.gz
- Upload date:
- Size: 27.9 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ff37f0a308d5842f94144da64fcda414556e557c5b0b2ba0fff2b7a80d04f50
|
|
| MD5 |
ba71a7dfd709c8f642382a45f6e8b6ba
|
|
| BLAKE2b-256 |
eb01358db3c4c58f693d79822faadde0cf5dade26d50e9e824f8f1f0e331bb41
|
File details
Details for the file girg_sampling-0.3.0-cp312-cp312-manylinux_2_35_x86_64.whl.
File metadata
- Download URL: girg_sampling-0.3.0-cp312-cp312-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.12, manylinux: glibc 2.35+ x86-64
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74d9072e8940e02ef86b3647bcfa37457e40ca6cb13858aab5a9040f703d7176
|
|
| MD5 |
da65c56a0c7fd0f9d0a69f0fb85ac6cd
|
|
| BLAKE2b-256 |
7f21e2aeeefe7ec0a760de34ce7e8ffe01484d5540ffd1fb83f0801c461bf568
|
File details
Details for the file girg_sampling-0.3.0-cp311-cp311-manylinux_2_35_x86_64.whl.
File metadata
- Download URL: girg_sampling-0.3.0-cp311-cp311-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.11, manylinux: glibc 2.35+ x86-64
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be6fbb293866f8ac16bbb2b550f41aa597dfa9464bf12c49d0e8d78b1152b4cd
|
|
| MD5 |
f56ecd8f422e29019f9fb4a430b37e9e
|
|
| BLAKE2b-256 |
1f2d636bee893fbb36db9365291b43c702fd6ee1567de97abbe8748b576e1316
|
File details
Details for the file girg_sampling-0.3.0-cp310-cp310-manylinux_2_35_x86_64.whl.
File metadata
- Download URL: girg_sampling-0.3.0-cp310-cp310-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.10, manylinux: glibc 2.35+ x86-64
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be3fa03cb87680dd8bd2766522872a3aac316f7f485830661943c3f3186589b8
|
|
| MD5 |
e16d562f0a1c872f012df792c51f284d
|
|
| BLAKE2b-256 |
4ba844e9a9e61dca62a581cc232d1e07e83e80e15422c0efe066dcc68641971d
|
File details
Details for the file girg_sampling-0.3.0-cp39-cp39-manylinux_2_35_x86_64.whl.
File metadata
- Download URL: girg_sampling-0.3.0-cp39-cp39-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.9, manylinux: glibc 2.35+ x86-64
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a18ec5279549565db7966e2bc1c4e35e77b81d8c8fe177052b929b02daf02ba
|
|
| MD5 |
9ed3b2a478109a418bbc7a923979d5f6
|
|
| BLAKE2b-256 |
a4701ecde7d35e252bf72604d76a5417dd151401c35d56d52d7076c3c05505d7
|
File details
Details for the file girg_sampling-0.3.0-cp38-cp38-manylinux_2_35_x86_64.whl.
File metadata
- Download URL: girg_sampling-0.3.0-cp38-cp38-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.8, manylinux: glibc 2.35+ x86-64
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05dffb03991803fd3af342a884f4ea123df0e7e1e9f54e53698a1221d2336650
|
|
| MD5 |
eff53c51b81d9433ea96c76f91730a02
|
|
| BLAKE2b-256 |
37a2d388e4f10519157302c6613b9da869cb3a7d5ea3fc948fe46d8f41a35051
|