add_subgraph

Applicable Products

All processors

Function Usage

Adds a subgraph to a graph.

Prototype

1
add_subgraph(subgraph: Graph) -> None

Parameters

Parameter

Input/Output

Description

subgraph

Input

Subgraph object to be added.

Returns

None

Restrictions

  • If subgraph is not of the graph type, TypeError is thrown.
  • Subgraphs are indexed by name. The name of each subgraph in the parent graph must be unique.
  • If the addition fails, RuntimeError is thrown.