ergmx.degree#

ergmx.degree(d, by=None, homophily=False, levels=None)[source]#

Number of vertices with degree exactly d, for one or more d (undirected networks). With by, one set of counts per value of that attribute (of levels); with homophily=TRUE, degrees count only the ties between vertices with the same value.