
Last chance! 50% off unlimited learning
Sale ends in
This function calculates the local H-index of input vertices and works with both directed and undirected networks.
lh_index(graph, vertices = V(graph), mode = "all")
A graph (network) of the igraph class.
A vector of desired vertices, which could be obtained by the V function.
The mode of local H-index depending on the directedness of the graph. If the graph is undirected, the mode "all" should be specified. Otherwise, for the calculation of local H-index 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".
A vector including the local H-index of each vertex inputted.
Other centrality functions:
betweenness()
,
clusterRank()
,
collective.influence()
,
degree()
,
h_index()
,
neighborhood.connectivity()
# NOT RUN {
MyData <- coexpression.data
My_graph <- graph_from_data_frame(MyData)
GraphVertices <- V(My_graph)
lh.index <- lh_index(graph = My_graph, vertices = GraphVertices, mode = "all")
# }
Run the code above in your browser using DataLab