Writes a caugi graph to a file in the native caugi JSON format. This format is designed for reproducibility, caching, and sharing caugi graphs across R sessions.
Details
The caugi format is a versioned JSON schema that captures:
Graph structure (nodes and edges with their types)
Graph class (DAG, PDAG, ADMG, UG, etc.)
Optional metadata (comments and tags)
Edge types are encoded using their DSL operators (e.g., "-->", "<->", "--").
For a complete guide to the format, see vignette("serialization", package = "caugi").
The formal JSON Schema is available at:
https://caugi.org/schemas/caugi-v1.schema.json
See also
Other export:
caugi_deserialize(),
caugi_dot(),
caugi_export(),
caugi_graphml(),
caugi_mermaid(),
caugi_serialize(),
export-classes,
format-caugi,
format-dot,
format-graphml,
format-mermaid,
knit_print.caugi_export,
read_caugi(),
read_graphml(),
to_dot(),
to_graphml(),
to_mermaid(),
write_dot(),
write_graphml(),
write_mermaid()