SaveToFile
Description
Serializes a graph to a file.
Prototype
APIs using strings will be deprecated in later versions. Use APIs supporting non-string data instead.
graphStatus SaveToFile(const std::string &file_name) const; graphStatus SaveToFile(const char_t *file_name) const;
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
file_name |
Input |
File path and file name. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
graphStatus |
GRAPH_SUCCESS(0) on success; else, failure. |
Restrictions
None
Parent topic: Graph Construction APIs