nwexport

Export network as Pajek or Ucinet file

Syntax

nwexport 
[netname],
type(exp_type)
[, fname(filename)
replace]
   
fname(filename) filename of the exported network: default = netname
replace overwrite exported file

Description

Exports a network to either 1) Pajek .NET or 2) Ucinet .DL file format. Only exports one network and no node level attributes. By default, the new network file is saved in the working directory. When no fname is specified, the program calls the new file netname.dl (Ucinet) or netname.net (Pajek).

Examples

This example loads the Florentine marriage data and exports to both .DL and .NET format.

. nwwebuse florentine, nwclear
. nwexport flomarriage, type(ucinet)
. nwexport flobusiness, type(pajek)

Supported network types

Binary: yes. Directed: yes. Weighted: yes. Signed: not checked. Two-mode: not checked - exports the network to Pajek/UCINET format largely as stored; consult the target format’s own documentation for what it can represent.

See also


Back to top

nwcommands is free to install and use, including for commercial research. See the GitHub repository for source, license, and issue tracking.

This site uses Just the Docs, a documentation theme for Jekyll.