deserializeGraph(
bytes):Graph
Defined in: packages/graph/src/serialization.ts:204
Decode bytes written by serializeGraph, restoring the layout, the flags, the vertex count, and the edges the artifact was serialized from.
Every edge is checked before any graph is built: endpoints in range, rows in canonical order, and contents that agree with the declared flags. The checked columns then become the graph’s storage directly, without the copy a factory makes of caller input. Allocation is bounded by GRAPH_MAX_DECODE_VERTICES and by the payload’s length.
Parameters
Section titled “Parameters”Uint8Array
Returns
Section titled “Returns”Throws
Section titled “Throws”With a code from GRAPH_PARSE_ERROR_CODES when the payload is malformed, truncated,
unsupported, over budget, or internally inconsistent.
Throws
Section titled “Throws”With code MAX_CAPACITY_EXCEEDED when the runtime refuses the graph’s storage.