Skip to main content

scigraphs-engine

Graph visualization as a plain Python package. Coordinates, an edge list and whatever attributes they carry go in; geometry or pixels come out, with 26 filter channels, structural sparsification, edge-style tessellation and hierarchical bundling in between.

from scigraphs_engine import Graph

g = Graph.from_arrays(coords, edges)
g = g.filter(core__gte=0.5).simplify(backbone="disparity", alpha=0.05)
g.style(edges="bundled").render(size=(1920, 1080)).save("out.png")

Nothing in this package imports bpy, gpu, bmesh or mathutils. The compute half needs only numpy, and Graph.geometry() runs with no graphics library installed at all, returning MeshSpecs that name their shader as a string, so any renderer can draw them. The GPU half is an optional extra.

Install

pip install scigraphs-engine                  # numpy only
pip install "scigraphs-engine[igraph]"        # coreness, PageRank, betweenness, bridges
pip install "scigraphs-engine[scipy]"         # components, hop distance, crowding
pip install "scigraphs-engine[wgpu]"          # render() to pixels
pip install "scigraphs-engine[all]"           # everything

Requires Python 3.10 or newer. A missing extra makes individual channels unavailable rather than breaking anything: available_channels() returns all 26 with a reason for each one that cannot run.

Documentation

https://github.com/SciBlend/SciGraphs/tree/main/docs

python engine/scigraphs_engine/tests/run.py          # -v for full output

License

MIT, see LICENSE. The SciGraphs Blender add-on is GPLv3 and is one caller of this package, not its owner. It reaches the package through a shim that prefers an installed scigraphs_engine over any copy shipped alongside it.

Download files

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

Source Distribution

scigraphs_engine-0.2.1.tar.gz (118.3 kB view details)

Uploaded Source

Built Distribution

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

scigraphs_engine-0.2.1-py3-none-any.whl (155.2 kB view details)

Uploaded Python 3

File details

Details for the file scigraphs_engine-0.2.1.tar.gz.

File metadata

  • Download URL: scigraphs_engine-0.2.1.tar.gz
  • Upload date:
  • Size: 118.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for scigraphs_engine-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a2390896687afbcae5fe649b95ba7fe9a5e3ca5bd1f186d8af2921f60f3584e6
MD5 5323866cc512b3e09ada93def227a136
BLAKE2b-256 8eed42475e8d33ae24c74049f127cf36dcb3d29656a36b23d7da586f450bd6c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for scigraphs_engine-0.2.1.tar.gz:

Publisher: release-wheels.yml on SciBlend/SciGraphs

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

File metadata

File hashes

Hashes for scigraphs_engine-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc39a2de75f84518d74e0579b4c24e22b6a9e03b17a7fa764f41307925ca8983
MD5 78d5eae930238345f2e05a2da0e9722e
BLAKE2b-256 dd5fa575ab6290f1586d19f9e6ecf3949347a61c414a88eb429e5028a02c2c55

See more details on using hashes here.

Provenance

The following attestation bundles were made for scigraphs_engine-0.2.1-py3-none-any.whl:

Publisher: release-wheels.yml on SciBlend/SciGraphs

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

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page