Generate a random graph with fixed number of edges.
random.graph(nnode, nedge, acyclic = TRUE, loops = FALSE, permute = TRUE)Number of nodes in the graph.
Number of edges in the graph.
If TRUE, output will be an acyclic graph.
If TRUE, output may include self-loops.
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 edgeList object containing a list of parents for each node.