get_subnets | R Documentation |
Enumerate all subnetworks of size <= max.size
from given network.
get_subnets(net.matrix, max.size = 2)
net.matrix |
The adjacent matrix of network |
max.size |
The maximal size of subnetworks |
A list of generated subnetworks, with element $i$ corresponds the subnetworks of size $i$. Each element is a matrix, in which each row represents a subnetwork.
library(Corbi) net <- matrix(FALSE, nrow=10, ncol=10) net[sample.int(100, 20)] <- TRUE net <- net | t(net) subnets <- get_subnets(net, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.