Skip to main content

Drop-in replacement for NetworkX (Rust-accelerated)

Project description

networkXR

[!CAUTION] 🚧 Under Heavy Construction 🚧

This project is in early development. APIs may change without notice. Not yet ready for production use.

Goal

networkXR is a Rust-backed, drop-in replacement for NetworkX — the popular Python library for graph creation, manipulation, and analysis.

By leveraging PyO3 and Rust's performance characteristics, networkXR aims to provide a fully compatible NetworkX API with significantly improved speed for compute-intensive graph operations, while remaining a seamless swap for existing Python codebases.

Why networkXR?

  • 🚀 Blazing Fast: Core graphs (Graph, DiGraph) use Rust IndexMap internally for high-performance processing.
  • 🤝 Drop-in Replaceable: Change your import networkx as nx to import networkxr as nx. That's it.
  • 🎨 Batteries Included: Comes with generators (including fake data), converters, isomorphism checks, and a rich Plotly-native visualization engine.

Installation

pip install networkxr

# With interactive plotting support (optional)
pip install networkxr[plot]

Quick Start

# Just swap the import — everything else stays the same
import networkxr as nx

G = nx.Graph()
G.add_edges_from([(1, 2), (2, 3), (3, 4), (4, 1), (1, 3)])
G.add_node(5, role="isolated")

print(G.number_of_nodes())   # 5
print(G.number_of_edges())   # 5
print(list(G.neighbors(1)))  # [2, 3, 4]

Plotting & Visualization

networkXR natively supports Plotly for interactive, publication-ready graph visualization out-of-the-box (no matplotlib required!).

import networkxr as nx

# Create a beautiful graph topology
G = nx.barbell_graph(5, 1)

# Draw it with custom styling
fig = nx.draw(
    G, 
    node_color="#6366f1", 
    edge_color="#cbd5e1", 
    title="Barbell Graph Visualization", 
    show=False
)
fig.write_html("my_graph.html")

Note: Plotting requires plotly — install with pip install networkxr[plot].

Rich Data Generation

Need a realistic graph for testing? networkXR includes Faker-powered network generation:

import networkxr as nx

# Create a realistic social network graph with user attributes
G = nx.fake_social_network(n=50, p=0.1, seed=42)

for u, data in list(G.nodes(data=True))[:2]:
    print(f"{data['name']} ({data['email']}) works at {data['company']}")

Documentation

For full API reference, examples, and cookbooks, check out our documentation website.

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

networkxr-0.1.6.tar.gz (99.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

networkxr-0.1.6-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (364.3 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ ARM64

networkxr-0.1.6-cp314-cp314-win_amd64.whl (204.1 kB view details)

Uploaded CPython 3.14Windows x86-64

networkxr-0.1.6-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (374.9 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

networkxr-0.1.6-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (365.5 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

networkxr-0.1.6-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (644.6 kB view details)

Uploaded CPython 3.14macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

networkxr-0.1.6-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (364.9 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

networkxr-0.1.6-cp313-cp313-win_amd64.whl (203.9 kB view details)

Uploaded CPython 3.13Windows x86-64

networkxr-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (375.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

networkxr-0.1.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (365.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

networkxr-0.1.6-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (644.1 kB view details)

Uploaded CPython 3.13macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

networkxr-0.1.6-cp312-cp312-win_amd64.whl (203.9 kB view details)

Uploaded CPython 3.12Windows x86-64

networkxr-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (375.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

networkxr-0.1.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (364.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

networkxr-0.1.6-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (643.7 kB view details)

Uploaded CPython 3.12macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file networkxr-0.1.6.tar.gz.

File metadata

  • Download URL: networkxr-0.1.6.tar.gz
  • Upload date:
  • Size: 99.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for networkxr-0.1.6.tar.gz
Algorithm Hash digest
SHA256 fe97a00590b3751a24863e92c9db0e517e8f4c759efa5cd124acc0295bb5488f
MD5 e047f06f82efefd8c3c42677089f22ae
BLAKE2b-256 96c0c55a690719a789b48551bb828d09e0e521fc7c12f1b499c1134f98102bce

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6.tar.gz:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.6-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 16f92b7ca27b6038050cdb1cbc1db3f5574daa55bad0de21cbf652aa0711b26c
MD5 615540f22ffa3f8fa3e0dccbca73ee4f
BLAKE2b-256 8510bf5220961e77f1b6a2c7e044f4deb77156305827fbd4911d5716f135f758

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: networkxr-0.1.6-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 204.1 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for networkxr-0.1.6-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 704b0e7363c8d9785096d65026b91a411c008f67d64eb34ef2daaa5e07790a5b
MD5 662486889fdaf4b78d24f6bca53ef37d
BLAKE2b-256 987dfe1c8d43b572ba198d0534e37b8ddc245ccb87c620842504030b2629002c

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp314-cp314-win_amd64.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.6-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 07aa96d9f881e92d26db812728d8e3332891e321d01c036f9484b253e4627e9d
MD5 1eb92574410faa9cd9334e68a4b6d90d
BLAKE2b-256 4bd5608dc39847eab8d5f7b2b0946c130ac4c04ef901fb6265d8d16ff6f29114

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.6-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1981706fa8abbcac96ba69ca30057e5de45564658789a623743c01778824209a
MD5 ca62ef0fe9ab0a32d25e39d913e22784
BLAKE2b-256 d151018680c0aeeaa42b734ee834c9b1090c269040bf5fcc6e20ddf560636ee6

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for networkxr-0.1.6-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 db7514a41ba659b4fb1b4a9d5a4c74fe638fde72be014bcf5c8568f2d543d2f1
MD5 a83789080b0532a1d3642c9ac96d0609
BLAKE2b-256 77b405bb22d648dbe4a6031cd9491758210a52a7bf1ef44dab313505c519c225

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.6-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 16225924449a20f64d6af0b419331c78b70776f97e4ff9dfca061332251ffb23
MD5 b282f9b611f264d65db94de4c5212868
BLAKE2b-256 29a86fb5f701e69fa8ebe255e0049fe592222ec3654d652cb6e12b0c56b2036b

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: networkxr-0.1.6-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 203.9 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for networkxr-0.1.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6416daf53139daea6aa2af913a9b2a63b7766832b3b68109f4a53207015a526b
MD5 a7f7b20f94447b5a6de80574c084388e
BLAKE2b-256 d65256ec4674279c5ad3e4ded2e8dea78bd2b150e4c465e37dee96e8be5ebcf1

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp313-cp313-win_amd64.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d00c68d67b56089e74e74b9b2aae5e66a45bde325de9b37bdfa788f40ed0d90c
MD5 90748d75bc6508542511d4889c4e9730
BLAKE2b-256 11b87acb9ebbb9fd32f21ede3165ca9969a971ec38c6616cf99c7952efd0c487

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 989bd8859c603dbd906f3d3275af705e661f160d6d451b493b84742da7544dc9
MD5 94eba55c13a93ac0c84065b11734daad
BLAKE2b-256 18223a418dd8c0ce3d58124fbffb4c24f7755a3b37486b6ea4e990aa67c67547

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for networkxr-0.1.6-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 627b2735311fb43f9f3621f884ace0e04478266cd9573f4bb8716dc14b5d08c7
MD5 78f399a3ea8c37a754e0fa8291c7b5d1
BLAKE2b-256 4041c4a159afa9855a0a1a6455cb61625201d833cbd11f9f30692205130918df

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: networkxr-0.1.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 203.9 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for networkxr-0.1.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 347f975c77b344ef32502321d00743799494f3f2b1211954bba112c4feb183ab
MD5 1c3ca5be068228dce8ba477d5df26648
BLAKE2b-256 4df41e4cdc80ca4a8375c9b4219c5514d2731cd0b0a91a1e5663743e9f524e4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp312-cp312-win_amd64.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 06e15717ac52069a2a6aaa045e409df9733c75e37ff3cb5808d521d2bca5cbf5
MD5 430ccbb57d73293d34e5c9bb4249bcad
BLAKE2b-256 ce183762a567f3f9d1c321d029c3eb8da398cee60e6531100e772ca5b1a4d73d

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a21ffb2c7f7e47cd7d499cf507c628356ac5fb58c90d51609e5e39ff012a1b9c
MD5 2df5f76f4ca8503c8100ad13c8527edf
BLAKE2b-256 6eb7a3f549a3dd49c7eb74ef84b42e437896abe312b5c5188a3869b8e3d9c9a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file networkxr-0.1.6-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for networkxr-0.1.6-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 044c43b7c66f1a41b6c2ecbedc9fbe02e10b51cfc8268977c926d6c3a97a0a88
MD5 c7f34ffb73ab3dc4348d375b04500237
BLAKE2b-256 bec762d511940b6cf6eebd4f71bfd1f14009fc8d6ce16b6d34ca77e3dcf30e9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.6-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: ci.yml on bmsuisse/networkxr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page