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.5.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.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (364.2 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ ARM64

networkxr-0.1.5-cp314-cp314-win_amd64.whl (205.9 kB view details)

Uploaded CPython 3.14Windows x86-64

networkxr-0.1.5-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.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (365.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

networkxr-0.1.5-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (644.9 kB view details)

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

networkxr-0.1.5-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (365.2 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

networkxr-0.1.5-cp313-cp313-win_amd64.whl (205.7 kB view details)

Uploaded CPython 3.13Windows x86-64

networkxr-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (375.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

networkxr-0.1.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (365.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

networkxr-0.1.5-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (644.5 kB view details)

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

networkxr-0.1.5-cp312-cp312-win_amd64.whl (205.6 kB view details)

Uploaded CPython 3.12Windows x86-64

networkxr-0.1.5-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.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (365.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

networkxr-0.1.5-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (644.0 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.5.tar.gz.

File metadata

  • Download URL: networkxr-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 7172c0096468a10a39d41dc8c0e91a06d57bbd72d808de49fcca289f0224f17f
MD5 25ea3329ccd90eefdf998f46910b7210
BLAKE2b-256 1375b06cdedfa4e6ce08f524ccba5c99b465a462e2cfa14a30ce3c681098694f

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5.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.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 500c676468c377502c5165fd5b555099d707171c5f4ba3007aa227abd5276264
MD5 af5bbe42492b65525dbb19197aee40c3
BLAKE2b-256 3199ea29079c0b0c3569e25adafc873311ef22b5afbb4d4a37ae4ee3780b01ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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.5-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: networkxr-0.1.5-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 205.9 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.5-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 be0dfead3a9d33aeddcb0058a17eca66459b535107738ee186e4795f7cf5e3b3
MD5 22aa644f90e9bba91e949b2abbcced38
BLAKE2b-256 0203471c2ce3873d4162c7baf82d7250210e8576d78750c5cdc3cc4b5cb5ac07

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d355e684ee1d653a1761a6d073050e0e5276b33de03ab5f1819615775aa00f40
MD5 cac8d9e61450d5f3c6e67a6ef09e2335
BLAKE2b-256 b7f8fa798ac688a9c16690e47c19bbad495913683484a85a8397a7ae7599cdbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5748c74ecdc8e71e63699e234f7314aaec5707db93c534d8bc74f6e6645b346e
MD5 196e6b6628fe3261c119e4379df1cfcb
BLAKE2b-256 068cdf10b7fcf777626a3332d3a2d9543f7c8ee5085ad37fa63dfe003c9a7ac6

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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.5-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.5-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 74e3ed21018a9ec0852fdd54a6e79be670a71d0cb4c20c89952614da5ce45d5e
MD5 8dddf345bf3c823c5a6712e633d289d1
BLAKE2b-256 8d879591fc53e47db13e430b0e4e9a8414d17843b15dcebbfb6b2478eead9d47

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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.5-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.5-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 dceb8e32ee81172a1d3f81d004a78e4a7458b6036977965dc6338de34ec42ddc
MD5 acab4ed367f486958246a1217ec2d627
BLAKE2b-256 8555a212b96f7fe90462b1a713836046c8cf21801460e4d4a6eecfcf698f5801

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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.5-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: networkxr-0.1.5-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 205.7 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.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b58c6dc87fca8bf9b4f55ed981e12d77f5cbe330f5ba2c2edb70c2758253075b
MD5 245cc8f8e05ca8bcf69d34e9237f03d1
BLAKE2b-256 3502f65ba6614827aa19d1d9e8209a4a8cee0d3fcfa9fd336ad53e2fab7aa77b

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e03abe33f8779562b9b74b8f9b251fed346948c371d52548dffc5cc8173adb98
MD5 6b406dd4aba4830726786bc9df59558d
BLAKE2b-256 31dca0273af0fa03cf44a0328e560b73f361558bce2603182729fa7c3efb6a5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ca8c1ffc061eead220b3531a6750efbac1bf12ec04cc38366f99a398051bc89c
MD5 6a98486664261e8d49a7890feed2a1f3
BLAKE2b-256 fa0a834f3ee43971bd3e21b8b72fb02085be87adb85a912157bbf65597af432e

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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.5-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.5-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 8f48bbf8680f0437ad9956d733f46e8511ae47eacb40fc1386ea5b848f5f878b
MD5 83ef485d54043276a80cf81a24ed791e
BLAKE2b-256 604d7e5c9bf0bbf1e99cc67bcb807663c709af8719ad00d231568685b972b418

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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.5-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: networkxr-0.1.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 205.6 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.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ec43b99ca87fd175548a19a50420b53325b117fc0e0a5d88bcae7afe556528b3
MD5 6e21b4a433f3e02b2a8cc6396ce16407
BLAKE2b-256 4c3f03fd02c354daa720f577e608101448044c5a17f48903d75149b86ebe2d96

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 70146734a65a238ee2175cca2f359a2a7ee5c76f7f6d202925f84c6ac14cdb3e
MD5 36aeb468eb2d6c8420917cfa51696170
BLAKE2b-256 34020352ac92ccaa8485125cbff12184698f13a04c5a48ae874a21f7b59f1054

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for networkxr-0.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5be9307d3070b1cfabb17d6fdfb17a21b53c27decb87c0bc19fb0b12470f2330
MD5 64b6ab3dc7580304e5bd7cd3bf79b63e
BLAKE2b-256 c79eec1e92da014552d71259e03080a0bed6c0f20a79e629747bda6f8d7c7341

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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.5-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.5-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 5d8046e19cc580df15e6aea15b5ea94b7a5e9d172a1a1e7c6f460179e7cd18fa
MD5 b990001fa4ac68f5bf4af53b7289c01d
BLAKE2b-256 0d0eefeda835ae9e66ee9526e62f0d3c4b09bf7573acfdfbcabbd12a519ce64b

See more details on using hashes here.

Provenance

The following attestation bundles were made for networkxr-0.1.5-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