create_network_from_adjacency_matrix: Create a network object from an adjacency matrix

View source: R/networks.R

create_network_from_adjacency_matrixR 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))

SeqNet documentation built on Oct. 10, 2026, 5:06 p.m.