ergmx.star2ax#

ergmx.star2ax(attr, levels=None)[source]#

Star2AX: 2-stars of an A-tie and an X-tie, the sum over A vertices of their A-degree times their X-degree. For two-level (multilevel) networks, as MPNet (Wang et al. 2013): the levels are the values of the vertex attribute attr, A and B (levels=(A, B), or the attribute’s two values, sorted); A-ties are within A, B-ties within B, X-ties between them. Undirected networks.