This function handles a network object that may be a raw matrix, sparse matrix, or a WGCNA result list containing `TOM` or `adjacency`. It extracts the appropriate matrix for downstream use.
This function handles a network object that may be a raw matrix, sparse matrix, or a WGCNA result list containing `TOM` or `adjacency`. It extracts the appropriate matrix for downstream use.