Graph Constructor and Destructor

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

Constructs and destructs an object of class Graph.

Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments and transferring the name parameter instead. By default, the constructor without parameters constructs an invalid Graph object.

1
2
3
4
explicit Graph(const std::string& name)
explicit Graph(const char *name)
Graph()
~Graph()

Parameters

Parameter

Input/Output

Description

name

Input

Graph name, which is used to construct a graph.

Returns

Graph object.

Constraints

None