1 Star 1 Fork 7

连享会/nwcommands

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nwtriads.sthlp 2.91 KB
一键复制 编辑 原始数据 按行查看 历史
ThomasGrund 提交于 2015-02-20 12:38 . v1.1.7
{smcl}
{* *! version 1.0.0 3sept2014}{...}
{marker topic}
{helpb nw_topical##information:[NW-2.4] Information}
{title:Title}
{p2colset 5 18 22 2}{...}
{p2col :nwtriads {hline 2}}Triad census of the network{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 17 2}
{cmdab: nwtriads}
[{help netname}]
{title:Description}
{pstd}
Returns the triad census of the network (or a list of networks). This is a way to characertize a network based on its triads.
{pstd}
Each unique triad (triple of nodes {it:i}, {it:j}, and {it:k})
in a directed network can be one of the following:
003 = i,j,k, empty triad.
012 = i->j, k, triad with a single directed edge.
102 = i<->j, k, triad with a reciprocated connection between two vertices.
021D = i<-j->k, triadic out-star.
021U = i->j<-k triadic in-star.
021C = i->j->k, directed line.
111D = i<->j<-k
111U = i<->j->k.
030T = i->j<-k, i->k.
030C = i<-j<-k, i->k.
201 = i<->j<->k.
120D = i<-j->k, i<->k.
120U = i->j<-k, i<->k.
120C = i->j->k, i<->k.
210 = i->j<->k, i<->k.
300 = i<->j<->k, i<->k, complete triad.
{pstd}
This is the so called MAN notation. As in {help nwdyads} it characterized a triad
by the number of 1) mutual dyads, 2) asymmetric dyads and 3) null dyads. For example,
MAN = 102 means that there is one mutual dyad and two null dyads.
{title:Examples}
{cmd:. webnwuse glasgow}
{com}. nwtriads glasgow3
{res}
{txt} Triad census: {res} glasgow3{txt}
{txt}{ralign 10:003}{col 12}{c |}{ralign 10:012}{col 24}{c |}{ralign 10:021D}{col 36}{c |}{ralign 10:021U}{col 48}{c |}{ralign 10:021C}{col 60}{c |}{ralign 10:030T}{col 72}{c |}{ralign 10:030C}{col 84}{c |}
{hline 11}{c +}{hline 11}{c +}{hline 11}{c +}{hline 11}{c +}{hline 11}{c +}{hline 11}{c +}{hline 11}{c +}
{res}{ralign 10:16086}{col 12}{c |}{ralign 10:1401}{col 24}{c |}{ralign 10:4}{col 36}{c |}{ralign 10:8}{col 48}{c |}{ralign 10:7}{col 60}{c |}{ralign 10:1}{col 72}{c |}{ralign 10:0}{col 84}{c |}
{txt}{ralign 10:120D}{col 12}{c |}{ralign 10:120U}{col 24}{c |}{ralign 10:120C}{col 36}{c |}{ralign 10:111D}{col 48}{c |}{ralign 10:111U}{col 60}{c |}{ralign 10:201}{col 72}{c |}{ralign 10:300}{col 84}{c |}
{hline 11}{c +}{hline 11}{c +}{hline 11}{c +}{hline 11}{c +}{hline 11}{c +}{hline 11}{c +}{hline 11}{c +}
{res}{ralign 10:4}{col 12}{c |}{ralign 10:1}{col 24}{c |}{ralign 10:3}{col 36}{c |}{ralign 10:28}{col 48}{c |}{ralign 10:33}{col 60}{c |}{ralign 10:26}{col 72}{c |}{ralign 10:12}{col 84}{c |}
{pstd}
{txt}This example shows, e.g. that in the {it:glasgow3} network, there are 12 triads where all nodes {it:i}, {it:j} and {it:k} are directely connected with each other.
{title:Stores results}
Scalars:
{bf:r(_003)} empty triad
{bf:r(_012)} triad with one asymmetric dyad and two null dyads.
...
{bf:r(_300)} complete triad
Macros:
{bf:r(name)} name of the network
{title:See also}
{help nwdyads}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/arlionn/nwcommands.git
git@gitee.com:arlionn/nwcommands.git
arlionn
nwcommands
nwcommands
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385