powered by
Predicts the degree of hubs of an unseen graph given a graph generated from the same process.
predict_hubs(gr, n, k = NULL)
A vector of hub degrees
The input graph
The number of nodes in the new graph
The number of hubs. Default is NULL
NULL
library(igraph) gr <- sample_pa(10000, power = 1.2, directed = FALSE) predict_hubs(gr, n = 11000)
Run the code above in your browser using DataLab