lynx.Diagram.save

Diagram.save(filename: str | Path) None[source]

Save diagram to JSON file.

Parameters:

filename – Path to save file

Raises:

IOError – If file cannot be written