This fucntion allowes you to generate three different types of networks with same number of vertices and edges
1 2 | gen_graphs(ScaleFreePowerRange, SmallWorldProbability, VerticesVector,
SampleSize, edgesEachScaleFree, savingDir, plotGraph = "y")
|
ScaleFreePowerRange |
A vector containing powers for scale free networks, e.g. c(1.5,1.75) |
SmallWorldProbability |
A vector containing probabilities for small world networks, e.g. c(0.5,0.6) |
VerticesVector |
A vector containing number of vertices to be used to generate all three network types(please note that number of edges will be calculated to match number of edges and verices for all three network types, see documentation for further information), e.g. c(10,100) |
SampleSize |
Integer number defining how many sample will be generated for each network types |
savingDir |
A string with the directory where to save graph objects and plots, the directory folder need to be created beforehand |
plotGraph |
if "y" then plots will also be created, only line plots to generate point plots use |
edgesEachScaleFreeInteger |
number defining how many edges to be added in each step of scale free networks |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.