write.dl | R Documentation |
Writes a graph stack to an output file in DL format.
write.dl(x, file, vertex.lab = NULL, matrix.lab = NULL)
x |
a graph or graph stack, of common order. |
file |
a string containing the filename to which the data should be written. |
vertex.lab |
an optional vector of vertex labels. |
matrix.lab |
an optional vector of matrix labels. |
DL format is used by a number of software packages (including UCINET and Pajek) to store network data. write.dl
saves one or more (possibly valued) graphs in DL edgelist format, along with vertex and graph labels (if desired). These files can, in turn, be used to import data into other software packages.
None.
Carter T. Butts buttsc@uci.edu
write.nos
## Not run:
#Generate a random graph stack
g<-rgraph(5,10)
#This would save the graphs in DL format
write.dl(g,file="testfile.dl")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.