R version 4.4.0 alpha (2024-03-26 r86209 ucrt) Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > if (FALSE) { + #setwd("tests") + rm(list = ls()) + library(PAFit) + set.seed(1) + prob_m <- "FALSE" + inc <- "FALSE" + log <- c("FALSE") + + + + net <- generate_net(N = 1000, m = 50,prob_m = prob_m, num_seed = 100, multiple_node = 100, + increase = inc, log = log, + mode = 1, s = 100,alpha = 0.5) + + net_stats <- get_statistics(net,deg_threshold = 0, + binning = TRUE, g = 50) + + + + T <- max(net_stats$appear_time) + var_array <- rep(0,T) + plot("", xlim = c(min(result$f),max(result$f)), ylim = c(1,T), xlab = "Fit", ylab = "Time") + for (i in 1:T) { + f <- result$f[net_stats$appear_time == i] + var_array[i] <- var(f) + points(f,rep(i,length(f))) + } + + + } > > proc.time() user system elapsed 0.21 0.03 0.23