Learn R Programming

graphonmix (version 0.0.1.0)

predict_hubs: Predicts the degree of hubs of an new graph

Description

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

Usage

predict_hubs(gr, n, k = NULL)

Value

A vector of hub degrees

Arguments

gr

The input graph

n

The number of nodes in the new graph

k

The number of hubs. Default is NULL

Examples

Run this code
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