create_lattice.Rd
Creates a two-mode lattice
create_lattice(node1, node2)
node1 | Number of nodes in the first node set |
---|---|
node2 | Number of nodes in the second node set |
Will construct a bilateral lattice, with two ties for every second-mode node.
create_lattice(10, 12)#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] #> [1,] 1 1 0 0 0 0 0 0 0 0 1 1 #> [2,] 0 1 1 0 0 0 0 0 0 0 0 1 #> [3,] 0 0 1 1 0 0 0 0 0 0 0 0 #> [4,] 0 0 0 1 1 0 0 0 0 0 0 0 #> [5,] 0 0 0 0 1 1 0 0 0 0 0 0 #> [6,] 0 0 0 0 0 1 1 0 0 0 0 0 #> [7,] 0 0 0 0 0 0 1 1 0 0 0 0 #> [8,] 0 0 0 0 0 0 0 1 1 0 0 0 #> [9,] 0 0 0 0 0 0 0 0 1 1 0 0 #> [10,] 1 0 0 0 0 0 0 0 0 1 1 0