Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rustworkx_utils-0.0.1.tar.gz (53.5 kB view details)

Uploaded Source

Built Distribution

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

rustworkx_utils-0.0.1-py3-none-any.whl (39.5 kB view details)

Uploaded Python 3

File details

Details for the file rustworkx_utils-0.0.1.tar.gz.

File metadata

  • Download URL: rustworkx_utils-0.0.1.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

Hashes for rustworkx_utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 20fdccb1adf8ee4f94987701c6725b84f48f8b7ee2e88a8aad00f8552e233207
MD5 241b4cf8d0c6f3224c5d01b4266b24b9
BLAKE2b-256 8077885c6e9905320a3a48c0163f88c929d579a8900111d37516474e874fdb15

See more details on using hashes here.

Provenance

The following attestation bundles were made for rustworkx_utils-0.0.1.tar.gz:

Publisher: publish-to-test-pypi.yml on AbdelrhmanBassiouny/rustworkx_utils

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

File details

Details for the file rustworkx_utils-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for rustworkx_utils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94dbfc9000fd2be9d4b791c66ec65e842ed514dfd0a064b1f5b823ace0d57797
MD5 273339ea250d79927edc0b76e050b341
BLAKE2b-256 0b7d0eafd0deb839ca22ed5b71e58d9c72bb27bc6673f749066666dfabc7834a

See more details on using hashes here.

Provenance

The following attestation bundles were made for rustworkx_utils-0.0.1-py3-none-any.whl:

Publisher: publish-to-test-pypi.yml on AbdelrhmanBassiouny/rustworkx_utils

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