Learn R Programming

influential (version 1.1.2)

neighborhood.connectivity: Neighborhood connectivity

Description

This function calculates the neighborhood connectivity of input vertices and works with both directed and undirected networks.

Usage

neighborhood.connectivity(graph, vertices = V(graph), mode = "all")

Arguments

graph

A graph (network) of the igraph class.

vertices

A vector of desired vertices, which could be obtained by the V function.

mode

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".

Value

A vector including the neighborhood connectivity score of each vertex inputted.

See Also

Other centrality functions: betweenness(), clusterRank(), collective.influence(), degree(), h_index(), lh_index()

Examples

Run this code
# NOT RUN {
MyData <- coexpression.data
My_graph <- graph_from_data_frame(MyData)
GraphVertices <- V(My_graph)
neighrhood.co <- neighborhood.connectivity(graph = My_graph,
                                           vertices = GraphVertices,
                                           mode = "all")
# }

Run the code above in your browser using DataLab