dump_to_stream

Applicable Products

All processors

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

String representation of a graph, which is of the string type

Restrictions

  • If format is not a valid dump format, TypeError is thrown.
  • If the export fails, RuntimeError is thrown.