View source: R/graph_metrics.R
bridging | R Documentation |
Edges that reduces distances in a network are important structural bridges. Here we implement Valente and Fujimoto's metric, where a node's bridging score is the average decrease in cohesiveness if each of its edges were removed from the graph.
bridging(g)
g |
The igraph object to analyze. |
A numeric vector with the bridging score for each vertex
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2889704/
ig.ex <- igraph::erdos.renyi.game(100, p.or.m=0.3) # generate an undirected 'igraph' object
bridging(ig.ex) # bridging scores for each node in the graph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.