A file is written out containing the vertex and edge data.
Arguments
net
a network object
filename
the file where the network object should be saved
Author
Skye Bender-deMoll
Details
.net is basically an edgelist format with sections for vertices, arcs and edges. Vertex attributes for 'label', coordinates named 'x','y','z', 'color' as 'ic' (inner color), 'shape' as a shape value will be written in the appropriate Pajek format. An edge attribute of 'weight' will be written as the edge value, 'width' as 'w' and 'color' as 'c'. See read.paj for reading pajek files (time info supported)
data('toy_epi_sim')
toy_epi_sim%v%'color'<-'blue'export.pajek.net(toy_epi_sim,filename='toy_epi_sim.net')
# clean up file afterwards (just for testing)file.remove('toy_epi_sim.net')