From graphNEL with 0 edge weights to proper adjacency matrix

as_adjmat(g)

Arguments

g

graphNEL object

Value

graph as adjacency matrix

Examples

dag <- create_random_DAG(30, 0.2)
adj <- as_adjmat(dag)