View source: R/data-access-io-prepare.R
| export_network | R Documentation |
GraphML and GML are recommended when edge weights or other attributes must be retained. Simpler edge-list formats may discard attributes.
export_network(
network,
path,
format = c("graphml", "gml", "ncol", "lgl", "pajek", "edgelist"),
case_sensitive = TRUE,
...
)
network |
An igraph, legacy NEArender, or indexed sparse NEArender network graph. |
path |
Output graph file. |
format |
A format passed to the igraph writer. |
case_sensitive |
Preserve identifier case during conversion. When this argument is omitted for a normalized object, its recorded case policy is retained. |
... |
Additional arguments passed to |
path, invisibly.
read_network(), import_network(), convert_network()
graph <- import_network(data.frame(from = "A", to = "B"),
species = NULL, input_id_format = "custom", verbose = FALSE)
path <- tempfile(fileext = ".graphml")
export_network(graph, path)
file.exists(path)
unlink(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.