Provides utils for for graphs constructed with rustworkx
Project description
RustworkX Utils
A repository for utils for graphs constructed with rustworkx.
Installation
pip install rustworkx_utils
Example Usage
from rustworkx_utils import RWXNode, ColorLegend
# Build a small DAG using RWXNode
root = RWXNode("Root", enclosed=True)
a = RWXNode("A", color=ColorLegend(name="A", color="red"))
b = RWXNode("B", color=ColorLegend(name="B", color="green"))
c = RWXNode("C", color=ColorLegend(name="C", color="blue"))
# Establish primary parent relationships
a.parent = root
b.parent = root
c.parent = a
# Add an additional non-primary edge for multi-parent showcase
c.add_parent(b)
# Visualize (should save a pdf called pdf_graph.pdf in CWD)
fig, ax = root.visualize(figsize=(10, 10), node_size=1500, font_size=15,
spacing_x=2.0, spacing_y=2.0,
layout='tidy', edge_style='orthogonal')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rustworkx_utils-0.0.2.tar.gz.
File metadata
- Download URL: rustworkx_utils-0.0.2.tar.gz
- Upload date:
- Size: 53.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
545b0ac7eff8e2b76dfc5d9a09ab8e302a1438b1f900776fbef1ad30f705421f
|
|
| MD5 |
08ceb97cb784ad144cf678feb108c3b5
|
|
| BLAKE2b-256 |
d271437fc5da335616c3c965422bed6c2391b37f70d09d26341867f23e35f286
|
Provenance
The following attestation bundles were made for rustworkx_utils-0.0.2.tar.gz:
Publisher:
publish-to-test-pypi.yml on AbdelrhmanBassiouny/rustworkx_utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rustworkx_utils-0.0.2.tar.gz -
Subject digest:
545b0ac7eff8e2b76dfc5d9a09ab8e302a1438b1f900776fbef1ad30f705421f - Sigstore transparency entry: 953255295
- Sigstore integration time:
-
Permalink:
AbdelrhmanBassiouny/rustworkx_utils@d6e8d91b6787a8a678e70e38474a8d5565677bfb -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/AbdelrhmanBassiouny
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@d6e8d91b6787a8a678e70e38474a8d5565677bfb -
Trigger Event:
push
-
Statement type:
File details
Details for the file rustworkx_utils-0.0.2-py3-none-any.whl.
File metadata
- Download URL: rustworkx_utils-0.0.2-py3-none-any.whl
- Upload date:
- Size: 39.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a20206f9b4c925f936b8e16cce3d54810b8662b4fdd1888faa66162f1558a86f
|
|
| MD5 |
8027b0fa27aff9dc35d6f51867df3e20
|
|
| BLAKE2b-256 |
6157e1507ae4dc9070b0aa13a5159be4842b3cac34062dc13eb4534c1ab8ea67
|
Provenance
The following attestation bundles were made for rustworkx_utils-0.0.2-py3-none-any.whl:
Publisher:
publish-to-test-pypi.yml on AbdelrhmanBassiouny/rustworkx_utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rustworkx_utils-0.0.2-py3-none-any.whl -
Subject digest:
a20206f9b4c925f936b8e16cce3d54810b8662b4fdd1888faa66162f1558a86f - Sigstore transparency entry: 953255297
- Sigstore integration time:
-
Permalink:
AbdelrhmanBassiouny/rustworkx_utils@d6e8d91b6787a8a678e70e38474a8d5565677bfb -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/AbdelrhmanBassiouny
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@d6e8d91b6787a8a678e70e38474a8d5565677bfb -
Trigger Event:
push
-
Statement type: