as_multi_adj: Convert a list of graphs to an adjacency matrices

View source: R/graph_structures.R

as_multi_adjR Documentation

Convert a list of graphs to an adjacency matrices

Description

Convenience function that turns a list of igraph objects into adjacency matrices.

Usage

as_multi_adj(g_lst, attr = NULL, sparse = FALSE)

Arguments

g_lst

A list of igraph object

attr

Either NULL or a character string giving an edge attribute name. If NULL a binary adjacency matrix is returned.

sparse

Logical scalar, whether to create a sparse matrix. The 'Matrix' package must be installed for creating sparse matrices.

Value

List of numeric matrices

Author(s)

David Schoch


schochastics/netUtils documentation built on Oct. 17, 2024, 10:45 a.m.