constraint
calculates Burt's constraint for each
vertex.constraint(graph, nodes = V(graph), weights = NULL)
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.g <- sample_gnp(20, 5/20)
constraint(g)
Run the code above in your browser using DataLab