RemoveEdge
Description
Removes a specified edge from a graph.
Prototype
graphStatus RemoveEdge(GNode &src_node, const int32_t src_port_index, GNode &dst_node, const int32_t dst_port_index);
Restrictions
None
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
src_node |
Input |
Source node of the edge. |
src_port_index |
Input |
Output port index of the source node. The value –1 indicates a control edge. |
dst_node |
Input |
Destination node of the edge. |
dst_port_index |
Input |
Input port index of the destination node. The value –1 indicates a control edge. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
graphStatus |
GRAPH_SUCCESS(0) on success; else, failure. |
Parent topic: Class Graph