add_graph

Function Usage

Adds a graph to a session.

Prototype

1
add_graph(graph_id: int, add_graph: Graph, options: dict = None) -> None

Parameters

Parameter

Input/Output

Description

graph_id

Input

Graph ID.

add_graph

Input

Graph object to be added.

options

Input

Configure options.

Returns

None

Constraints

  • If graph_id is not an integer, TypeError is thrown.
  • If add_graph is not of the graph type, TypeError is thrown.
  • If options is not of the dictionary type, TypeError is thrown.
  • If the operation fails, RuntimeError is thrown.