Processing math: 100%
Skip to contents

Given a graph, constraint() calculates Burt's constraint for each vertex.

Usage

constraint(graph, nodes = V(graph), weights = NULL)

Arguments

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 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 numeric vector of constraint scores

Details

Burt's constraint is higher if ego has less, or mutually stronger related (i.e. more redundant) contacts. Burt's measure of constraint, Ci, of vertex i's ego network Vi, is defined for directed and valued graphs, Ci=jVi{i}(pij+qVi{i,j}piqpqj)2 for a graph of order (i.e. number of vertices) N, where proportional tie strengths are defined as pij=aij+ajikVi{i}(aik+aki), aij are elements of A and the latter being the graph adjacency matrix. For isolated vertices, constraint is undefined.

References

Burt, R.S. (2004). Structural holes and good ideas. American Journal of Sociology 110, 349-399.

Examples


g <- sample_gnp(20, 5 / 20)
constraint(g)
#>  [1] 0.3300405 0.4968112 0.3333333 0.2526342 0.2569221 0.2456340 0.2966327
#>  [8] 0.2383629 0.2533896 0.5000000 0.3134091 0.4091840 0.4718793 0.5000000
#> [15] 0.3055581 0.2302969 0.2513974 0.2866015 0.2837931 0.2012429