MS_nodeBW {MetaboSignal}R Documentation

Get distribution of node betweeness

Description

This function calculates the betweenness of each node of the network.

Usage

MS_nodeBW(network_table, mode = "all", normalized = TRUE)

Arguments

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.

Value

A numeric vector containing the betweenness of each node of the network. The function also produces and histogram showing the distribution of node betweenness.

References

Csardi, G. & Nepusz, T. (2006). The igraph software package for complex network research. InterJournal, Complex Systems, 1695.

Examples

data(MetaboSignal_table)
MS_nodeBW(MetaboSignal_table)

[Package MetaboSignal version 1.20.0 Index]