BPRG: Bootstrap Percolation on Random Graphs
BPRG is a high performance python library for analyzing bootstrap percolation in random graphs. It implements the theoretical framework in Detering and Lin (2026): Bootstrap percolation in random graphs of unbounded rank, providing comprehensive tools to study contagion dynamics in random graphs.
Overview
Bootstrap percolation is a contagion process on graphs where vertices have thresholds. The process starts with a set of initially infected vertices. An uninfected vertex with threshold $k$ becomes infected as soon as it has at least $k$ infected neighbors. This simple rule gives rise to complex infection dynamics.
For the Random Graphs setting, BPRG considers those of unbounded rank, which admits a general kernel function $κ$ that determines connection probabilities by the types of vertices.
Final fraction of infected vertices
The final fraction of infected vertices is a key quantity of interest in bootstrap percolation. It represents the proportion of the graph that becomes infected in the long run, after the infection process has stabilized. BPRG provides tools to compute this quantity via both theoretical asymptotic solution and Monte Carlo simulation.
Theoretical asymptotic solution
One of the main theoretical results of Detering and Lin (2026) is that the asymptotic final fraction of infected vertices in large random graphs is determined by the least fixed point of a non-linear operator on the space of functions. BPRG provides neural network-based solvers to promptly compute this fixed point.
Monte Carlo simulation
BPRG also provides a Monte Carlo simulation framework to efficiently generate random graphs, simulate bootstrap percolation in the graph, and estimate the final fraction of infected vertices. This allows users to validate theoretical predictions and explore infection dynamics in finite-size graphs.
Key Features
| Feature | Description |
|---|---|
| JAX-based Implementation | High-performance computations leveraging JAX |
| Random Graph of Unbounded Rank | Generate random graphs from general kernel functions $κ$ |
| Bootstrap Percolation Simulation | Simulate infection dynamics with efficient |
| Neutral Fixed Point Solvers | Neural network-based operator solvers for asympotic final infection |
| Monte Carlo Estimation | Estimate final infection through Monte Carlo methods |
References
If you use bprg in your research, please cite:
@article{detering2026bootstrap,
title={Bootstrap Percolation in Random Graphs of Unbounded Rank},
author={Detering, Nils and Lin, Jimin},
journal={Advances in Applied Probability},
year={2026},
doi={doi.org/10.1017/apr.2026.10072}
}
Metadata
Release files for bprg 0.1.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 |
|---|---|---|---|---|
| bprg-0.1.0.tar.gz | 9.4 kB | Without provenance | Details for bprg-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bprg-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bprg-0.1.0-py3-none-any.whl |
Total release size: 20.8 kB
Release files / bprg-0.1.0.tar.gz
| Download URL | bprg-0.1.0.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25ee8f7d3cda81356a8d3db6ea1efcf4e82b955468c98fbe2323993b9f8912af
|
|
BLAKE2b-256 checksum How to use checksums |
30c1f40e4ec8e7243a2c9dfa4cb77964e1cd2b0df7caa66a26c2727b6966bd9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / bprg-0.1.0-py3-none-any.whl
| Download URL | bprg-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae230422c53766c53764c1ec1beabdcb24339636fbde04bb0a8fbc604bb544f6
|
|
BLAKE2b-256 checksum How to use checksums |
6f6074ab5693d51fdbc076031d794d9af5f6d613d3b8ddcbdd30bfa3715eeacd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for bprg 0.1.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.