as_adjmat {dce}R Documentation

graph to adjacency

Description

From graphNEL with 0 edge weights to proper adjacency matrix

Usage

as_adjmat(g)

Arguments

g

graphNEL object

Value

graph as adjacency matrix

Examples

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

[Package dce version 1.2.0 Index]