if (FALSE) {
library("PAFit")
set.seed(1)
# size of initial network = 100
# number of new nodes at each time-step = 100
# Ak = k; inverse variance of the distribution of node fitnesse = 10
net <- generate_BB(N = 1000 , m = 50 ,
num_seed = 100 , multiple_node = 100,
s = 10)
net_stats <- get_statistics(net)
# estimate node fitnesses in isolation, assuming Ak = k
result <- only_F_estimate(net, net_stats)
# plot the estimated node fitnesses and true node fitnesses
plot(result, net_stats, true = net$fitness, plot = "true_f")
}
Run the code above in your browser using DataLab