Learn R Programming

graphonmix (version 0.0.1.0)

generate_star_union: Generates a sparse graph of star graphs

Description

Generates a union of star graphs given the weights

Usage

generate_star_union(wts, n)

Value

A disjoint union of star graphs

Arguments

wts

The proportion of the hub degrees

n

The number of nodes in the new graph

Examples

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