as_adjmat: graph to adjacency

View source: R/utils.R

as_adjmatR 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)

kpj/dce documentation built on Oct. 29, 2022, 1:40 a.m.