bottleneck {centiserve} | R Documentation |
BottleNeck Centrality for vertex v defined as:
BN(v) = sum(P(s)(v), s in v)
Let T(s) be a shortest path tree rooted at node s. P(s)(v) = 1 if more than |V(T(s))|/4 paths from node s to other nodes in T(s) meet at the vertex v, otherwise P(s)(v) = 0.
bottleneck(graph, vids = V(graph), mode = c("all", "out", "in"))
graph |
The input graph as igraph object |
vids |
Vertex sequence, the vertices for which the centrality values are returned. Default is all vertices. |
mode |
Character constant, gives whether the shortest paths to or from the given vertices should be calculated for directed graphs. If out then the shortest paths from the vertex, if in then to it will be considered. If all, the default, then the corresponding undirected graph will be used, ie. not directed paths are searched. This argument is ignored for undirected graphs. |
For each node v in the graph, construct a tree T(v) of shortest paths from that node to all other nodes in the graph. For a node v, n(v) is the number of nodes that are directly or indirectly connected to node v (i.e. the tree T(v) contains n(v) nodes). So extract all nodes w on the above defined tree T(v) of shortest paths from node v, such that more than n(v)/4 paths from v to other nodes in the tree meet at node w. Nodes w extracted in this way represent 'bottle necks' of the shortest path tree T(v) rooted at node v, since at least n(v)/4 paths of the n(v)-node tree T(v) 'meet' at w.
More detail at BottleNeck
A numeric vector contaning the centrality scores for the selected vertices.
Mahdi Jalili m_jalili@farabi.tums.ac.ir
Przulj, N., Dennis A. Wigle, and Igor Jurisica. "Functional topology in a network of protein interactions." Bioinformatics 20.3 (2004): 340-348.
g <- graph(c(1,2,2,3,3,4,4,2)) bottleneck(g)