Skip to main content

grapher.dump_graph()

Write graph to path using the low-peak multipart pickle format.

Usage

Source

grapher.dump_graph(
    graph,
    path,
    *,
    compress=None,
)

Parameters

graph: Any

Graph to serialize.

path: str | Path

Destination path. Parent directories are created as needed.

compress: bool | None = None
Gzip the file when True. When omitted, gzip is used if path ends with .gz.