A subgraph library
Project description
Subgraph
Basic usage:
from subgraph.simplegraph import Subgraph, Subnode, SubgraphNode
subgraph = Subgraph()
node1 = Subnode("simple1", num_outputs=1)
node2 = Subnode("simple2", num_inputs=1)
subgraph.add_node(node1)
subgraph.add_node(node2)
subgraph.link_nodes(node1, 0, node2, 0)
json_str = subgraph.to_json()
restored_subgraph = Subgraph.from_json(json_str)
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
subgraph-0.0.1.tar.gz
(3.9 kB
view details)
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 subgraph-0.0.1.tar.gz.
File metadata
- Download URL: subgraph-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
789ce46aa5dd041b12bd0a236f9cf7621f077cd3a3099e99042982055e7f5d1e
|
|
| MD5 |
f137445263fb6933b985285d4a88764f
|
|
| BLAKE2b-256 |
5afc5386d9a2e2ab47e62d7b106ea9f84448479b6ed6bda7f408d0f46456727f
|
File details
Details for the file subgraph-0.0.1-py3-none-any.whl.
File metadata
- Download URL: subgraph-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
840f9185bca854a327dd5da59118096876688186699603c9bc9ae007e7b4af05
|
|
| MD5 |
71ec8f5ae07dc76a4adf52d0a5374b24
|
|
| BLAKE2b-256 |
f677d2470d3a55d60194a285b95caf068f9f63d6ad6be12607af6d0daadc7fb1
|