dynG
dynG keeps the results of graph algorithms up to date while the graph changes in batches of edge insertions and deletions, without recomputing from scratch. It unifies the research codes of DynaMOSP (dynamic shortest paths) and TruCy / DynTruCy (cycle counting), with more algorithms (multi-objective shortest paths, hypergraph motifs, label propagation) to follow.
import dyng
g = dyng.Graph.from_edges([0, 0, 1, 2], [1, 2, 2, 3], [4, 1, 1, 5]) # src, dst, weights
tree = dyng.sssp.compute(g, source=0) # shortest-path tree
batch = dyng.EdgeBatch(insert=([1], [3], [1]), delete=([0], [2]))
stats = dyng.sssp.update(g, batch, tree) # incremental update
print(tree.distances.to_numpy(), stats.invalidated)
hist = dyng.cycle_count.compute(g, max_length=4) # simple cycles by length
print(hist.counts.tolist(), hist.total)
The package also installs the dyng command line, which reads and writes the formats of the
original tools:
$ dyng cycle_count compute --graph DD_A.txt --max-length 6 # histogram CSV
$ dyng sssp compute --graph roadNet-CA_ --out init # MOSP's distance and tree files
$ dyng sssp update --graph roadNet-CA_ --changes batch --init init --out updated
This wheel contains the sequential and OpenMP backends (dyng.Resources("openmp")); the CUDA
backends follow as plugin wheels in the 0.1.x releases. The C++ library, the documentation and
the parity reports with the original codes are at https://github.com/dyng-dev/dyng.
Cite dynG and the papers behind the algorithms you use: dyng.citation("sssp").
License: dynG is Apache-2.0. The wheel also contains nanobind (BSD-3-Clause), robin-map (MIT)
and the GCC runtime (GPL-3.0-or-later WITH GCC-exception-3.1), which the distributions' licence
expression names; their licences are in THIRD_PARTY_LICENSES.txt.
Metadata
Release files for dyng 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 | |
|---|---|---|---|
| dyng-0.1.0.tar.gz | 788.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dyng-0.1.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 | Details |
Total release size: 2.0 MB
Release files / dyng-0.1.0.tar.gz
| Download URL | dyng-0.1.0.tar.gz |
|---|---|
| Size | 788.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5196f1fca83c9fd93d486bcef0e1e86cd58e5870e87d3d70309e90763107dbae
|
|
BLAKE2b-256 checksum How to use checksums |
65916c606af6cb6759be12a3bcd3050210b6739707adba46076b011613498344
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / dyng-0.1.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | dyng-0.1.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d809ac905b05b455fa9737293e69dbe7db1f91b4ccc92392d327fd042d5e3698
|
|
BLAKE2b-256 checksum How to use checksums |
ce84fc7d32c7f419db12e2545b765f5d8eecc0f215ffbf2ab4a267dcece3b059
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency log