Learn R Programming

mnda (version 1.0.9)

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

Description

Convert adjacency matrix to mnda graph data

Usage

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

Value

mnda.graph data

Arguments

adj.list

list of adjacency matrices with matching nodes

outcome

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

Examples

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

Run the code above in your browser using DataLab