Description Usage Arguments Value See Also Examples
Customized version of local transitivity index, adapted to intermediaries of a supply network. Original transitivity measures the probability that the adjacent vertices of a vertex are connected. This is sometimes also called the clustering coefficient. This function measures the probability that the in-neighbors (suppliers) and the out-neighbors (customers) of a vertex (an intermediary) are connected. It reveals how an intermediary can be "by-passed", "short-circuited" by parallel links, and thus useless.
1  | supplyTransitivity(g, vs = V(g))
 | 
g | 
 igraph object.  | 
vs | 
 igraph.vs; vertices sequence of which the local index will be calculated (default: all vertices).  | 
numeric vector of the same length than vertices sequence vs.
1 2 3 4 5 6 7 8 9 10 11 12 13  | ##  Supply Transitivity of in termediary reaches 1 after a transitive closure
library(igraph)
set.seed(123)
g = make_tree(5)
lay = layout_nicely(g)
plot(g, layout=lay)
supplyTransitivity(g, V(g)[2])
# Make transitive closure
m = floydAlgo(g)
m[m>1] = 1 # To adjacency matrix
g = graph_from_adjacency_matrix(m)
plot(g, layout=lay)
supplyTransitivity(g, V(g)[2])
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.