rand_bounded_deg_graph_aux: Random graph generation (auxiliary)

Description Usage Arguments

View source: R/rand_bounded_deg_graph_aux.R

Description

This is an auxiliary function of the rand_bounded_deg_graph() function. It may return an error due to non-existence of a consistent undirected graph for a sampled degree sequence. It first generates a random degree sequence based on the maximum degree, then use the igraph::sample_degseq(out.deg, method = "vl") function to generate a connected undirected random graph consistents with the sampled degree sequence.

Usage

1

Arguments

n

The number of nodes in the graph.

delta

The maximum degree in the graph.


kelvinyangli/wrsgraph documentation built on Sept. 6, 2019, 10 a.m.