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