GenerateNet (N,
num_seed = 2 ,
multiple_node = 1 ,
specific_start = NULL ,
m = 1 ,
prob_m = FALSE ,
increase = FALSE ,
log = FALSE ,
custom_PA = NULL ,
mode = 1 ,
alpha = 1 ,
beta = 2 ,
sat_at = 100 ,
offset = 1 ,
mode_f = "gamma",
rate = 0 ,
shape = 0 ,
meanlog = 0 ,
sdlog = 1 ,
scale_pareto = 2 ,
shape_pareto = 2 )1000.
2.
1.
specific_start is specified, then all the time-steps from time-step 1 to specific_start are grouped to become the initial time-step in the final output. This option is usefull when we want to create a network with a large initial network that follows a scale-free degree distribution. Default value is NULL.
1.
prob_m == TRUE, the number of edges of each new node follows a Poisson distribution. The mean of this distribution depends on the value of increase and log. Default value is FALSE.
increase == FALSE, the mean is fixed at m. If increase == TRUE, the way the mean increases depends on the value of log. Default value is FALSE.
log == TRUE, the mean increases logarithmically with the number of current nodes. If log == FALSE, the mean increases linearly with the number of current nodes. Default value is FALSE.
custom_PA is specified, then mode is ignored, and the PA function custom_PA is used to grow the network. Degree greater than \(K\) will have attachment value \(A_k\). Default value is NULL.
mode == 1, the attachment function is \(A_k = k^\alpha\). If mode == 2, the attachment function is \(A_k = min(k,sat_at)^\alpha\). If mode == 3, the attachment function is \(A_k = \alpha log (k)^\beta\). Default value is 1.
mode == 1, this is the attachment exponent in the attachment function \(A_k = k^\alpha\). If mode == 2, this is the attachment exponenet in the attachment function \(A_k = min(k,sat_at)^\alpha\). If mode == 3, this is the \(\alpha\) in the attachment function \(A_k = \alpha log (k)^\beta + 1\).
0. Default value is 1.
"gamma", "log_normal" or "power_law". This parameter indicates the true distribution for node fitness. "gamma" = gamma distribution, "log_normal" = log-normal distribution. "power_law" = power-law (pareto) distribution. Default value is "gamma".
0, all node fitnesses \(\eta\) are fixed at 1 (i.e. Barabasi-Albert model)
0, all node fitnesses \(\eta\) are fixed at 1 (i.e. Barabasi-Albert model)
0.
1.
0.6.
2.5.
(from_id, to_id, time_stamp). from_id is the id of the source, to_id is the id of the destination.library("PAFit")
#Generate a network from the original BA model with alpha = 1, N = 100, m = 1
net <- GenerateNet(N = 100,m = 1,mode = 1, alpha = 1, shape = 0)
str(net)
Run the code above in your browser using DataLab