constraint: Burt's Constraint Index.

Description Usage Arguments Value Examples

Description

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

Usage

1
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

1
2
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

Example output

  [1] 0.06499949 0.05735699 0.05292212 0.05175435 0.05269760 0.05902438
  [7] 0.05582865 0.06186571 0.05961706 0.05306269 0.06409636 0.05938474
 [13] 0.06479786 0.05581450 0.06326806 0.05197168 0.05528930 0.06019540
 [19] 0.05630879 0.05858260 0.05461195 0.05549875 0.05210648 0.07445902
 [25] 0.05234990 0.05893455 0.06305515 0.05832226 0.05659370 0.05343700
 [31] 0.05603812 0.05184630 0.05659288 0.05831631 0.04938963 0.06157742
 [37] 0.07180923 0.05985625 0.06491679 0.05155078 0.06113071 0.05776099
 [43] 0.05296568 0.05847284 0.05158507 0.04940124 0.05603517 0.05397527
 [49] 0.05602544 0.05493451 0.05553929 0.05416699 0.05096799 0.05375686
 [55] 0.05322277 0.05399257 0.04951845 0.05505891 0.05503836 0.05599381
 [61] 0.05830628 0.05423754 0.05427809 0.05438387 0.05359493 0.05235989
 [67] 0.06308271 0.05416081 0.05047679 0.05073919 0.06086467 0.05289729
 [73] 0.05173656 0.04943670 0.05218409 0.05083056 0.05386306 0.05680516
 [79] 0.05382572 0.06238161 0.05473132 0.05492157 0.05403042 0.05365140
 [85] 0.05591028 0.05855382 0.05118149 0.06419921 0.05726066 0.05602014
 [91] 0.08613712 0.05435716 0.05129494 0.05881146 0.05455312 0.05969069
 [97] 0.05353406 0.05213663 0.05768503 0.05602192

influenceR documentation built on May 2, 2019, 2:38 a.m.