powered by
Create a network object from an adjacency matrix
create_network_from_adjacency_matrix(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.
create_module_from_adjacency_matrix
A network object.
# 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