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.2.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.2-py3-none-any.whl (39.5 kB view details)

Uploaded Python 3

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

Hashes for rustworkx_utils-0.0.2.tar.gz
Algorithm Hash digest
SHA256 545b0ac7eff8e2b76dfc5d9a09ab8e302a1438b1f900776fbef1ad30f705421f
MD5 08ceb97cb784ad144cf678feb108c3b5
BLAKE2b-256 d271437fc5da335616c3c965422bed6c2391b37f70d09d26341867f23e35f286

See more details on using hashes here.

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

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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for rustworkx_utils-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a20206f9b4c925f936b8e16cce3d54810b8662b4fdd1888faa66162f1558a86f
MD5 8027b0fa27aff9dc35d6f51867df3e20
BLAKE2b-256 6157e1507ae4dc9070b0aa13a5159be4842b3cac34062dc13eb4534c1ab8ea67

See more details on using hashes here.

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

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