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.0.tar.gz (117.9 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.0-py3-none-any.whl (154.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scigraphs_engine-0.2.0.tar.gz
  • Upload date:
  • Size: 117.9 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.0.tar.gz
Algorithm Hash digest
SHA256 3d34fd88380882e43346db61bf55965f81deceb04b043648b7438c5677c5f689
MD5 953ec3c86c8c2788fbeede2a08f22842
BLAKE2b-256 b0324575159e7a8ca6ec9c6bb315afa71831afc68e49638698cc3276fb5e106d

See more details on using hashes here.

Provenance

The following attestation bundles were made for scigraphs_engine-0.2.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for scigraphs_engine-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a610172e15b66710ce4ad32b9b3197ece8d123c4796e4a6320a70b0c4f04878d
MD5 fc27e82388ed0c5eb4dd9a32981ccc5a
BLAKE2b-256 1cbf8745f9fae401520a314f95c25f8c092dc944ea4c62e371e5a2a52b33baf0

See more details on using hashes here.

Provenance

The following attestation bundles were made for scigraphs_engine-0.2.0-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

0.2.1

2 files

This release

0.2.0 This release

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