CopyFrom
Description
Copies the source graph to generate the target graph. The graph name of the target graph is preferentially specified by the user. If it is not specified, the graph name of the source graph is used. The graph ID and session need to be added by the user after the source graph is copied.
Prototype
graphStatus Graph::CopyFrom(const Graph &src_graph);
Restrictions
None
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
src_graph |
Input |
Source image to be copied |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
graphStatus |
GRAPH_SUCCESS(0) on success; else, failure. |
Parent topic: Graph Construction APIs