dump_to_stream
Function Usage
Exports a graph to a string stream.
Prototype
1 | dump_to_stream(format: DumpFormat = DumpFormat.kReadable) -> str |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
format |
Input |
Export format. The default value is kReadable. |
Returns
Character string of the graph, which is of the string type.
Constraints
- Throws TypeError if format is not a valid DumpFormat.
- If the export fails, RuntimeError is thrown.
Parent topic: Graph