as_adj_mat: Converts an adjacency list to an adjacency matrix

Description Usage Arguments Value Examples

View source: R/helper_gengraph.R

Description

Converts an adjacency list to an adjacency matrix

Usage

1

Arguments

adj

Adjacency list

Value

An adjacency matrix

Examples

1
2
adj <- list(a = c("b", "d"), b = c("a", "c", "d"), c = c("b", "d"), d = c("a", "c", "b"))
as_adj_mat(adj)

ess documentation built on May 31, 2021, 9:10 a.m.