ergmx.nodefactordistinct#

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

Sum over vertices of the number of distinct values of attr among their neighbours (in either direction, if directed).