Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

write.dl

Write Output Graphs in DL Format


Description

Writes a graph stack to an output file in DL format.

Usage

write.dl(x, file, vertex.lab = NULL, matrix.lab = NULL)

Arguments

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.

Details

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.

Value

None.

Author(s)

Carter T. Butts buttsc@uci.edu

See Also

Examples

## 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)

sna

Tools for Social Network Analysis

v2.6
GPL (>= 2)
Authors
Carter T. Butts [aut, cre, cph]
Initial release
2020-10-5

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.