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 | |
|---|---|---|---|
| networkx_mojo-0.1.0.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| networkx_mojo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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}
|