This function calculates the neighborhood connectivity of input vertices and works with both directed and undirected networks.
neighborhood.connectivity( graph, vertices = V(graph), mode = "all", verbose = FALSE )
A graph (network) of the igraph class.
A vector of desired vertices, which could be obtained by the V function.
The mode of neighborhood connectivity depending on the directedness of the graph. If the graph is undirected, the mode "all" should be specified. Otherwise, for the calculation of neighborhood connectivity based on incoming connections select "in" and for the outgoing connections select "out". Also, if all of the connections are desired, specify the "all" mode. Default mode is set to "all".
Logical; whether the accomplishment of different stages of the algorithm should be printed (default is FALSE).
A vector including the neighborhood connectivity score of each vertex inputted.