ergmx.constraints.Blocks#

class ergmx.constraints.Blocks(attr, levels=None, levels2=False)[source]#

Fix the dyads of some mixing types of a vertex attribute, as ergm’s blocks(): those whose toggle would change nodemix(attr, levels, levels2).

fixed(network)[source]#

n x n mask of the dyads this constraint fixes at their observed value, for constraints that can’t say it more compactly (below).