R/utils.R
as_adjmat.Rd
From graphNEL with 0 edge weights to proper adjacency matrix
as_adjmat(g)
graphNEL object
graph as adjacency matrix
dag <- create_random_DAG(30, 0.2) adj <- as_adjmat(dag)