libtcspc.Subgraph¶
- final class libtcspc.Subgraph(graph, *, input_map={}, output_map={})[source]¶
Bases:
NodeNode that wraps a nested Graph.
- Parameters:
graph (Graph) – The subgraph to wrap.
input_map (Mapping[str, tuple[str, str]]) – Mapping from input port names of this node to (node, input_port) pairs of the graph. Any ports that are not mapped use the standard naming of node:input_port. Default: only use standard names.
output_map (Mapping[str, tuple[str, str]]) – Mapping from output port names of this node to (node, output_port) pairs of the graph. Any ports that are not mapped use the standard naming of node:output_port. Default: only use standard names.