| get_adjacency_matrix.default {SeqNet} | R Documentation |
The adjacency matrix is constructed from all modules in a network.
## Default S3 method: get_adjacency_matrix(x, ...)
x |
Either a 'network', 'network_module', or 'matrix' object. |
... |
Additional arguments. |
An adjacency matrix with entry ij = 1 if node i and j are connected, and 0 otherwise. The diagonal entries are all zero.
# Create a random network with 10 nodes and add random edge weights. nw <- random_network(10) nw <- gen_partial_correlations(nw) # Get adjacency matrix for the network or individual modules in the network. get_adjacency_matrix(nw) module <- nw$modules[[1]] get_adjacency_matrix(module)