Skip to main content

A lightweight UniHGRF capability visualization toolkit

Project description

unihgrf-viz

unihgrf-viz is a lightweight Python library for visualizing the capability flow of the UniHGRF framework.

The current version includes a built-in TUDataset catalog sourced from the official TU Dortmund collection:

It focuses on a simple pipeline-style view of the framework, including steps such as:

  • input type recognition
  • graph structure category confirmation
  • graph constructor generation
  • learning path selection
  • training progress

Install

pip install unihgrf-viz

For local development:

pip install -e .

Quick Start

python -m unihgrf_viz datasets
python -m unihgrf_viz demo --dataset PROTEINS --delay 0.8

By default, the training stage follows a real-time schedule: one log entry is emitted every 10 seconds until the configured maximum training time is reached. If you only want a quick check during development, pass a smaller --log-interval-seconds value explicitly.

Export HTML / SVG

python -m unihgrf_viz export --dataset MUTAG --html unihgrf_demo.html --svg unihgrf_demo.svg

Python API

from unihgrf_viz import UniHGRFVisualizer, get_dataset_profile

profile = get_dataset_profile("PROTEINS")
viz = UniHGRFVisualizer.from_dataset_profile(profile)
viz.simulate(delay=0.6)

Supported Built-In Datasets

The package currently provides fixed UniHGRF routing profiles for the following TUDataset names:

  • MUTAG, PTC_MR, NCI1, NCI109, DD
  • IMDB-BINARY, IMDB-MULTI, COLLAB
  • ENZYMES, BZR, COX2, DHFR
  • FRANKENSTEIN, COIL-DEL, COIL-RAG, Letter-high
  • PROTEINS, PROTEINS_full, AIDS, REDDIT-MULTI-12K

Each dataset now owns 2-3 candidate learning routes, and one route is selected randomly on each call. You can also provide --seed to make the selection reproducible.

  • structure enhancement only
  • spectral-space collaboration only
  • semantic fusion only
  • full capability collaboration

Supported Input Types

  • molecule-graph
  • protein-graph
  • social-graph
  • attributed-graph
  • vision-graph
  • hybrid-graph

Supported Graph Types

  • discrete-structure-graph
  • large-structure-graph
  • interaction-graph
  • spectral-attribute-graph
  • semantic-heterogeneous-graph
  • heterogeneous-multi-view-graph

License

MIT

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

unihgrf_viz-0.1.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

unihgrf_viz-0.1.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file unihgrf_viz-0.1.0.tar.gz.

File metadata

  • Download URL: unihgrf_viz-0.1.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for unihgrf_viz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9cd133a37956eb5394c4c811b0e46de832d88cbceb7db59d30d8908645082442
MD5 a68a317216b7e6c9ccae40780db68d0a
BLAKE2b-256 5f8c11c50222cab6f7cfed5cf625a6bcfb0a7fbb32d6c6c2a7373dda9721c06d

See more details on using hashes here.

File details

Details for the file unihgrf_viz-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: unihgrf_viz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for unihgrf_viz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79f7fa717fae18cd5673ca8440251b95846d25c0705263d9cac1817f9bfd65ec
MD5 63211f9398b271d8b1e8f7c855c3a31f
BLAKE2b-256 c8f254f46641601af3a5fe2044c653cbfec1c93e2f34c84802ac876887c51e6f

See more details on using hashes here.

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