Graph Constructor and Destructor
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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
Parent topic: Graph