Skip to main content

import_graph_json

Kind: Function
Domain: Graph, serialization, and replay
Canonical import: from cadflow import import_graph_json

Signature

def import_graph_json(json_str: 'str') -> 'OperationGraph'

Description

Import an OperationGraph from a JSON string.

Parameters

NameTypeRequiredDefaultSource description
json_str'str'yes-JSON string to parse.

Returns

Type: 'OperationGraph'

Reconstructed OperationGraph.

Errors

The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.

Behavior and constraints

  • This operation reads external data and may reject missing, malformed, or unsupported input.
  • Serialized data is intended to remain JSON-safe and should be schema-validated when crossing trust boundaries.

Import check

from cadflow import import_graph_json

See also