Skip to main content

Scientific graph layout utilities.

Project description

scigraphs-utils

Utilities for scientific graph layouts.

The Python import package is scigraphs_utils.

import numpy as np
from scigraphs_utils import sfdp_layout

edges = np.array([[0, 1], [1, 2], [2, 3]], dtype=np.int32)
xy = sfdp_layout(4, edges, seed=42, overlap="false", maxiter=100)

For Graphviz parameters that are not listed explicitly, pass them as keyword arguments. They are forwarded as Graphviz graph attributes:

from scigraphs_utils import graphviz_layout

xy = graphviz_layout(4, edges, engine="sfdp", start=42, K=1.2)

Development

The current MVP builds a native extension against a local Graphviz installation:

python -m pip install -e ".[test]"
pytest

To build against a private Graphviz prefix, run:

tools/build_graphviz.sh
GRAPHVIZ_PREFIX="$PWD/build/vendor/graphviz-install" python -m pip install -e ".[test]"

Wheels

The project is configured for cibuildwheel CPython 3.13 builds. The wheel build hook compiles a pinned Graphviz release into a private prefix and builds the native extension against that prefix. On Linux, auditwheel then bundles the required shared libraries into the wheel so users do not need Graphviz installed at runtime.

python -m pip install ".[wheel]"
python -m cibuildwheel --output-dir wheelhouse

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

scigraphs_utils-0.1.1-cp313-cp313-win_amd64.whl (1.0 MB view details)

Uploaded CPython 3.13Windows x86-64

scigraphs_utils-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

scigraphs_utils-0.1.1-cp313-cp313-macosx_11_0_arm64.whl (898.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

Details for the file scigraphs_utils-0.1.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for scigraphs_utils-0.1.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 67f9903d9bd269e383d8674ad93ce1d2b7926d2d1cab4c2a70db04667d4f58ce
MD5 9d488eba66deeb931f4f5f7ce7a19da4
BLAKE2b-256 09cbfeac8b48acc3d96f7fca909f86d63451cb597d37bf9158b94b5f8b00f29c

See more details on using hashes here.

Provenance

The following attestation bundles were made for scigraphs_utils-0.1.1-cp313-cp313-win_amd64.whl:

Publisher: publish.yml on josemarinfarina/scigraphs-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 scigraphs_utils-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for scigraphs_utils-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 087e246ad2365d1e5b8ef6bf602f26a8284641fb9219985b9660a04357a4368e
MD5 e5625fd2f12fc3898d83748f50735d51
BLAKE2b-256 44ec4e1c2cbcd2369a79ee8b91246c314eb8275b00878e5e6a5e90c8d7687d98

See more details on using hashes here.

Provenance

The following attestation bundles were made for scigraphs_utils-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on josemarinfarina/scigraphs-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 scigraphs_utils-0.1.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for scigraphs_utils-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fa22d975fa64ed84b1f99e7923bc330163f9d88bc283e4b51cd5905a285516a
MD5 286602a0eb20db519e33f5a04c5e1ddf
BLAKE2b-256 c9b22de132e551b04c007fbd6dca4b403d9533ea9e6a87791c351ce665c341a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for scigraphs_utils-0.1.1-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish.yml on josemarinfarina/scigraphs-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