as.mnda.graph {mnda}R 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)


[Package mnda version 1.0.9 Index]