View source: R/format-graphml.R
| write_graphml | R Documentation |
Exports a caugi graph to a GraphML file.
write_graphml(x, path)
x |
A |
path |
File path for the output GraphML file. |
Invisibly returns NULL. Called for side effects.
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_caugi(),
write_dot(),
write_mermaid()
cg <- caugi(A %-->% B + C, class = "DAG")
tmp <- tempfile(fileext = ".graphml")
write_graphml(cg, tmp)
# Read it back
cg2 <- read_graphml(tmp)
# Clean up
unlink(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.