remove_edge

Description

Removes an edge.

Prototype

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

Parameter Description

Parameter

Input/Output

Description

src_node

Input

Source node of an edge.

src_port_index

Input

Source port index, which should be set to -1 when the control edge is removed.

dst_node

Input

Target node of an edge.

dst_port_index

Input

Target port index, which should be set to -1 when the control edge is removed.

Returns

None

Restrictions

  • Throws TypeError if the parameter type is incorrect.
  • If the operation fails, RuntimeError is thrown.