networkx-mojo
An efficient Mojo implementation of a subset of the Python NetworkX API.
Requirements
- Mojo (installed into a local
.venvviauv)
Install Mojo (via uv)
Follow the official install docs for your platform.
Nightly (recommended for development):
uv venv
. .venv/bin/activate
uv pip install mojo --index https://whl.modular.com/nightly/simple/ --prerelease allow
Stable:
uv venv
. .venv/bin/activate
uv pip install mojo --extra-index-url https://modular.gateway.scarf.sh/simple/
Run tests
.venv/bin/mojo run -I . tests/test_graph.mojo
.venv/bin/mojo run -I . tests/test_digraph.mojo
.venv/bin/mojo run -I . tests/test_algorithms.mojo
.venv/bin/mojo run -I . tests/test_attrs.mojo
.venv/bin/mojo run -I . tests/test_more_algorithms.mojo
Benchmarks
.venv/bin/mojo run -I . benches/graph_bench.mojo
Examples
Grid pathfinding + visualization:
.venv/bin/mojo run -I . examples/grid_pathfinding.mojo
If you're using uv run, make sure you invoke mojo run with -I . so Mojo can
resolve local modules (like networkx):
uv run mojo run -I . examples/grid_pathfinding.mojo
The visualization script requires the optional dependencies:
uv pip install -e '.[bench]'
Metadata
Release files for networkx-mojo 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 |
|---|---|---|---|---|
| networkx_mojo-0.1.0.tar.gz | 2.6 kB | Without provenance | Details for networkx_mojo-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| networkx_mojo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for networkx_mojo-0.1.0-py3-none-any.whl |
Total release size: 5.8 kB
Release files / networkx_mojo-0.1.0.tar.gz
| Download URL | networkx_mojo-0.1.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a9956139c32cbfcda7ce9a6385983aad463c4772aaa68e11a83d041a3f59ba9
|
|
BLAKE2b-256 checksum How to use checksums |
2209913547604fd337a4c48464ffd7bc5e8212ee3fb967c57331bbf9cc2b2805
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.04","id":"plucky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / networkx_mojo-0.1.0-py3-none-any.whl
| Download URL | networkx_mojo-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51fcf1ba4f86c844cd37dc2bf00d775858dc95617b81feaeddf708d8c74189f6
|
|
BLAKE2b-256 checksum How to use checksums |
f24b7304e6c532defebe2f71b0978d12159c729cb80649054f7fb73cb8337d41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.04","id":"plucky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for networkx-mojo 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.