powered by
This function creates a fictional metabolomics network according to the Barabasi-Albert model.
NetworkCreateR(N, BA_power = 0.5, BA_mValue = 4, plothist = TRUE, histbreaks = 50, ...)
the number of nodes in the network (metabolites)
(igrap parameter) The power of the preferential attachment.
(igrap parameter) The number of edges to add in each time step
Whether to plot a histogram of the network's connectivity distribution
The number of breaks in the histogram
Optional additional arguments to be passed along to the network generator function sample_pa.
sample_pa
A matrix with the network structure
# NOT RUN { Network <- NetworkCreateR(N = 50, BA_power = 0.5, BA_mValue = 4) image(Network) # }
Run the code above in your browser using DataLab