sample_mixed_graph: Generate a (U,W) mixture graph
Description
Generate a (U,W) mixture graph from a dense graphon W and a mass partition
corresponding to a line graph graphon U.
Usage
sample_mixed_graph(W, wts, nd, ns, p = 0.5, option = 2)
Value
A graph sampled from the (U,W) mixture.
Arguments
W
The dense graphon. This is a symmetric matrix with values in [0,1]
wts
The degree proportions of the hub degrees. Need to add up to 1. This
is the mass partition corresponding to the line graph graphon U.
nd
The number of nodes in the dense part of the graph
ns
The number of nodes in the sparse part of the graph
p
The nodes to be added as a proportion of the edges in the dense part
option
Graph joining option. If option == 1 then a disjoit union is
considered. If option == 2 the two graphs are joined randomly with the
number of edges specified by p.