AddDataEdge

Applicability

Product

Supported or Not

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Header File/Library File

  • Header file: #include <graph/graph.h>
  • Library file: libgraph.so

Function Usage

Adds a data edge.

Prototype

1
graphStatus AddDataEdge(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.

dst_node

Input

Destination node of the edge.

dst_port_index

Input

Input port index of the destination node.

Returns

Parameter

Type

Description

-

graphStatus

GRAPH_SUCCESS(0): success.

Other values: failure.

Constraints

None