create_network_from_adjacency_matrix {SeqNet}R Documentation

Create a network object from an adjacency matrix

Description

Create a network object from an adjacency matrix

Usage

create_network_from_adjacency_matrix(adjacency_matrix, ...)

Arguments

adjacency_matrix

The adjacency matrix for the network. Since the adjacency matrix only provides information on the global connections, the resulting 'network' object will consist of a single module containing these connections.

...

Additional arguments passed to create_module_from_adjacency_matrix.

Value

A network object.

Examples

adj_mat <- random_module_structure(10)
nw <- create_network_from_adjacency_matrix(adj_mat)
all(adj_mat == get_adjacency_matrix(nw))

[Package SeqNet version 1.1.3 Index]