RemoveEdge
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <graph/graph.h>
- Library file: libgraph.so
Function Usage
Removes a specified edge from a graph.
Prototype
1 | graphStatus RemoveEdge(GNode &src_node, const int32_t src_port_index, GNode &dst_node, const int32_t dst_port_index) |
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): success. Other values: failure. |
Constraints
None
Parent topic: Graph