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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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