You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example data from nwcommands.org.nwwebuse loads the example data sets from https://nwcommands.org/examples (a copy of the data folder that the website deploy publishes), so that output such as "Contains data from https://nwcommands.org/examples/lazega.nwdta" stays short. If the website cannot be reached, nwwebuse says so and loads the same file from GitHub, which then stays the source for the session ($nwwebpath). nwwebuse set without arguments resets the source to the new default. Import examples in the help files use the short address. The data themselves do not change.
Fixed
Long messages wrap between words. Notes, warnings, error messages and the "(plot saved as ...)" notes longer than the line are now printed as paragraphs, so Stata breaks them between words instead of cutting a word at the line width (for example nwcug, plot, nwqap, plot, the nwplot layout note on signed networks, the two-mode refusal, nwuse of a plain dataset and the size guards). The wording is unchanged. A long stat() in the nwcug header continues with a hanging indent. New test test_msgwrap.
Isolates in an edge list. A row with one identifier missing (Fion "", 5 ., or the receiver-only "" Fion, . 5) in nwset ..., edgelist and nwfromedge declares the other identifier as a node without a tie from that row, the usual way to keep isolates in an edge list. Up to 3.18.0 the node was kept, but the row was also stored as a tie with a missing end: nwsummarize reported one arc too many (5 instead of 4, density .25 instead of .2, correct only after another command rebuilt the network), and with numeric identifiers nwtomata failed with r(3200). A missing numeric identifier next to a string one no longer becomes a node called .. Rows with both identifiers missing are ignored, as before. The help files of nwset and nwfromedge say how to keep isolates. New test test_edgelist_isolates.
nwimport, type(pajek) of a file without vertex lines. A Pajek file whose *Vertices n line is followed directly by *Arcs, *Edges, *Arcslist or *Edgeslist (valid Pajek, for example data/pajek_example.net) failed with r(601), file not found: the import merged a vertex dictionary that only vertex lines create. Such a file now gives n nodes labelled n1, n2, ... (as nwfromedge labels numeric ids), vertices without ties included; a two-mode file (*Vertices n n1) without vertex lines no longer fails with "option labs() required". Files with vertex lines are unchanged. Assertions added to test_nwimport.