constraint: Burt's Constraint Index.

View source: R/graph_metrics.R

constraintR Documentation

Burt's Constraint Index.

Description

The igraph package provides an implementation of Constraint; this is an alternate implementation.

Usage

constraint(g, v = igraph::V(g))

Arguments

g

The igraph object to analyze.

v

vertices over which to compute constraint (default to all)

Value

A numeric vector with the constraint score for each vertex in v

Examples

ig.ex <- igraph::erdos.renyi.game(100, p.or.m=0.3) # generate an undirected 'igraph' object
constraint(ig.ex) # constraint scores for each node in the graph


influenceR documentation built on May 31, 2023, 5:47 p.m.