ergmx.nodeofactordistinct#

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

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