Skip to contents

Exports a caugi graph to a GraphML file.

Usage

write_graphml(x, path)

Arguments

x

A caugi object.

path

File path for the output GraphML file.

Value

Invisibly returns NULL. Called for side effects.

Examples

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)