No project description provided
Project description
ugraph
Extend your graphs beyond structure—add meaning with ugraph.
ugraph builds on igraph to provide a powerful way to define and work with custom node and link types in your graphs. This package is ideal for those who need more than just graph structure—it empowers you to combine graph data with rich information via Python dataclasses, and comes with built-in support for JSON storage and 3D visualizations.
Because your graphs aren't just for you
(igraph → ugraph)
Why ugraph?
Graphs often represent more than their edges and nodes—they carry data, behaviors, and relationships that need to be understood in context. ugraph bridges this gap by enabling:
- Custom node and link classes: Add type-safe attributes and behaviors to your graph elements.
- Data serialization: Easily save and load your graphs in JSON format for persistence and sharing.
- 3D visualization: Render interactive, browser-based 3D visualizations in HTML using Plotly.
With ugraph, your graphs are as understandable and maintainable as the data they represent.
Features at a Glance
- Custom Classes: Define your nodes and links as Python dataclasses, allowing for type hints, IDE autocompletion, and type checking.
- Serialization: Store and reload your networks seamlessly using JSON files.
- Interactive Visualization: Generate 3D plots of your graphs in HTML for better insights and presentation.
Disclaimer
ugraph is not intended for creating graph figures or visualizations (e.g., bar charts, scatter plots). It is a tool for working with graph data structures (nodes and links) and enhancing their usability.
Installation
Install ugraph using pip:
pip install ugraph
(if you need igraph's cairo-based plotting, use pip install ugraph[cairo])
Quick Start
ugraph works similarly to igraph, with the added flexibility of custom node and link types. You can define attributes like coordinates, IDs, or any other domain-specific data in a type-safe and Pythonic way.
Explore usage examples in the examples directory, or start with a minimal example.
Documentation
For an extended introduction and code snippets, see docs/getting_started.md.
Credits
This project builds upon the excellent igraph library. We acknowledge and thank the igraph community for their foundational work.
License
See the LICENSE file for rights and limitations (MIT).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ugraph-0.9.0.tar.gz.
File metadata
- Download URL: ugraph-0.9.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
892f983673c63d985245ea4796ce64b1db5219f423f8a88a689722c9612d370a
|
|
| MD5 |
bc1846bee35aaf275427133400235328
|
|
| BLAKE2b-256 |
60db2796bc7a6175e8a004625eeeeb28290ed82eab9cf6a63108339437b42194
|
File details
Details for the file ugraph-0.9.0-py3-none-any.whl.
File metadata
- Download URL: ugraph-0.9.0-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6c3279f9bd8b178e03fd576a7d68fcc7562cd807b970bdb30ae9a2252d31f4a
|
|
| MD5 |
597ae194a1fc4089e2b9aba5f7330049
|
|
| BLAKE2b-256 |
0deb2ef7a09ae655fc5eb1fa879920a998e599b8f8cac6cec9e95d1067ab981a
|