Skip to main content

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


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)

Uploaded Source

Built Distribution

subgraph-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for subgraph-0.0.1.tar.gz
Algorithm Hash digest
SHA256 789ce46aa5dd041b12bd0a236f9cf7621f077cd3a3099e99042982055e7f5d1e
MD5 f137445263fb6933b985285d4a88764f
BLAKE2b-256 5afc5386d9a2e2ab47e62d7b106ea9f84448479b6ed6bda7f408d0f46456727f

See more details on using hashes here.

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

Hashes for subgraph-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 840f9185bca854a327dd5da59118096876688186699603c9bc9ae007e7b4af05
MD5 71ec8f5ae07dc76a4adf52d0a5374b24
BLAKE2b-256 f677d2470d3a55d60194a285b95caf068f9f63d6ad6be12607af6d0daadc7fb1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page