代码拉取完成,页面将自动刷新
{smcl}
{* *! version 1.0.1 15sept2014 author: Thomas Grund}{...}
{marker topic}
{helpb nw_topical##programming:[NW-2.9] Programming}
{title:Title}
{p2colset 9 18 22 2}{...}
{p2col :_nwnodeid {hline 2} Returns the nodeid of a node given its node label}
{p2colreset}{...}
{title:Syntax}
{p 8 17 2}
{cmdab: _nwnodeid}
[{it:{help netname}}],
{opt nodelab}({help nodelab})
[{opt detail}]
{synoptset 20 tabbed}{...}
{synopthdr}
{synoptline}
{synopt:{opt nodelab}({help nodelab})}nodelab of network node i{p_end}
{synopt:{opt detail}}displays the {help nodeid} and {help nodelab} of node i{p_end}
{synoptline}
{p2colreset}{...}
{title:Description}
{pstd}
Returns the {help nodeid} of a node given its node label specified in {it:nodelab}. Results are stored
in the return vector. When no node with the specified label is found in network {it:netname} and error is thrown. This command is mostly used for programming with networks.
{title:Stored results}
Scalars
{bf:r(nodeid)} nodeid of node
Macros:
{bf:r(netname)} name of the networks
{bf:r(nodelab)} node label of the node
{title:Examples}
{cmd:. webnwuse florentine}
{cmd:. _nwnodeid flomarriage, nodelab(medici)}
{txt}Network: {res}flomarriage
{hline 15}
{txt} Nodeid: {res}9
{txt} Nodelab: {res}medici
{com}. return list
{txt}scalars:
r(nodeid) = {res}9
{txt}macros:
r(netname) : "{res}flomarriage{txt}"
r(nodelab) : "{res}medici{txt}"
{title:See also}
{help _nwnodelab}, {help nodeid}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。