The n nodes are ordered. Start with first node. Let the
number of nodes with higher order be k. Then, the number of
neighbouring nodes is drawn as Bin(k, prob). The neighbours are
then drawn without replacement from the nodes with higher order. For
each node, a weight is uniformly sampled from lB to uB.
This procedure is repeated for the next node in the original ordering
and so on.
See Also
randDAG for a more elaborate version of this
function; rmvDAG for generating data according to a
DAG; compareGraphs for comparing the skeleton of a DAG
with some other undirected graph (in terms of TPR, FPR and TDR).