1 Star 1 Fork 7

连享会/nwcommands

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
_nwnodeid.sthlp 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
ThomasGrund 提交于 2015-09-18 19:13 . v1.5.1
{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}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/arlionn/nwcommands.git
git@gitee.com:arlionn/nwcommands.git
arlionn
nwcommands
nwcommands
master

搜索帮助