powered by
Function to transform an adjacency matrix into a graphNEL object.
as_graphNEL(DAG)
A graphNEL object
Adjacency matrix of a DAG
# Randomly generate DAG q <- 4; w = 0.2 set.seed(123) DAG <- rDAG(q,w) as_graphNEL(DAG)
Run the code above in your browser using DataLab