element_51.storeΒΆ
Save a graph to a JSON file and read it back.
The file holds a format_version, the nodes with their positions, and the links. Reading replays every node and link through the same rules as an edit, so a file that breaks the rules is refused instead of loaded.
Functions
|
Read a graph from path and check it against node_types. |
|
Write graph to path as JSON, replacing any file there. |
Exceptions
|
A graph file that cannot be loaded. |