random.graph: Generate random DAGs

Description Usage Arguments Value

View source: R/sparsebnUtils-generate.R

Description

Generate a random graph with fixed number of edges.

Usage

1
random.graph(nnode, nedge, acyclic = TRUE, loops = FALSE)

Arguments

nnode

Number of nodes in the graph.

nedge

Number of edges in the graph.

acyclic

If TRUE, output will be an acyclic graph.

loops

If TRUE, output may include self-loops.

Value

An edgeList object containing a list of parents for each node.


itsrainingdata/sparsebnUtils documentation built on April 2, 2018, 8:27 p.m.