ergmx.b2factordistinct#

ergmx.b2factordistinct(attr, levels=True)[source]#

Sum over second-mode vertices of the number of distinct values of attr among their neighbours.

Bipartite networks only; b1 terms are about the first mode, b2 terms the second.