as.mnda.graph: Convert adjacency matrix to mnda graph data

View source: R/utility_functions.R

as.mnda.graphR Documentation

Convert adjacency matrix to mnda graph data

Description

Convert adjacency matrix to mnda graph data

Usage

as.mnda.graph(adj.list, outcome = NULL)

Arguments

adj.list

list of adjacency matrices with matching nodes

outcome

graph outcomes or graph labels. If NULL, outcome = 1:N_graphs.

Value

mnda.graph data

Examples

data = example_data()
adj.list = list(data[["adj_mat_example"]], data[["adj_mat_example"]])
graph.data = as.mnda.graph(adj.list)


mnda documentation built on Feb. 16, 2023, 5:32 p.m.

Related to as.mnda.graph in mnda...