powered by
Generates a union of star graphs given the weights
generate_star_union(wts, n)
A disjoint union of star graphs
The proportion of the hub degrees
The number of nodes in the new graph
library(igraph) wts <- c(0.5, 0.3, 0.2) gr <- generate_star_union(wts, n = 100) gr
Run the code above in your browser using DataLab