1 Star 1 Fork 7

连享会/nwcommands

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
_nwnodelab.sthlp 1.47 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 19 22 2}{...}
{p2col :_nwnodelab {hline 2} Returns the nodelab of a node given its nodeid}
{p2colreset}{...}
{title:Syntax}
{p 8 17 2}
{cmdab: _nwnodelab}
[{it:{help netname}}],
{opth nodeid(int)}
[{opt detail}]
{synoptset 20 tabbed}{...}
{synopthdr}
{synoptline}
{synopt:{opth nodeid(nodeid)}}nodeid 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:nodelab} of a node given its {help nodeid}. Results are also stored
in the return vector. When no node with the specified id 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:. _nwnodelab flomarriage, nodeid(9)}
{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 _nwnodeid}, {help nodeid:nodelab}, {help nodeid}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/arlionn/nwcommands.git
git@gitee.com:arlionn/nwcommands.git
arlionn
nwcommands
nwcommands
master

搜索帮助