Skip to contents

Predicts the degree of hubs of an unseen graph given a graph generated from the same process.

Usage

predict_hubs(gr, n, k = NULL)

Arguments

gr

The input graph

n

The number of nodes in the new graph

k

The number of hubs. Default is NULL

Value

A vector of hub degrees

Examples

library(igraph)
gr <- sample_pa(10000, power = 1.2, directed = FALSE)
predict_hubs(gr, n = 11000)
#> [1] 304 211 165 107