add_data_edge
Function Usage
Add 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 destination port. |
Returns
None
Restrictions
- Throws TypeError if the parameter type is incorrect.
- If the add operation fails, RuntimeError is thrown.
Parent topic: Graph