Extend subnetworks by pairwise overlapping two sets of smaller subnetworks.
extend_subnets(subnet1, subnet2, size = 0)
The matrix representing the first set of subnetworks
The matrix representing the second set of subnetworks
The desired size of extended subnetworks
Enumerate all possible subnetworks of desired size by pairwise overlapping two sets of
subnetworks of size
s2. The desired size should be between
s1+s2-1. Invalid desired size will be replaced by the
minimum allowed value
A matrix represents the extended subnetworks, in which each row represents a subnetwork.
1 2 3 4 5 6