MS_nodeBW {MetaboSignal} | R Documentation |
This function calculates the betweenness of each node of the network.
MS_nodeBW(network_table, mode = "all", normalized = TRUE)
network_table |
three-column matrix where each row represents and edge between two nodes. See function "MS_keggNetwork( )". |
mode |
character constant indicating whether a directed ("out") or undirected ("all") network will be considered. |
normalized |
logical scalar indicating whether to normalize the betweeness scores. If TRUE, normalized betweenness scores will be returned. If FALSE, raw betweenness scores will be returned. |
A numeric vector containing the betweenness of each node of the network. The function also produces and histogram showing the distribution of node betweenness.
Csardi, G. & Nepusz, T. (2006). The igraph software package for complex network research. InterJournal, Complex Systems, 1695.
data(MetaboSignal_table) MS_nodeBW(MetaboSignal_table)