代码拉取完成,页面将自动刷新
{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}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。