Generate a random DAG with fixed number of edges.
random.dag(nnode, nedge, FUN = NULL, permute = TRUE)Number of nodes in the DAG.
Number of edges in the DAG.
Optional function to be used as a random number generator.
If TRUE, order of nodes will be randomly permuted.
If FALSE, output will be ordered according to its
topological sort, i.e. with a lower-triangular adjacency matrix.
An (weighted) adjacency matrix.
FUN can be any function whose first argument is called n. This
allows for both random and deterministic outputs.