remove_edge
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Removes an edge.
Prototype
1 | remove_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. Set this parameter to -1 when removing a control edge. |
dst_node |
Input |
Target node of an edge. |
dst_port_index |
Input |
Target port index. Set this parameter to -1 when removing a control edge. |
Returns
None
Restrictions
- If the parameter type is incorrect, TypeError is thrown.
- If the removal fails, RuntimeError is thrown.
Parent topic: Graph