Learn R Programming

SeqNet (version 1.1.3)

create_network_from_adjacency_matrix: 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

Run this code
# NOT RUN {
adj_mat <- random_module_structure(10)
nw <- create_network_from_adjacency_matrix(adj_mat)
all(adj_mat == get_adjacency_matrix(nw))
# }

Run the code above in your browser using DataLab