ergmx.b1factordistinct#

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

Sum over first-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.