add_subgraph

Function Usage

Adds a submap to a graph.

Prototype

1
add_subgraph(subgraph: Graph) -> None

Parameters

Parameter

Input/Output

Description

subgraph

Input

Submap object to be added.

Returns

None

Constraints

  • If the subgraph is not of the graph type, TypeError is thrown.
  • The submap is indexed by name. The submap name in the parent map must be unique.
  • If the operation fails, RuntimeError is thrown.