reachqDocumentation
GitHub
10 / guide

Serialization

Persist graph structures with the supported I/O helpers and validate a round trip before using the data in a pipeline.

Edit this pageUpdated with the source

Supported helpers

The reachq.io module provides dump/load for directed graphs and weighted variants for weighted graphs. Optional NetworkX and Arrow integrations are separate modules.

from reachq.io import dump, load

dump(graph, "graph.json")
restored = load("graph.json")
assert restored.vertices() == graph.vertices()

Keep the package version and graph schema with persisted data. Serialization compatibility is part of the pre-1.0 project surface only to the extent covered by the round-trip tests.