node_constraint: Constraint for one- and two-mode networks
Description
This function measures constraint for both one-mode and two-mode networks.
For one-mode networks, the function wraps the implementation of Ron Burt's
measure in {igraph}.
For two-mode networks, the function employs the extension outlined
in Hollway et al. (2020).
The vertices for which the constraint will be calculated.
Defaults to all vertices.
weights
The weights of the edges.
If this is NULL and there is a weight edge attribute this is used.
If there is no such edge attribute all edges will have the same weight.
Value
A named vector (one-mode) or a list of two named vectors ($nodes1, $nodes2).