Use this if you are using igraph from R
constraint {igraph} | R Documentation |
Given a graph, constraint
calculates Burt's constraint for each
vertex.
constraint(graph, nodes = V(graph), weights = NULL)
graph |
A graph object, the input graph. |
nodes |
The vertices for which the constraint will be calculated. Defaults to all vertices. |
weights |
The weights of the edges. If this is |
Burt's constraint is higher if ego has less, or mutually
stronger related (i.e. more redundant) contacts. Burt's measure of
constraint, , of vertex
's ego network
, is defined for directed and valued graphs,
for a graph of order (ie. number of vertices) , where
proportional tie strengths are defined as
are elements of
and the latter being the
graph adjacency matrix. For isolated vertices, constraint is undefined.
A numeric vector of constraint scores
Jeroen Bruggeman (https://sites.google.com/site/jebrug/jeroen-bruggeman-social-science) and Gabor Csardi csardi.gabor@gmail.com
Burt, R.S. (2004). Structural holes and good ideas. American Journal of Sociology 110, 349-399.
g <- sample_gnp(20, 5/20)
constraint(g)