ergmx.hamming#

ergmx.hamming(x=None, cov=None)[source]#

The Hamming distance to a reference network x: the number of dyads whose tie differs. x is the observed network by default, or a graph attribute holding an adjacency matrix, the matrix or a graph; cov weights the dyads.