View source: R/graph.utility.R
write.graph | R Documentation |
Read an object of class graphNEL
and write the graph as sequence of rows on a plain text file.
write.graph(g, file = "graph.txt.gz")
g |
a graph of class |
file |
name of the file to be written. The extension of the file can be plain (".txt") or compressed (".gz"). |
A plain text file representing the graph. Each row corresponds to an edge represented through a pair of vertexes separated by blank.
data(graph);
file <- tempfile();
write.graph(g, file=file);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.