Hi,
I replied to David already in-depth, but maybe some of you might be interested in this as well. The reason why you might not see the node labels is because "nwload" (which is implicitly called by "nwfromedge") has an in-built check to NOT load larger networks (500+ nodes). You can explicitly ask for the node labels with:
. nwload, labelonly
This generates a new variable "_nodelab" (and some others). In the next release, I will change the in-built check to default to "nwload, labelonly" for larger networks.
Furthermore, notice there is a more elegant way to keep the original node labels for matching and sorting. In David's data there are leading blanks in the original string variable which holds the node labels. Hence, one can substring and then destring _nodelab like this. Afterwards, "nwsort" sorts the network in ascending order of the integer mylab.
. gen mylab = substr(_nodelab, 2,.)
. destring mylab, replace
. nwsort mynet, by(mylab)
Hope this helps.
Best,
Thomas