nwds

List the networks in memory (like ds)

Syntax

nwds
[netlist]
[,
alpha
not
ds_options]
   
alpha List network names in alphabetical order (the default is creation order)
not Invert the selection - list every other loaded network instead of the ones named in netlist
ds_options Any other option is forwarded to Stata’s own ds (e.g. varwidth, which controls the display’s own column width)

Description

nwds lists the networks currently loaded in memory, reusing Stata’s own ds command for the display (network names are shown the way ds shows variable names). With no netlist, every loaded network is listed. r(netlist) always returns the exact list of network names shown.

Examples

. nwwebuse florentine, nwclear
. nwds
. nwds, alpha

Supported network types

Not applicable - a pure network-listing utility (in the style of Stata’s own ds); does not read or depend on any network’s own content, directed/valued/two-mode status, or tie values.

Stored results

Macros

  • r(netlist) the exact list of network names shown

See also


nwcommands version 3.17.6, 9 November 2026 (check your installed version)


Back to top

nwcommands is free software under the GNU General Public License, version 3, as are the model packages nwsaom, nwergm, nwdynam and nwrem. Citing and licenses · Get help · GitHub. Issues with the core go to the nwcommands repository; issues with a model package go to that package's own repository.

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