Creates a nested two-mode network

create_nest(node1, node2)

Arguments

node1

Number of nodes in the first node set

node2

Number of nodes in the second node set

Details

Will construct an affiliation matrix, with by default both node1 and node2 will be matched. TODO: Make node set matching optional.

Examples

create_match(10, 12)
#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] #> [1,] 1 0 0 0 0 0 0 0 0 0 1 0 #> [2,] 0 1 0 0 0 0 0 0 0 0 0 1 #> [3,] 0 0 1 0 0 0 0 0 0 0 0 0 #> [4,] 0 0 0 1 0 0 0 0 0 0 0 0 #> [5,] 0 0 0 0 1 0 0 0 0 0 0 0 #> [6,] 0 0 0 0 0 1 0 0 0 0 0 0 #> [7,] 0 0 0 0 0 0 1 0 0 0 0 0 #> [8,] 0 0 0 0 0 0 0 1 0 0 0 0 #> [9,] 0 0 0 0 0 0 0 0 1 0 0 0 #> [10,] 0 0 0 0 0 0 0 0 0 1 0 0