Skip to contents

Uniformly sample DAG

Usage

UniformlySampleDAG(nodes)

Arguments

nodes

A vector of node names.

Value

Adjacency matrix with elements designated as (parent, child).

Examples

UniformlySampleDAG(LETTERS[1:3])
#>   A B C
#> A 0 1 0
#> B 0 0 0
#> C 0 1 0