add_data_edge

Applicable Products

All processors

Function Usage

Adds a data edge.

Prototype

1
add_data_edge(src_node: Node, src_port_index: int, dst_node: Node, dst_port_index: int) -> None

Parameters

Parameter

Input/Output

Description

src_node

Input

Source node of an edge.

src_port_index

Input

Source port index.

dst_node

Input

Target node of an edge.

dst_port_index

Input

Index of the target port.

Returns

None

Restrictions

  • If the parameter type is incorrect, TypeError is thrown.
  • If the addition fails, RuntimeError is thrown.