ergmx.triadcensus#

ergmx.triadcensus(levels=None)[source]#

The triad census: the number of triads of each type of Davis and Leinhardt (1972), by default all but the empty one (directed networks: types 012 to 300, or their codes 1 to 15; undirected networks: triads with 1, 2 or 3 ties). levels selects types by code (0 to 15) or name ("021D").